/* ANDY SOLAR CALCULATOR - CSS */
.andy-solar-calculator * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.andy-solar-calculator {
    font-family: Arial, sans-serif;
    font-size: 13px;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
}

.calculator-container {
    max-width: 1000px;
    margin: 0 auto;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.content {
    padding: 0;
}

/* ΚΑΤΗΓΟΡΙΕΣ */
.category-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin-bottom: 3px;
}

.category-box {
    display: flex;
    align-items: center;
    padding: 12px 4px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    background: white;
    height: 70px;
    transition: all 0.2s;
    cursor: pointer;
}

.category-box.active {
    border-color: #dc2626;
    background: #2563eb;
}

.category-name {
    font-weight: bold;
    font-size: 14px;
    color: #1e40af;
    white-space: nowrap;
    text-align: center;
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
}

.category-box.active .category-name {
    color: white;
}

.category-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 60%;
    text-align: center;
    padding: 0 5px;
}

.kwh-label {
    font-size: 11px;
    font-weight: bold;
    color: #1e40af;
    white-space: nowrap;
}

.category-box.active .kwh-label {
    color: white;
}

.kwh-input {
    flex: 0 0 60%;
    padding: 8px 6px;
    border: 1px solid #9ca3af;
    border-radius: 3px;
    font-size: 15px;
    text-align: center;
    font-weight: bold;
    background: white;
    color: #1e40af;
    max-width: 180px;
    width: 100%;
    height: 40px;
}

.category-box.active .kwh-input {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.9);
}

/* ΠΑΡΑΜΕΤΡΟΙ */
.params-container {
    background: #e6f2ff;
    border: 1px solid #c7d9ff;
    border-radius: 4px;
    padding: 3px 6px;
    margin: 5px 0;
}

.params-title {
    font-size: 12px;
    font-weight: bold;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0 0 3px 0;
    padding: 2px 0;
}

/* ΠΑΝΕΛ - 150px */
.panel-row {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 3px;
    padding: 3px 0;
    margin-bottom: 3px;
    height: 26px;
}

.panel-title {
    font-weight: bold;
    font-size: 12px;
    color: #1e40af;
    white-space: nowrap;
    width: 150px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-right: 10px;
    border-right: 1px solid #e5e7eb;
}

.panel-options {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: space-between;
    width: calc(100% - 150px);
}

