/* public/css/weather-app.css */

/* CSS Variables - Màu sắc sáng và hiện đại */
:root {
    --primary-gradient: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    --secondary-gradient: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
    --success-gradient: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    --warning-gradient: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    --danger-gradient: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    
    --primary-color: #74b9ff;
    --secondary-color: #636e72;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #fd79a8;
    --info-color: #74b9ff;
    
    --light-bg: #f8f9fa;
    --lighter-bg: #ffffff;
    --card-bg: #ffffff;
    --text-color: #2d3436;
    --text-muted: #636e72;
    --border-color: #e9ecef;
    
    --card-shadow: 0 2px 15px rgba(116, 185, 255, 0.08);
    --card-hover-shadow: 0 8px 30px rgba(116, 185, 255, 0.15);
    
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
}

/* Background pattern sáng */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(116, 185, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 184, 148, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.navbar {
    background: var(--primary-gradient) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(116, 185, 255, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand:hover {
    color: #f8f9fa !important;
}

.navbar-toggler {
    border: none;
    color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Search Form */
.search-form {
    max-width: 400px;
    position: relative;
}

.search-input {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    padding-right: 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
    background: white;
    border-color: rgba(255, 255, 255, 0.8);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.search-btn:hover {
    background: white;
    color: #0984e3;
    transform: translateY(-50%) scale(1.05);
}

/* Search Suggestions */
.search-suggestions {
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background-color: var(--light-bg) !important;
}

.search-suggestion-item.highlighted {
    background-color: #e3f2fd !important;
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Weather Cards */
.weather-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(116, 185, 255, 0.1);
}

.weather-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-color);
}

.current-weather-card {
    background: var(--success-gradient);
    color: white;
    text-align: center;
    border: none;
}

.current-weather-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 184, 148, 0.2);
}

/* Section Container */
.section-container {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(116, 185, 255, 0.1);
    box-shadow: var(--card-shadow);
}

.section-container:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
}

/* Location Cards */
.location-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid rgba(116, 185, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: block;
    height: 100%;
    min-height: 140px;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    text-decoration: none;
    color: var(--text-color);
    border-color: var(--primary-color);
}

.location-card:hover::before {
    transform: scaleX(1);
}

.location-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.location-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
    flex-shrink: 0;
}

.location-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
}

.location-weather {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
}

.location-temp {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 1px 3px rgba(116, 185, 255, 0.2);
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Temperature Display */
.temperature-display {
    font-size: 4rem;
    font-weight: 700;
    margin: 1rem 0;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.weather-icon-large {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.weather-icon-large i:hover,
.hourly-icon i:hover {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

/* Weather Stats */
.weather-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.weather-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.weather-stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
}

.weather-stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Hourly Forecast */
.hourly-forecast {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.hourly-forecast::-webkit-scrollbar {
    height: 6px;
}

.hourly-forecast::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.hourly-forecast::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.hourly-item {
    min-width: 120px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: var(--border-radius);
    transition: var(--transition);
    flex-shrink: 0;
    border: 1px solid rgba(116, 185, 255, 0.1);
    box-shadow: 0 2px 10px rgba(116, 185, 255, 0.05);
}

.hourly-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ffffff, #ffffff);
    box-shadow: 0 8px 25px rgba(116, 185, 255, 0.15);
    border-color: var(--primary-color);
}

.hourly-time {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.hourly-time .fw-bold {
    font-size: 0.9rem;
    line-height: 1.2;
}

.hourly-time small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.hourly-icon {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.hourly-temp {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Daily Forecast */
.daily-forecast-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(116, 185, 255, 0.1);
    transition: var(--transition);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.daily-forecast-item:last-child {
    border-bottom: none;
}

.daily-forecast-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.1);
    transform: translateX(5px);
}

.daily-date {
    min-width: 100px;
    font-weight: 600;
}

.daily-icon {
    min-width: 60px;
    text-align: center;
    font-size: 1.5rem;
}

.daily-description {
    flex: 1;
    padding: 0 1rem;
}

.daily-temps {
    min-width: 100px;
    text-align: right;
}

.temp-high {
    font-weight: 600;
    color: #fd79a8;
}

.temp-low {
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
}

/* Breadcrumb */
.breadcrumb-custom {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(116, 185, 255, 0.1);
}

.breadcrumb-custom .breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: #0984e3;
    text-shadow: 0 1px 3px rgba(116, 185, 255, 0.2);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--secondary-color);
}

/* Navigation Pills/Tabs */
.nav-pills {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-pills .nav-link {
    border-radius: 25px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    color: var(--primary-color);
    border: 2px solid transparent;
    font-weight: 500;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.1);
    white-space: nowrap;
    min-width: auto;
}

.nav-pills .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 185, 255, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff, #ffffff);
}

.nav-pills .nav-link.active {
    background: var(--primary-gradient) !important;
    color: white !important;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(116, 185, 255, 0.4);
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    padding: 1rem 0;
}

/* Alert Styles */
.alert-custom {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-info-custom {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.1), rgba(9, 132, 227, 0.1));
    color: var(--primary-color);
    border: 1px solid rgba(116, 185, 255, 0.2);
    border-radius: var(--border-radius);
}

