* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8faf8 0%, #e8f5e8 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

header h1 {
    font-size: 2.2rem;
    color: #2d5a2d;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.controls {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.results-panel {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.control-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.control-group:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.control-group h3 {
    color: #3aaa35;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.input-row label {
    font-weight: 500;
    color: #555;
    min-width: 160px;
    text-align: left;
}

.input-row input {
    padding: 0.6rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    width: 120px;
    transition: border-color 0.3s ease;
}

.input-row input:focus {
    outline: none;
    border-color: #3aaa35;
}

.hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
    font-style: italic;
}

.charging-option {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.charging-total {
    text-align: center;
    padding: 1rem;
    background: #f0f8f0;
    border-radius: 8px;
    margin-top: 1rem;
}

.charging-warning {
    color: #d63384;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.comparison-table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
}

.comparison-row.header {
    background: #3aaa35;
    color: white;
}

.comparison-row.current-car {
    background: #fff3cd;
}

.comparison-row.electric-car {
    background: #d1ecf1;
}

.comparison-row.savings {
    background: #d4edda;
    font-weight: 600;
}

.comparison-cell {
    padding: 0.8rem;
    text-align: center;
    border-right: 1px solid #e0e0e0;
}

.comparison-cell:last-child {
    border-right: none;
}

.payback-info {
    display: grid;
    gap: 1rem;
}

.payback-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.payback-item.payback-highlight {
    background: linear-gradient(135deg, #3aaa35, #2d8a2a);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.payback-item .label {
    font-weight: 500;
}

.payback-item .value {
    font-weight: 600;
    font-size: 1.1rem;
}

.charging-breakdown {
    margin-top: 1rem;
}

.charging-bar {
    display: flex;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.bar-segment.home {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.bar-segment.public {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.bar-segment.solar {
    background: linear-gradient(135deg, #007bff, #6f42c1);
}

.charging-costs {
    display: grid;
    gap: 0.5rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.cost-type.home-cost {
    color: #28a745;
    font-weight: 600;
}

.cost-type.public-cost {
    color: #fd7e14;
    font-weight: 600;
}

.cost-type.solar-cost {
    color: #007bff;
    font-weight: 600;
}

.environmental-info {
    display: grid;
    gap: 1rem;
}

.env-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 10px;
}

.env-icon {
    font-size: 2rem;
}

.env-content {
    flex: 1;
}

.env-label {
    font-weight: 600;
    color: #2d5a2d;
}

.env-value {
    font-size: 1.1rem;
    color: #3aaa35;
    font-weight: bold;
}

.btn {
    background: linear-gradient(135deg, #3aaa35 0%, #2d8a2a 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 170, 53, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 170, 53, 0.4);
}

.share-btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.share-hint {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    text-align: center;
}

/* Responzivní design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .comparison-cell {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .comparison-cell:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }

    header {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .input-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .input-row label {
        min-width: auto;
    }

    .input-row input {
        width: 100%;
    }

    .charging-bar {
        height: 60px;
        flex-direction: column;
    }

    .bar-segment {
        height: 20px;
        font-size: 0.8rem;
    }

    .payback-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .env-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .controls, .results-panel {
        padding: 1rem;
    }

    .control-group h3 {
        font-size: 1.1rem;
    }
} 