.panel-option {
    padding: 3px 2px;
    border: 1px solid #bae6fd;
    border-radius: 2px;
    background: #e0f2fe;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

.panel-option:hover {
    background: #bae6fd;
}

.panel-option.selected {
    background: #3b82f6;
    color: white;
    border-color: #1d4ed8;
}

/* ΚΛΙΣΗ ( ° ) - 150px - ΑΚΡΙΒΩΣ ΙΔΙΟ ΜΕ ΠΑΝΕΛ */
.angle-row {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 3px;
    padding: 3px 0;
    margin-bottom: 3px;
    height: 26px;
}

.angle-title {
    font-weight: bold;
    font-size: 12px;
    color: #1e40af;
    white-space: nowrap;
    width: 150px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-right: 10px;
    border-right: 1px solid #e5e7eb;
}

.angle-options {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: space-between;
    width: calc(100% - 150px);
}

.angle-option {
    padding: 3px 2px;
    border: 1px solid #bae6fd;
    border-radius: 2px;
    background: #e0f2fe;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

.angle-option:hover {
    background: #bae6fd;
}

.angle-option.selected {
    background: #3b82f6;
    color: white;
    border-color: #1d4ed8;
}

/* ΠΕΡΙΟΧΗ - 150px - ΑΚΡΙΒΩΣ ΙΔΙΟ ΜΕ ΠΑΝΕΛ */
.region-row {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 3px;
    padding: 3px 0;
    margin-bottom: 0;
    min-height: 26px;
}

.region-title {
    font-weight: bold;
    font-size: 12px;
    color: #1e40af;
    white-space: nowrap;
    width: 150px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-right: 10px;
    border-right: 1px solid #e5e7eb;
}

.region-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    flex: 1;
    padding: 1px 0;
    width: calc(100% - 150px);
}

.region-option {
    padding: 3px 2px;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    flex: 1;
    min-width: 65px;
    white-space: nowrap;
}

.region-option:hover {
    background: #e5e7eb;
}

.region-option.selected {
    background: #3b82f6;
    color: white;
    border-color: #1d4ed8;
}

/* ΑΠΟΤΕΛΕΣΜΑΤΑ */
.results-container {
    background: #f0f9ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 3px 6px;
    margin: 4px 0 0 0;
}

.results-title {
    font-size: 14px;
    font-weight: bold;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0 0 5px 0;
    padding: 3px 0;
}

.results-section {
    margin-top: 0;
}

.season-line {
    display: flex;
    align-items: center;
    background: #e0f2fe;
    border-radius: 3px;
    padding: 4px 6px;
    margin-bottom: 3px;
    min-height: 28px;
}

.season-name {
    flex: 0 0 150px;
    font-size: 13px;
    font-weight: bold;
    color: #0369a1;
    white-space: nowrap;
    text-transform: uppercase;
    text-align: center;
    border-right: 1px solid #bae6fd;
    padding-right: 10px;
}

.season-day, .season-month {
    flex: 1;
    font-size: 13px;
    font-weight: bold;
    color: #000000;
    white-space: nowrap;
    text-align: center;
    padding: 0 10px;
}

.season-day {
    border-right: 1px solid #bae6fd;
}

.main-results-line {
    display: flex;
    align-items: center;
    background: #f0f9ff;
    border-radius: 3px;
    padding: 4px 6px;
    margin-bottom: 4px;
    min-height: 30px;
}

.result-item {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.result-label {
    font-size: 12px;
    font-weight: bold;
    color: #0369a1;
    white-space: nowrap;
    text-transform: uppercase;
}

.result-value {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
    white-space: nowrap;
}

/* ΜΙΑ ΓΡΑΜΜΗ ΜΕ 2 ΣΤΟΙΧΕΙΑ - 50% ΚΑΘΕ ΕΝΑ */
.single-yearly-line {
    display: flex;
    align-items: center;
    background: #e0f2fe;
    border-radius: 3px;
    padding: 4px 0;
    margin-bottom: 0;
    min-height: 28px;
}

.yearly-item-left, .yearly-item-right {
    flex: 1; /* 50% ΚΑΘΕ ΕΝΑ */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
}

.yearly-item-left {
    border-right: 1px solid #bae6fd;
}

/* ΜΠΛΕ Η ΠΕΡΙΓΡΑΦΗ ΚΑΙ ΜΑΥΡΟ ΤΟ ΥΠΟΛΟΓΙΣΤΙΚΟ */
.yearly-label {
    font-size: 13px;
    font-weight: bold;
    color: #0369a1; /* ΜΠΛΕ */
    white-space: nowrap;
    margin-right: 8px;
}

.yearly-value {
    font-size: 15px;
    font-weight: bold;
    color: #000000; /* ΜΑΥΡΟ */
    white-space: nowrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .andy-solar-calculator {
        padding: 0;
        margin: 0;
        border: none;
        background: none;
    }
    
    .calculator-container {
        border: none;
        box-shadow: none;
        background: none;
    }
    
    .category-row {
        grid-template-columns: 1fr;
        gap: 2px;
        margin-bottom: 2px;
    }
    
    .category-box {
        height: 65px;
        padding: 10px 5px;
    }
    
    .category-name {
        font-size: 13px;
        flex: 0 0 40%;
    }
    
    .category-input-group {
        flex: 0 0 60%;
        gap: 4px;
        padding: 0 3px;
    }
    
    .kwh-input {
        padding: 6px 4px;
        font-size: 14px;
        max-width: 150px;
        height: 36px;
        flex: 0 0 60%;
    }
    
    .kwh-label {
        font-size: 10px;
    }
    
    .params-container, .results-container {
        padding: 3px 4px;
        margin: 3px 0;
        border: 1px solid #c7d9ff;
    }
    
    .results-title {
        font-size: 13px;
        margin: 0 0 4px 0;
        padding: 2px 0;
    }
    
    .season-line {
        flex-direction: row;
        padding: 3px 4px;
        min-height: 26px;
    }
    
    .season-name, .season-day, .season-month {
        font-size: 12px;
        padding: 0 2px;
    }
    
    .main-results-line {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        padding: 3px 3px;
        min-height: auto;
    }
    
    .result-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 3px 3px;
        background: white;
        border-radius: 2px;
        border: 1px solid #bae6fd;
        margin-bottom: 1px;
    }
    
    .result-label {
        font-size: 11px;
    }
    
    .result-value {
        font-size: 13px;
    }
    
    /* RESPONSIVE ΓΙΑ ΤΗ ΜΙΑ ΓΡΑΜΜΗ */
    .single-yearly-line {
        flex-direction: column;
        padding: 3px 4px;
        gap: 5px;
        min-height: auto;
    }
    
    .yearly-item-left, .yearly-item-right {
        width: 100%;
        justify-content: space-between;
        padding: 3px 2px;
    }
    
    .yearly-item-left {
        border-right: none;
        border-bottom: 1px solid #bae6fd;
        padding-bottom: 5px;
    }
    
    .yearly-label {
        font-size: 12px;
        margin-right: 6px;
    }
    
    .yearly-value {
        font-size: 13px;
    }
    
    .panel-options, .angle-options {
        flex-wrap: wrap;
        gap: 1px;
    }
    
    .region-options {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1px;
    }
    
    .region-option {
        min-width: calc(33.33% - 1px);
        font-size: 11px;
        padding: 2px 1px;
    }
    
    .panel-row, .angle-row, .region-row {
        height: auto;
        min-height: 24px;
        flex-direction: column;
        padding: 3px 0;
        margin-bottom: 3px;
    }
    
    .panel-title, .angle-title, .region-title {
        width: 100%;
        margin-bottom: 5px;
        text-align: center;
        font-size: 12px;
        min-height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 100%;
        white-space: normal;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 5px;
    }
    
    .angle-title {
        min-width: 100%;
        white-space: normal;
        line-height: 1.2;
    }
    
    .panel-options, .angle-options, .region-options {
        width: 100%;
        justify-content: center;
    }
    
    .panel-option, .angle-option {
        font-size: 11px;
        padding: 2px 1px;
        min-width: 60px;
    }
}