:root {
    --primary-color: #FF8C42;
    --secondary-color: #2c3e50;
    --accent-color: #7EC8E3;
    --success-color: #A8D981;
    --warning-color: #F4D03F;
    --danger-color: #E74C3C;
    --background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --card-hover-shadow: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--secondary-color);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1920px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    width: 80px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
}

.sidebar:hover {
    width: 200px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    transition: var(--transition);
}

.logo-icon {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo span {
    font-weight: 700;
    font-size: 12px;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    border-radius: 15px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    color: var(--secondary-color);
}

.nav-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.sidebar:not(:hover) .nav-btn::after {
    display: none;
}

.sidebar:hover .nav-btn:hover::after {
    opacity: 1;
    left: 80px;
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255,140,66,0.3);
}

.nav-btn:hover:not(.active) {
    background: #f0f0f0;
    transform: translateX(5px);
}

.nav-btn.settings {
    margin-top: auto;
}

.developer-credit {
    margin-top: 20px;
    text-align: center;
    font-size: 10px;
    opacity: 0;
    transition: var(--transition);
}

.sidebar:hover .developer-credit {
    opacity: 1;
}

.developer-credit small {
    display: block;
    color: #7f8c8d;
}

.developer-credit strong {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    max-width: calc(100% - 80px - 340px);
}

/* Header */
.header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.greeting h1 {
    font-size: 18px;
    font-weight: 400;
    color: #7f8c8d;
}

.greeting h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 5px 0;
}