.alert-warning-custom {
    background: linear-gradient(135deg, rgba(253, 203, 110, 0.1), rgba(225, 112, 85, 0.1));
    color: #e17055;
    border: 1px solid rgba(253, 203, 110, 0.2);
    border-radius: var(--border-radius);
}

.alert-danger-custom {
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.1), rgba(232, 67, 147, 0.1));
    color: #e84393;
    border: 1px solid rgba(253, 121, 168, 0.2);
    border-radius: var(--border-radius);
}

.alert-success {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.1), rgba(0, 206, 201, 0.1));
    color: var(--success-color);
    border: 1px solid rgba(0, 184, 148, 0.2);
    border-radius: var(--border-radius);
}

/* Weather Icons Colors */
.weather-sunny { 
    color: #fdcb6e; 
    filter: drop-shadow(0 2px 4px rgba(253, 203, 110, 0.3));
}

.weather-cloudy { 
    color: #74b9ff; 
    filter: drop-shadow(0 2px 4px rgba(116, 185, 255, 0.3));
}

.weather-rainy { 
    color: #00b894; 
    filter: drop-shadow(0 2px 4px rgba(0, 184, 148, 0.3));
}

.weather-stormy { 
    color: #a29bfe; 
    filter: drop-shadow(0 2px 4px rgba(162, 155, 254, 0.3));
}

.weather-snowy { 
    color: #ddd; 
    filter: drop-shadow(0 2px 4px rgba(221, 221, 221, 0.3));
}

.weather-foggy { 
    color: #bdc3c7; 
    filter: drop-shadow(0 2px 4px rgba(189, 195, 199, 0.3));
}

.weather-windy { 
    color: #00cec9; 
    filter: drop-shadow(0 2px 4px rgba(0, 206, 201, 0.3));
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3436, #636e72);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: #bdc3c7;
}

/* Loading Skeleton */
.loading-skeleton {
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Weather Advice Items */
.weather-advice-item {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(116, 185, 255, 0.1);
    transition: var(--transition);
}

.weather-advice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.1);
    border-color: var(--primary-color);
}

.advice-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(116, 185, 255, 0.2), transparent);
    margin: 3rem 0;
}

/* Utility Classes */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.bg-gradient-success {
    background: var(--success-gradient) !important;
}

.bg-gradient-warning {
    background: var(--warning-gradient) !important;
}

.bg-gradient-danger {
    background: var(--danger-gradient) !important;
}

.shadow-custom {
    box-shadow: var(--card-shadow) !important;
}

.shadow-hover-custom {
    transition: var(--transition);
}

