/* Slide-out Panels */
.slide-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-panel.active {
    right: 0;
}

.slide-content {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.slide-body {
    flex: 1;
    overflow-y: auto;
}

.slide-body h3 {
    color: #21ecbe;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.slide-body h3:first-child {
    margin-top: 0;
}

.slide-body p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.slide-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.slide-body li {
    margin: 8px 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.slide-body a {
    color: #21ecbe;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slide-body a:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-info {
    margin: 20px 0;
}

.contact-item {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.contact-item p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.slide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slide-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsive for slide panels */
@media (max-width: 768px) {
    .slide-panel {
        width: 100%;
        right: -100%;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-header h2 {
        font-size: 1.3rem;
    }
    
    .slide-body h3 {
        font-size: 1.1rem;
    }
    
    .slide-body p {
        font-size: 0.9rem;
    }
    
    .slide-body li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 10px;
    }
    
    .slide-header h2 {
        font-size: 1.2rem;
    }
    
    .slide-body h3 {
        font-size: 1rem;
    }
    
    .slide-body p {
        font-size: 0.85rem;
    }
    
    .slide-body li {
        font-size: 0.8rem;
    }
    
    /* Settings buttons on mobile */
    .settings-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .save-btn, .reset-btn, .sync-btn {
        width: 100%;
        max-width: 200px;
        margin: 5px 0;
    }
}

/* Historic Panel Styles */
.historic-controls {
    margin: 20px 0;
    text-align: center;
}

.month-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.month-btn {
    background: rgba(33, 236, 190, 0.2);
    border: 2px solid #21ecbe;
    color: #21ecbe;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-btn:hover {
    background: rgba(33, 236, 190, 0.3);
    transform: scale(1.1);
}

.month-display {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #21ecbe;
    min-width: 200px;
    text-align: center;
}

.historic-stats {
    margin: 20px 0;
}

.loading-historic {
    text-align: center;
    padding: 40px 20px;
}

.loading-historic .weather-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.loading-historic p {
    color: #21ecbe;
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
}

.historic-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.historic-stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(33, 236, 190, 0.2);
    transition: all 0.3s ease;
}

.historic-stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(33, 236, 190, 0.4);
    transform: translateY(-2px);
}

.historic-stat-value {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #21ecbe;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.historic-stat-label {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #ffffff;
    margin: 5px 0;
}

.historic-stat-unit {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #cccccc;
    margin: 5px 0;
}

.historic-stat-date {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: #888;
    margin-top: 3px;
    font-style: italic;
}

.historic-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.historic-info h3 {
    color: #21ecbe;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    margin: 15px 0 10px 0;
}

.historic-info p {
    color: #ffffff;
    line-height: 1.6;
    margin: 10px 0;
}

/* Settings Panel Styles */
.settings-section {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(33, 236, 190, 0.2);
}

.settings-section h3 {
    color: #21ecbe;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.setting-item {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
}

.setting-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(33, 236, 190, 0.3);
    border-radius: 6px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.setting-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(33, 236, 190, 0.5);
}

.setting-select:focus {
    outline: none;
    border-color: #21ecbe;
    box-shadow: 0 0 0 2px rgba(33, 236, 190, 0.2);
}

.setting-select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
    gap: 10px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(33, 236, 190, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #21ecbe;
    border-color: #21ecbe;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-label:hover .checkmark {
    border-color: rgba(33, 236, 190, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

/* Settings Actions */
.settings-actions {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.save-btn, .reset-btn, .sync-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    flex: 1;
    max-width: 120px;
}

.save-btn {
    background: linear-gradient(135deg, #21ecbe, #1dd1a1);
    color: #000;
}

.save-btn:hover {
    background: linear-gradient(135deg, #1dd1a1, #21ecbe);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 236, 190, 0.3);
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.sync-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #ffffff;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.sync-btn:hover {
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
    border-color: rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Settings Info */
.settings-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(33, 236, 190, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(33, 236, 190, 0.2);
}

.settings-info h3 {
    color: #21ecbe;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.settings-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}