.subtitle {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    padding: 5px 5px 5px 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.search-bar:focus-within {
    box-shadow: var(--card-hover-shadow);
}

.search-bar i.fa-search {
    color: #7f8c8d;
    margin-right: 10px;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.search-btn, .location-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    margin-left: 5px;
}

.search-btn:hover {
    background: #e67a35;
    transform: scale(1.05);
}

.location-btn {
    background: var(--accent-color);
    color: white;
    margin-left: 5px;
}

.location-btn:hover {
    background: #6bb3c9;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.location-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.location-info:hover {
    box-shadow: var(--card-hover-shadow);
}

.weather-icon {
    font-size: 32px;
}

.location-details {
    display: flex;
    flex-direction: column;
}

.day {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 14px;
}

.location {
    font-size: 12px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.temperature {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.notification-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.notification-btn:hover {
    box-shadow: var(--card-hover-shadow);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 10px;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

@media (min-width: 1200px) {
    .dashboard-cards {
        grid-template-columns: 1.2fr 1.2fr 0.8fr;
    }
}

.card {
    background: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 140, 66, 0.1);
    border-radius: 12px;
    color: var(--primary-color);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.card-header p {
    font-size: 12px;
    color: #7f8c8d;
}

.refresh-btn {
    margin-left: auto;
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.refresh-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(180deg);
}

/* Weather Card */
.weather-card {
    background: linear-gradient(135deg, #E8F4F8 0%, #D4E7ED 100%);
}

.weather-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.main-temp {
    font-size: 64px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.temp-range {
    font-size: 18px;
    color: #7f8c8d;
    margin-top: 5px;
}

.weather-illustration {
    position: relative;
    font-size: 80px;
    animation: weatherFloat 4s ease-in-out infinite;
}

@keyframes weatherFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.sun-icon {
    color: #FDB813;
    animation: rotate 20s linear infinite;
}

.cloud-icon {
    position: absolute;
    top: 20px;
    left: -10px;
    font-size: 50px;
    color: #E0E7ED;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.weather-desc {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-transform: capitalize;
}

.weather-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.metric {
    background: rgba(44, 62, 80, 0.9);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.metric:hover {
    transform: translateY(-3px);
}

.metric i {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.8);
}

.metric span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 5px;
}

.metric strong {
    font-size: 16px;
    color: white;
    display: block;
}

.metric.visibility {
    background: var(--success-color);
}

.metric.visibility strong,
.metric.visibility span,
.metric.visibility i {
    color: var(--secondary-color);
}

/* Air Quality Card */
.air-quality-card {
    background: linear-gradient(135deg, #7EC8E3 0%, #5BA8C9 100%);
    color: white;
}

.air-quality-card .card-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.air-quality-card .card-header h3,
.air-quality-card .card-header p {
    color: white;
}

.aqi-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}

.aqi-value {
    font-size: 72px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.aqi-badge {
    background: var(--warning-color);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
}

.wind-animation {
    font-size: 60px;
    animation: windBlow 3s ease-in-out infinite;
}

@keyframes windBlow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.wind-info {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#windArrow {
    transition: var(--transition);
}

.aqi-scale {
    display: flex;
    align-items: center;
    gap: 15px;
}

.scale-label {
    font-size: 12px;
    color: white;
    font-weight: 500;
}

.scale-bar {
    flex: 1;
    height: 8px;
    background: white;
    border-radius: 10px;
    position: relative;
}

.scale-indicator {
    position: absolute;
    left: 30%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid white;
    transition: var(--transition);
}

/* Tomorrow Card */
.tomorrow-card {
    background: linear-gradient(135deg, #D4ED91 0%, #B8D96F 100%);
    position: relative;
    overflow: hidden;
}

.tomorrow-header {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: white;
    transform: scale(1.1);
}

.tomorrow-content {
    text-align: center;
}

.tomorrow-label {
    font-size: 12px;
    color: #6b8e23;
    font-weight: 500;
}

.tomorrow-content h3 {
    font-size: 24px;
    margin: 10px 0;
    color: var(--secondary-color);
}

.tomorrow-temp {
    font-size: 64px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 20px 0;
    line-height: 1;
}

.tomorrow-desc {
    font-size: 16px;
    color: #6b8e23;
    text-transform: capitalize;
}

.rain-illustration {
    font-size: 100px;
    margin-top: 20px;
    animation: float 3s ease-in-out infinite;
}

/* Temperature Timeline */
.temperature-timeline {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.temperature-timeline:hover {
    box-shadow: var(--card-hover-shadow);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.timeline-header h3 {
    font-size: 20px;
    color: var(--secondary-color);
}

.timeline-controls {
    display: flex;
    gap: 10px;
}

.timeline-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.timeline-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.timeline-btn:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.timeline-chart {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 180px;
    padding-top: 20px;
}

.time-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    cursor: pointer;
    transition: var(--transition);
}

.time-point:hover {
    transform: translateY(-5px);
}

.weather-icon.small {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.time-point.active .weather-icon.small {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.temp-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
}

.time-label {
    font-size: 14px;
    color: #7f8c8d;
}

#timelineCurve {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
}

/* Right Sidebar */
.right-sidebar {
    width: 340px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
    height: 100vh;
    position: sticky;
    top: 0;
}

/* Sun Info Card */
.sun-info-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.sun-info-card:hover {
    box-shadow: var(--card-hover-shadow);
}

.sun-info-card h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 16px;
}

.sun-arc {
    position: relative;
}

#sunArc {
    width: 100%;
    height: 140px;
}

.sun-times {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.sun-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sun-time i {
    color: var(--primary-color);
    font-size: 18px;
}

.sun-time span {
    font-size: 11px;
    color: #7f8c8d;
}

.sun-time strong {
    color: var(--secondary-color);
    font-size: 16px;
}

/* UV Card */
.uv-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.uv-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-3px);
}

.uv-icon {
    font-size: 48px;
}

.uv-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.uv-info span:first-child {
    font-size: 24px;
    font-weight: 700;
}

.uv-level {
    background: var(--success-color);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    display: inline-block;
    width: fit-content;
    margin-top: 5px;
    font-weight: 600;
}

.uv-card p {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin-top: 10px;
}

/* Prediction Card */
.prediction-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.prediction-card:hover {
    box-shadow: var(--card-hover-shadow);
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.prediction-header h3 {
    font-size: 18px;
    color: var(--secondary-color);
}

.refresh-btn.small {
    width: 30px;
    height: 30px;
}

.prediction-item {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
    cursor: pointer;
}

.prediction-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 10px;
}

.prediction-item:last-of-type {
    border-bottom: none;
}

.prediction-item .date {
    font-size: 12px;
    color: #7f8c8d;
}

.prediction-item .weather-icon.small {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.prediction-item .condition {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

.prediction-item .temp-range {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

.next-5-days {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.next-5-days:hover {
    background: #e67a35;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,140,66,0.3);
}

/* Developer Card */
.developer-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    color: white;
    text-align: center;
    transition: var(--transition);
}

.developer-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-3px);
}

.developer-avatar {
    font-size: 60px;
    margin-bottom: 15px;
}

.developer-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.developer-info p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.developer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.developer-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.developer-links a:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

.developer-links a::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -35px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.developer-links a:hover::after {
    opacity: 1;
    top: -40px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition);
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    font-size: 16px;
    color: var(--secondary-color);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: var(--transition);
    z-index: 10000;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .main-content {
        max-width: calc(100% - 80px);
    }
    
    .right-sidebar {
        display: none;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        padding: 15px 20px;
        height: auto;
        position: relative;
    }
    
    .sidebar:hover {
        width: 100%;
    }
    
    .logo {
        flex-direction: row;
        margin-bottom: 0;
    }
    
    .nav-menu {
        flex-direction: row;
        margin-left: auto;
    }
    
    .nav-btn.settings {
        margin-top: 0;
        margin-left: 20px;
    }
    
    .developer-credit {
        display: none;
    }
    
    .main-content {
        max-width: 100%;
        padding: 20px;
    }
    
    .right-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-bar {
        max-width: 100%;
        width: 100%;
    }
    
    .location-info {
        width: 100%;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .weather-metrics {
        grid-template-columns: 1fr;
    }
    
    .timeline-chart {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .right-sidebar {
        grid-template-columns: 1fr;
    }
    
    .main-temp {
        font-size: 48px;
    }
    
    .tomorrow-temp {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 10px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .greeting h2 {
        font-size: 22px;
    }
    
    .main-temp {
        font-size: 40px;
    }
    
    .aqi-value {
        font-size: 48px;
    }
    
    .tomorrow-temp {
        font-size: 40px;
    }
    
    .toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        font-size: 14px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e67a35;
}

/* Print Styles */
@media print {
    .sidebar,
    .notification-btn,
    .refresh-btn,
    .location-btn,
    .search-btn,
    .developer-card {
        display: none;
    }
    
    .container {
        display: block;
    }
    
    .main-content,
    .right-sidebar {
        max-width: 100%;
        width: 100%;
    }
}


/* Autocomplete Styles */
.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f8f9fa;
}

.autocomplete-item i {
    color: var(--primary-color);
    font-size: 16px;
}

.autocomplete-item-main {
    flex: 1;
}

.autocomplete-item-title {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 14px;
}

.autocomplete-item-subtitle {
    font-size: 12px;
    color: #7f8c8d;
}

.autocomplete-loading {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
}

.autocomplete-no-results {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

/* Loading state for location button */
.location-btn.loading i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.7;
    }
}

/* Mobile autocomplete styles */
@media (max-width: 768px) {
    .autocomplete-dropdown {
        max-height: 300px;
    }
    
    .autocomplete-item {
        padding: 10px 15px;
    }
}

/* LinkedIn Link in Sidebar */
.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    color: #0077b5;
    font-size: 18px;
    transition: var(--transition);
    opacity: 0;
}

.sidebar:hover .linkedin-link {
    opacity: 1;
}

.linkedin-link:hover {
    transform: scale(1.2);
    color: #005885;
}

/* Panel Overlay Styles */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.panel-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.panel-container {
    background: white;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.panel-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 24px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.panel-header h2 i {
    color: var(--primary-color);
}

.panel-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.panel-close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.panel-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #e67a35;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.3);
}

.btn-secondary {
    background: #e0e0e0;
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* Notifications Panel Specific */
.notification-item {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.notification-item.warning {
    border-left-color: var(--warning-color);
}

.notification-item.danger {
    border-left-color: var(--danger-color);
}

.notification-item.success {
    border-left-color: var(--success-color);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 15px;
}

.notification-time {
    font-size: 11px;
    color: #7f8c8d;
}

.notification-message {
    font-size: 13px;
    color: #5a5a5a;
    line-height: 1.5;
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Locations Panel Specific */
.location-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.location-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.location-item:hover::before {
    transform: scaleY(1);
}

.location-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.location-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.location-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
}

.location-remove {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-remove:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.location-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #5a5a5a;
}

.location-empty {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.location-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* History Panel Specific */
.history-item {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.history-info {
    flex: 1;
}

.history-location {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.history-time {
    font-size: 12px;
    color: #7f8c8d;
}

.history-delete {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #7f8c8d;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.history-delete:hover {
    background: var(--danger-color);
    color: white;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.history-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Settings Panel Specific */
.settings-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.setting-option {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.radio-label:hover {
    background: #f8f9fa;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-label span {
    font-size: 14px;
    color: var(--secondary-color);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.toggle-label:hover {
    background: #f8f9fa;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    background: #ccc;
    border-radius: 14px;
    transition: var(--transition);
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
    background: var(--primary-color);
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(22px);
}

.toggle-label span:last-child {
    font-size: 14px;
    color: var(--secondary-color);
}

.about-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    line-height: 1.8;
}

.about-info p {
    margin: 5px 0;
    color: #5a5a5a;
    font-size: 14px;
}

.about-info strong {
    color: var(--primary-color);
}

/* Dark Theme Styles */
body.dark-theme {
    --background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --secondary-color: #e8e8e8;
}

body.dark-theme .sidebar,
body.dark-theme .card,
body.dark-theme .main-content,
body.dark-theme .search-bar,
body.dark-theme .location-info,
body.dark-theme .notification-btn,
body.dark-theme .temperature-timeline,
body.dark-theme .developer-card,
body.dark-theme .panel-container {
    background: #0f3460;
    color: #e8e8e8;
}

body.dark-theme .card-header h3,
body.dark-theme .card-header p,
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3,
body.dark-theme .day,
body.dark-theme .greeting h2,
body.dark-theme .timeline-header h3 {
    color: #e8e8e8;
}

body.dark-theme .nav-btn,
body.dark-theme .search-bar input,
body.dark-theme .timeline-btn {
    color: #e8e8e8;
}

body.dark-theme .nav-btn:hover:not(.active) {
    background: #1a1a2e;
}

body.dark-theme .panel-header,
body.dark-theme .panel-footer,
body.dark-theme .settings-section {
    border-color: #1a1a2e;
}

body.dark-theme .notification-item,
body.dark-theme .location-item,
body.dark-theme .history-item,
body.dark-theme .about-info,
body.dark-theme .radio-label:hover,
body.dark-theme .toggle-label:hover {
    background: #16213e;
}

body.dark-theme .panel-close {
    background: #1a1a2e;
    color: #e8e8e8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .panel-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .panel-header {
        padding: 20px;
    }
    
    .panel-content {
        padding: 15px 20px;
    }
    
    .panel-footer {
        padding: 15px 20px;
    }
    
    .panel-header h2 {
        font-size: 20px;
    }
}
