* {
    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;
    margin-bottom: 1rem;
}

.season-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.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: 180px;
    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;
    grid-column: 1 / -1;
}

/* Režim přepínání */
.input-mode-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #e8f5e8;
    border-radius: 8px;
    justify-content: center;
}

.input-mode-toggle label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #2d5a2d;
    cursor: pointer;
}

.input-mode-toggle input[type="radio"] {
    accent-color: #3aaa35;
}

/* Spotřebiče */
.appliance-category {
    margin-bottom: 1.5rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
}

.appliance-category h4 {
    color: #2d5a2d;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.appliance-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: white;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.appliance-item:hover {
    background: #f0f8f0;
}

.appliance-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3aaa35;
}

.appliance-info {
    flex: 1;
}

.appliance-info label {
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: block;
    margin-bottom: 0.3rem;
}

.appliance-specs {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
}

.hours-input, .annual-input {
    width: 70px !important;
    padding: 0.4rem !important;
    font-size: 0.9rem !important;
    text-align: center;
}

.input-unit, .input-unit-annual {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

/* Výsledky */
.consumption-breakdown {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.consumption-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
}

.consumption-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.consumption-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #666;
}

.label {
    font-weight: 500;
}

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

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

/* Baterie doporučení */
.battery-recommendation {
    display: grid;
    gap: 1rem;
}

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

/* Baterie varianty */
.battery-options {
    display: grid;
    gap: 1rem;
}

.battery-option {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.battery-option:hover {
    border-color: #3aaa35;
    box-shadow: 0 4px 15px rgba(58, 170, 53, 0.1);
}

.battery-option.premium {
    background: linear-gradient(135deg, #f0f8f0, #e8f5e8);
    border-color: #3aaa35;
}

.battery-option h4 {
    color: #2d5a2d;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.option-details {
    display: grid;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

/* Úspory a návratnost */
.savings-analysis {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.savings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
}

.payback-analysis {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.payback-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
}

.payback-option h5 {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

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

/* Výhody */
.benefits-info {
    display: grid;
    gap: 1rem;
}

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

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

.benefit-content {
    flex: 1;
}

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

.benefit-value {
    font-size: 0.95rem;
    color: #666;
}

/* Tlačítka */
.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;
    }
}

@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%;
    }

    .appliance-item {
        grid-template-columns: auto 1fr;
        gap: 0.5rem;
    }

    .hours-input {
        width: 80px !important;
        margin-top: 0.5rem;
    }

    .consumption-item,
    .battery-item,
    .savings-item,
    .payback-option,
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .benefit-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;
    }
} 