.shadow-hover-custom:hover {
    box-shadow: var(--card-hover-shadow) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .location-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .temperature-display {
        font-size: 3.5rem;
    }
    
    .weather-icon-large {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .temperature-display {
        font-size: 3rem;
    }

    .weather-icon-large {
        font-size: 4rem;
    }

    .weather-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 15px rgba(116, 185, 255, 0.08);
        background: linear-gradient(135deg, #ffffff, #ffffff);
    }

    .weather-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .hourly-item {
        min-width: 100px;
        padding: 1rem 0.75rem;
    }

    .hourly-time .fw-bold {
        font-size: 0.8rem;
    }
    
    .hourly-time small {
        font-size: 0.65rem;
    }

    .location-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .location-card {
        box-shadow: 0 2px 15px rgba(116, 185, 255, 0.08);
        background: linear-gradient(135deg, #ffffff, #ffffff);
    }

    .daily-forecast-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .daily-date {
        min-width: auto;
    }

    .daily-temps {
        min-width: auto;
    }

    .search-form {
        max-width: 100%;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-pills {
        justify-content: center;
    }
    
    .nav-pills .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .weather-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .temperature-display {
        font-size: 2.5rem;
    }

    .weather-icon-large {
        font-size: 3rem;
    }

    .weather-stats {
        grid-template-columns: 1fr;
    }

    .hourly-item {
        min-width: 80px;
        padding: 0.75rem 0.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .location-card {
        padding: 1rem;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumb-custom {
        padding: 0.75rem 1rem;
    }

    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .nav-pills .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin: 0.25rem;
    }
    
    .location-icon {
        width: 40px;
        height: 40px;
    }
    
    .location-temp {
        font-size: 1.25rem;
    }
}
/* Print Styles */
@media print {
    .navbar,
    .footer,
    .search-form,
    .btn,
    .nav-pills {
        display: none !important;
    }

    .weather-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }
    
    body::before {
        display: none;
    }
    
    .hero-section {
        background: white;
        color: black;
        padding: 1rem 0;
    }
    
    .location-card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .temperature-display {
        color: black;
        -webkit-text-fill-color: black;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #2c3e50;
        --card-bg: #34495e;
        --text-color: #ecf0f1;
        --text-muted: #bdc3c7;
        --border-color: #4a5f7a;
    }

    body {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    body::before {
        background: 
            radial-gradient(circle at 25% 25%, rgba(116, 185, 255, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 75% 75%, rgba(0, 184, 148, 0.05) 0%, transparent 50%);
    }
    
    .weather-card,
    .location-card,
    .breadcrumb-custom,
    .section-container {
        background: #34495e;
        color: #ecf0f1;
        border-color: #4a5f7a;
    }
    
    .hourly-item {
        background: #404040;
        border-color: #505050;
    }
    
    .hourly-item:hover {
        background: #2d2d2d;
    }
    
    .search-input {
        background: rgba(52, 73, 94, 0.9);
        color: #ecf0f1;
        border-color: #4a5f7a;
    }
    
    .search-input:focus {
        background: #34495e;
        border-color: var(--primary-color);
    }
    
    .nav-pills .nav-link {
        background: #404040;
        color: #ecf0f1;
        border-color: #505050;
    }
    
    .nav-pills .nav-link:hover {
        background: #2d2d2d;
        border-color: var(--primary-color);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .weather-card,
    .location-card {
        border: 2px solid #000;
    }

    .btn {
        border: 2px solid #000;
    }
    
    .nav-pills .nav-link {
        border: 2px solid #000;
    }
    
    .search-input {
        border: 2px solid #000;
    }
    
    .section-title::before {
        background: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .weather-card:hover,
    .location-card:hover,
    .hourly-item:hover {
        transform: none;
    }
}

/* Focus Styles for Accessibility */
.weather-card:focus-within,
.location-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-pills .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.search-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading States */
.loading-state {
    opacity: 0.6;
    pointer-events: none;
}

.loading-state .weather-card {
    position: relative;
    overflow: hidden;
}

.loading-state .weather-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Error States */
.error-state {
    background: linear-gradient(135deg, rgba(253, 121, 168, 0.1), rgba(232, 67, 147, 0.1));
    border: 1px solid rgba(253, 121, 168, 0.2);
    color: #e84393;
}

.error-icon {
    color: #e84393;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Success States */
.success-state {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.1), rgba(0, 206, 201, 0.1));
    border: 1px solid rgba(0, 184, 148, 0.2);
    color: var(--success-color);
}

/* Weather Condition Specific Styles */
.weather-condition-rain {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.1), rgba(0, 206, 201, 0.1));
}

.weather-condition-sunny {
    background: linear-gradient(135deg, rgba(253, 203, 110, 0.1), rgba(225, 112, 85, 0.1));
}

.weather-condition-cloudy {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.1), rgba(9, 132, 227, 0.1));
}

.weather-condition-storm {
    background: linear-gradient(135deg, rgba(162, 155, 254, 0.1), rgba(116, 103, 239, 0.1));
}

/* Interactive Elements */
.clickable-temp {
    cursor: pointer;
    transition: var(--transition);
}

.clickable-temp:hover {
    transform: scale(1.05);
    color: var(--primary-color);
}

/* Tooltip Styles */
.weather-tooltip {
    position: relative;
}

.weather-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.weather-tooltip:hover::after {
    opacity: 1;
}

/* Badge Styles */
.weather-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-badge-hot {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
}

.weather-badge-cold {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.weather-badge-normal {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
}

/* Progress Bars */
.weather-progress {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.weather-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.humidity-progress .weather-progress-bar {
    background: linear-gradient(90deg, #74b9ff, #0984e3);
}

.uv-progress .weather-progress-bar {
    background: linear-gradient(90deg, #fdcb6e, #e17055);
}

.wind-progress .weather-progress-bar {
    background: linear-gradient(90deg, #00cec9, #00b894);
}

/* Chart Containers */
.weather-chart-container {
    position: relative;
    height: 200px;
    margin: 1rem 0;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
}

/* Map Container */
.weather-map-container {
    position: relative;
    height: 300px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Notification Styles */
.weather-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 300px;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--primary-color);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.weather-notification.show {
    transform: translateX(0);
}

.weather-notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0984e3;
}

/* Selection Styles */
::selection {
    background: rgba(116, 185, 255, 0.2);
    color: var(--text-color);
}

::-moz-selection {
    background: rgba(116, 185, 255, 0.2);
    color: var(--text-color);
}

/* Custom Scrollbar for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

/* Preloader */
.weather-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.weather-preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.weather-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(116, 185, 255, 0.4);
}

/* Sticky Elements */
.sticky-weather-summary {
    position: sticky;
    top: 100px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Custom Radio Buttons for Units */
.unit-selector {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.unit-option {
    position: relative;
}

.unit-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.unit-option label {
    display: block;
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
}

.unit-option input[type="radio"]:checked + label {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
}

.unit-option label:hover {
    border-color: var(--primary-color);
    background: rgba(116, 185, 255, 0.1);
}

/* Weather Alert Banner */
.weather-alert-banner {
    position: sticky;
    top: 80px;
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
    padding: 1rem;
    text-align: center;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(253, 121, 168, 0.3);
}

.weather-alert-banner .close-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Final Responsive Adjustments */
@media (max-width: 480px) {
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .weather-card {
        padding: 0.75rem;
    }
    
    .location-icon {
        width: 35px;
        height: 35px;
    }
    
    .section-title {
        font-size: 1.1rem;
        padding-left: 0.75rem;
    }
    
    .section-title::before {
        width: 3px;
        height: 18px;
    }
    
    .weather-stats {
        gap: 0.5rem;
    }
    
    .weather-stat {
        padding: 0.75rem;
    }
    
    .nav-pills .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* End of CSS */
/* Thêm vào weather-app.css */

/* Daily Forecast Improvements */
.daily-forecast {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid rgba(116, 185, 255, 0.1);
}

.daily-forecast-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 1rem;
    border-bottom: none;
    transition: var(--transition);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background: white;
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.05);
    border: 1px solid rgba(116, 185, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.daily-forecast-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: var(--transition);
}

.daily-forecast-item:hover::before {
    transform: scaleY(1);
}

.daily-forecast-item:hover {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 8px 25px rgba(116, 185, 255, 0.12);
    transform: translateX(8px);
    border-color: var(--primary-color);
}

.daily-forecast-item:last-child {
    margin-bottom: 0;
}

/* Daily Date Styling */
.daily-date {
    min-width: 120px;
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--light-bg), #ffffff);
    border-radius: 10px;
    margin-right: 1rem;
    border: 1px solid rgba(116, 185, 255, 0.1);
}

.daily-date .fw-bold {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    display: block;
}

.daily-date small {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: capitalize;
    font-weight: 500;
}

/* Daily Icon Styling */
.daily-icon {
    min-width: 80px;
    text-align: center;
    font-size: 2rem;
    margin-right: 1rem;
    position: relative;
}

.daily-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.daily-icon:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Daily Description */
.daily-description {
    flex: 1;
    padding: 0 1rem;
}

.daily-description .fw-semibold {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.daily-description small {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.daily-description small i {
    width: 16px;
    text-align: center;
}

/* Daily Temperatures */
.daily-temps {
    min-width: 120px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.temp-high {
    font-weight: 700;
    font-size: 1.3rem;
    color: #fd79a8;
    text-shadow: 0 1px 2px rgba(253, 121, 168, 0.2);
}

.temp-low {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-left: 0;
}

.temp-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.temp-range::before {
    content: '';
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--text-muted), #fd79a8);
    border-radius: 1px;
}

/* Weather Condition Badges */
.weather-condition-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.condition-sunny {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
}

.condition-rainy {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.condition-cloudy {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: white;
}

.condition-clear {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
}

/* Precipitation Probability */
.precipitation-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
}

.precipitation-info i {
    color: var(--info-color);
}

/* UV Index Indicator */
.uv-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    margin-left: 0.5rem;
}

.uv-low { background: #00b894; }
.uv-moderate { background: #fdcb6e; }
.uv-high { background: #fd79a8; }
.uv-very-high { background: #e84393; }

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    .daily-forecast-item {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .daily-date {
        min-width: 80px;
        margin-right: 0.5rem;
        padding: 0.5rem;
    }

    .daily-date .fw-bold {
        font-size: 1rem;
    }

    .daily-icon {
        min-width: 60px;
        font-size: 1.8rem;
        margin-right: 0.5rem;
    }

    .daily-description {
        flex: 1;
        padding: 0 0.5rem;
        min-width: 200px;
    }

    .daily-description small {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .daily-temps {
        min-width: auto;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .temp-high {
        font-size: 1.2rem;
    }

    .temp-low {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .daily-forecast-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .daily-date {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .daily-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .daily-description {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .daily-temps {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}
/* Weather Details Grid */
.weather-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.weather-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.25rem 0;
}

.weather-detail-item i {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.detail-label {
    font-weight: 500;
    color: var(--text-muted);
    min-width: 60px;
}

.detail-value {
    color: var(--text-color);
    font-weight: 500;
}

/* Weather Icon Time */
.weather-icon-time {
    text-align: center;
    font-size: 1.5rem;
}

.weather-icon-time small {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Temperature Display */
.temp-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.temp-high {
    font-weight: 700;
    font-size: 1.4rem;
    color: #fd79a8;
    text-shadow: 0 1px 2px rgba(253, 121, 168, 0.2);
}

.temp-low {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

.temp-divider {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, var(--text-muted), #fd79a8);
}

/* Temperature Range Visual */
.temp-range-visual {
    text-align: center;
}

.temp-range-bar {
    width: 60px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 0.25rem;
}

.temp-range-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.temp-low .temp-range-fill {
    background: linear-gradient(90deg, #74b9ff, #0984e3);
}

.temp-medium .temp-range-fill {
    background: linear-gradient(90deg, #fdcb6e, #e17055);
}

.temp-high .temp-range-fill {
    background: linear-gradient(90deg, #fd79a8, #e84393);
}

/* Weekly Summary */
.weekly-summary {
    background: linear-gradient(135deg, var(--light-bg), #ffffff);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(116, 185, 255, 0.1);
}

.weekly-summary h5 {
    color: var(--text-color);
    font-weight: 600;
}

/* Enhanced Daily Forecast Item */
.daily-forecast-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.08);
    border: 1px solid rgba(116, 185, 255, 0.1);
    transition: var(--transition);
    position: relative;
}

.daily-forecast-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(116, 185, 255, 0.15);
    border-color: var(--primary-color);
}

/* Daily Date Enhanced */
.daily-date {
    min-width: 100px;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--light-bg), #ffffff);
    border-radius: 10px;
    margin-right: 1rem;
    border: 1px solid rgba(116, 185, 255, 0.1);
    position: relative;
}

.daily-date .badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Daily Icon Enhanced */
.daily-icon {
    min-width: 100px;
    margin-right: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .daily-forecast-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .daily-date {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .daily-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .daily-icon .d-flex {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .daily-description {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .weather-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .daily-temps {
        width: 100%;
        margin-top: 1rem;
    }

    .weekly-summary .row {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .daily-icon .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .weather-details-grid {
        grid-template-columns: 1fr;
    }

    .weather-detail-item {
        justify-content: center;
        text-align: center;
    }
}

/* Weather Detail Section */
.weather-detail-section {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(116, 185, 255, 0.1);
    height: 100%;
}

.weather-detail-section h5 {
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 2px solid rgba(116, 185, 255, 0.1);
    padding-bottom: 0.5rem;
}

/* Enhanced Weather Details Grid */
.weather-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.weather-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(116, 185, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(116, 185, 255, 0.08);
    transition: var(--transition);
}

.weather-detail-item:hover {
    background: rgba(116, 185, 255, 0.08);
    border-color: rgba(116, 185, 255, 0.2);
    transform: translateX(3px);
}

.weather-detail-item i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.detail-label {
    font-weight: 500;
    color: var(--text-muted);
    min-width: 140px;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Sun Moon Information */
.sun-moon-info {
    padding: 1rem;
}

.sun-moon-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(116, 185, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(116, 185, 255, 0.08);
}

.sun-moon-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-bg), #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.sun-moon-details {
    flex: 1;
}

.sun-moon-time {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.sun-moon-time strong {
    color: var(--text-color);
}

.sun-moon-duration {
    margin-top: 0.5rem;
}

/* Weather Background Info */
.weather-background-info {
    border-top: 1px solid rgba(116, 185, 255, 0.1);
    padding-top: 1.5rem;
}

/* Enhanced Current Weather Card */
.current-weather-card {
    background: var(--success-gradient);
    color: white;
    text-align: left;
    border: none;
    position: relative;
    overflow: hidden;
}

.current-weather-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Badge Enhancements */
.badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
}

.badge.bg-success {
    background: linear-gradient(135deg, #00b894, #00cec9) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #fdcb6e, #e17055) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #fd79a8, #e84393) !important;
}

.badge.bg-dark {
    background: linear-gradient(135deg, #2d3436, #636e72) !important;
}

/* Progress Bars for Metrics */
.metric-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.metric-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.humidity-progress .metric-progress-bar {
    background: linear-gradient(90deg, #74b9ff, #0984e3);
}

.pressure-progress .metric-progress-bar {
    background: linear-gradient(90deg, #a29bfe, #6c5ce7);
}

.uv-progress .metric-progress-bar {
    background: linear-gradient(90deg, #fdcb6e, #e17055);
}

.aqi-progress .metric-progress-bar {
    background: linear-gradient(90deg, #00b894, #00cec9);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .weather-detail-section {
        margin-bottom: 1.5rem;
    }
    
    .weather-detail-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .detail-label {
        min-width: auto;
        font-weight: 600;
    }
    
    .sun-moon-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .sun-moon-icon {
        width: 50px;
        height: 50px;
    }
    
    .current-weather-card .row {
        text-align: center;
    }
    
    .weather-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .weather-detail-grid {
        gap: 0.75rem;
    }
    
    .weather-detail-item {
        padding: 0.5rem;
    }
    
    .weather-stats {
        grid-template-columns: 1fr;
    }
    
    .sun-moon-info {
        padding: 0.5rem;
    }
}
/* Thêm vào weather-app.css */

/* Search Results Specific Styles */
.search-highlight {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

.search-results-header {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.search-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.search-stat {
    text-align: center;
}

.search-stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.search-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Quick Access Buttons */
.quick-access-btn {
    transition: var(--transition);
    border: 2px solid transparent;
}

.quick-access-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Search Suggestions */
.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.suggestion-btn {
    transition: var(--transition);
    border-radius: 20px;
}

.suggestion-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--border-radius);
}

.no-results i {
    opacity: 0.5;
    margin-bottom: 2rem;
}

/* Search Input Enhancements */
.search-page .input-group .form-control {
    border-radius: 25px 0 0 25px;
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
}

.search-page .input-group .btn {
    border-radius: 0 25px 25px 0;
    border: 2px solid var(--primary-color);
    border-left: none;
    padding: 0.75rem 1.5rem;
}

.search-page .input-group .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(116, 185, 255, 0.25);
    border-color: var(--primary-color);
}

/* Responsive Search Results */
@media (max-width: 768px) {
    .search-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .suggestion-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .quick-access-btn {
        margin-bottom: 1rem;
    }
    
    .search-page .input-group {
        flex-direction: column;
    }
    
    .search-page .input-group .form-control,
    .search-page .input-group .btn {
        border-radius: 25px;
        border: 2px solid var(--primary-color);
        margin-bottom: 0.5rem;
    }
}

/* Mark/Highlight Styling */
mark {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Search Result Cards Animation */
.search-result-card {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.search-result-card:nth-child(1) { animation-delay: 0.1s; }
.search-result-card:nth-child(2) { animation-delay: 0.2s; }
.search-result-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
