* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.navbar {
    background: linear-gradient(135deg, #4a7c4a 0%, #5d8f5d 100%);
    padding: 0;
    box-shadow: 0 4px 20px rgba(74, 124, 74, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    width: 100%;
    margin: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 70px;
}

.logo {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: block;
    font-size: 0.95rem;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-menu a.active {
    background: rgba(255,255,255,0.3);
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: transparent;
}

.content-section {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin: 0;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a7c4a, #6bb26b, #4a7c4a);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.content-section.active {
    display: block;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.section-title {
    margin-bottom: 2rem;
    color: #4a7c4a;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4a7c4a, #6bb26b);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        height: auto;
    }

    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu a {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* HOME SECTION RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .quick-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .info-title,
    .stats-title,
    .features-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .info-cards,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .action-section {
        padding: 2rem 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .btn-content {
        align-items: center;
        text-align: center;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-action-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-badge {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .info-title,
    .stats-title,
    .features-title {
        font-size: 1.8rem;
    }
    
    .info-card,
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        font-size: 2rem;
        padding: 0.8rem;
    }
    
    .action-content h2 {
        font-size: 1.8rem;
    }
    
    .action-content p {
        font-size: 1rem;
    }
    
    .btn-primary-large,
    .btn-secondary-large {
        padding: 1rem 1.5rem;
        min-width: auto;
    }
    
    .btn-title {
        font-size: 1rem;
    }
    
    .btn-subtitle {
        font-size: 0.8rem;
    }
}

/* HOME SECTION STYLING */

/* Hero Section Enhanced */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding: 3rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 124, 74, 0.1);
    border: 1px solid rgba(74, 124, 74, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a7c4a;
    animation: float 3s ease-in-out infinite;
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    color: #4a7c4a;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(74, 124, 74, 0.1);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #4a7c4a 0%, #6bb26b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-top: 0.5rem;
}

.hero-description {
    color: #666;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 400;
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.quick-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(74, 124, 74, 0.1);
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4a7c4a;
}

.quick-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 124, 74, 0.2);
    background: rgba(255, 255, 255, 1);
}

.quick-stat-icon {
    font-size: 1.2rem;
}

/* Info Section */
.info-section {
    margin-bottom: 4rem;
    text-align: center;
}

.info-title {
    color: #4a7c4a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.info-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a7c4a, #6bb26b);
    border-radius: 2px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(74, 124, 74, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: all 0.3s ease;
}

.info-card.primary::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.info-card.secondary::before {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.info-card.accent::before {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 124, 74, 0.3);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.info-card h3 {
    color: #4a7c4a;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Stats Section Enhanced */
.stats-section {
    margin-bottom: 4rem;
}

.stats-title {
    color: #4a7c4a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.stats-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a7c4a, #6bb26b);
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(74, 124, 74, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a7c4a, #6bb26b);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(74, 124, 74, 0.2);
    border-color: rgba(74, 124, 74, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(74, 124, 74, 0.1), rgba(107, 178, 107, 0.1));
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(74, 124, 74, 0.1);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4a7c4a;
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 2px 4px rgba(74, 124, 74, 0.1);
}

.stat-label {
    color: #555;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-desc {
    color: #777;
    font-size: 0.85rem;
    line-height: 1.4;
}

.data-source {
    color: #666;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    font-weight: 400;
    text-align: center;
}

/* Features Section */
.features-section {
    margin-bottom: 4rem;
}

.features-title {
    color: #4a7c4a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a7c4a, #6bb26b);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(74, 124, 74, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a7c4a, #6bb26b);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(74, 124, 74, 0.2);
    border-color: rgba(74, 124, 74, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-card h3 {
    color: #4a7c4a;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.highlight-item {
    color: #4a7c4a;
    font-size: 0.9rem;
    font-weight: 500;
    padding-left: 0.5rem;
}

/* Action Section */
.action-section {
    background: linear-gradient(135deg, rgba(74, 124, 74, 0.1), rgba(107, 178, 107, 0.1));
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(74, 124, 74, 0.2);
    position: relative;
    overflow: hidden;
}

.action-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a7c4a, #6bb26b);
}

.action-content h2 {
    color: #4a7c4a;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.action-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-primary-large,
.btn-secondary-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    min-width: 220px;
    position: relative;
    overflow: hidden;
}

.btn-primary-large {
    background: linear-gradient(135deg, #4a7c4a 0%, #5d8f5d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 124, 74, 0.3);
}

.btn-secondary-large {
    background: rgba(255, 255, 255, 0.9);
    color: #4a7c4a;
    border: 2px solid rgba(74, 124, 74, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 124, 74, 0.4);
}

.btn-secondary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(74, 124, 74, 0.4);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.btn-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(74, 124, 74, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a7c4a;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(74, 124, 74, 0.2);
}

.quick-action-icon {
    font-size: 1rem;
}


.action-btn {
    background: linear-gradient(135deg, #4a7c4a 0%, #5d8f5d 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 124, 74, 0.3);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 124, 74, 0.4);
}

.action-btn:active {
    transform: translateY(-1px);
}

.search-btn {
    background: linear-gradient(135deg, #4a7c4a 0%, #5d8f5d 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    margin-left: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 124, 74, 0.2);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 74, 0.3);
}

.reset-btn {
    background: linear-gradient(135deg, #f44336 0%, #ff5722 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.2);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.3);
}


.search-bar {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(74, 124, 74, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: #4a7c4a;
    box-shadow: 0 0 0 3px rgba(74, 124, 74, 0.1);
    transform: scale(1.02);
}

.filter-bar {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    flex-wrap: wrap;
    border: 1px solid rgba(74, 124, 74, 0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 160px;
    flex: 1;
}

.filter-group label {
    font-weight: 600;
    color: #4a7c4a;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(74, 124, 74, 0.2);
    border-radius: 15px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #4a7c4a;
    box-shadow: 0 0 0 3px rgba(74, 124, 74, 0.1);
}

.status-display {
    padding: 0.75rem 1rem;
    background: rgba(74, 124, 74, 0.1);
    border-radius: 15px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
    color: #4a7c4a;
}


.table-container {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: white;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.data-table th {
    background: linear-gradient(135deg, #4a7c4a 0%, #5d8f5d 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1.5rem 1rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(74, 124, 74, 0.1);
    font-size: 0.95rem;
    font-weight: 500;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(74, 124, 74, 0.05);
    transform: scale(1.01);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #4a7c4a;
    font-style: italic;
    font-size: 1.1rem;
}


.map-container {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 3px solid rgba(74, 124, 74, 0.1);
}

.province-info {
    background: rgba(74, 124, 74, 0.1);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    font-size: 1rem;
    border-left: 4px solid #4a7c4a;
    font-weight: 600;
    color: #4a7c4a;
}


.map-stats {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    border: 1px solid rgba(74, 124, 74, 0.1);
}

.map-stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(74, 124, 74, 0.05);
    transition: all 0.3s ease;
}

.map-stat-item:hover {
    transform: translateY(-3px);
    background: rgba(74, 124, 74, 0.1);
}

.map-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #4a7c4a;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(74, 124, 74, 0.1);
}

.map-stat-label {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Map Legend Styles */
.map-legend {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    min-width: 200px;
    max-width: 280px;
    backdrop-filter: blur(8px);
}

.map-legend h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    line-height: 1.3;
}

.map-legend .legend-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 11px;
    line-height: 1.4;
    gap: 6px;
}

.map-legend .legend-item span {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.map-legend .legend-note {
    font-size: 10px;
    color: #888;
    text-align: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #eee;
    font-style: italic;
}


@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .container {
        padding: 1rem;
    }

    .content-section {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .filter-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        min-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .map-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .search-input {
        max-width: 100%;
    }

    .search-btn {
        margin-left: 0;
        width: 100%;
    }

    .reset-btn {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .map-container {
        height: 350px;
    }

    .map-stats {
        grid-template-columns: 1fr;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.loading-pulse {
    animation: pulse 2s infinite;
}

/* Detail Button Styling */
.detail-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    min-width: 80px;
    justify-content: center;
}

.detail-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.detail-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.detail-btn .btn-icon {
    font-size: 1rem;
}

.detail-btn .btn-text {
    font-size: 0.85rem;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

/* Detail Content Styling */
.detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.detail-card h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stat-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.stat-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
}

.trend-info {
    margin-top: 16px;
    text-align: center;
}

.trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.trend-up {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.trend-stable {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.trend-mixed {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Change Details Styling */
.change-details {
    margin-top: 12px;
    padding: 10px;
    background: rgba(156, 163, 175, 0.05);
    border-radius: 6px;
    border-left: 3px solid #9ca3af;
}

.change-detail-title {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.change-items {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.change-item {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid;
}

.change-item.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border-color: rgba(34, 197, 94, 0.2);
}

.change-item.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Historical Table Styling */
.historical-table {
    margin-top: 12px;
    overflow-x: auto;
}

.historical-table table {
    width: 100%;
    border-collapse: collapse;
}

.historical-table th,
.historical-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.historical-table th {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.historical-table td {
    color: #334155;
    font-size: 0.9rem;
}

.historical-table .current-year {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
}

.historical-table .current-year td {
    font-weight: 500;
}

/* Loading and Error States */
.loading-detail {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-detail p {
    color: #64748b;
    font-size: 0.95rem;
}

.error-detail {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.error-detail p {
    margin-bottom: 8px;
}

/* Modal Footer Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .modal-container {
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 12px 20px;
        flex-direction: column;
    }
    
    .detail-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .detail-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .detail-btn .btn-icon {
        font-size: 0.9rem;
    }
    
    .detail-btn .btn-text {
        font-size: 0.8rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .detail-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* Statistics Overview Section */
.statistics-overview {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.overview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(74, 124, 74, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a7c4a, #6bb26b);
}

.overview-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(74, 124, 74, 0.2);
    border-color: rgba(74, 124, 74, 0.3);
}

.overview-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(74, 124, 74, 0.1), rgba(107, 178, 107, 0.1));
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(74, 124, 74, 0.1);
    flex-shrink: 0;
    color: #4a7c4a;
}

.overview-content {
    flex: 1;
}

.overview-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #4a7c4a;
    margin-bottom: 0.5rem;
    display: block;
}

.overview-label {
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.overview-desc {
    color: #777;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Gender Statistics Section */
.gender-statistics {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gender-stats-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.gender-stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(74, 124, 74, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    min-width: 250px;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gender-stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(74, 124, 74, 0.2);
}

.gender-stat-card.male {
    border-top: 4px solid #3b82f6;
}

.gender-stat-card.female {
    border-top: 4px solid #ec4899;
}

.gender-stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gender-stat-card.male .gender-stat-icon {
    color: #3b82f6;
}

.gender-stat-card.female .gender-stat-icon {
    color: #ec4899;
}

.gender-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4a7c4a;
    margin-bottom: 0.5rem;
}

.gender-stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

.gender-stat-desc {
    font-size: 0.9rem;
    color: #777;
}

/* Dashboard Insights Section */
.dashboard-insights {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.insight-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(74, 124, 74, 0.1);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(74, 124, 74, 0.15);
}

.insight-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(74, 124, 74, 0.1);
    background: linear-gradient(135deg, rgba(74, 124, 74, 0.05), rgba(107, 178, 107, 0.05));
}

.insight-header h3 {
    margin: 0;
    color: #4a7c4a;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insight-body {
    padding: 2rem;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(74, 124, 74, 0.1);
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-position {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a7c4a, #6bb26b);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.ranking-content {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.ranking-value {
    font-size: 0.9rem;
    color: #6b7280;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(74, 124, 74, 0.1);
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.recent-content {
    flex: 1;
}

.recent-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.recent-desc {
    font-size: 0.8rem;
    color: #6b7280;
}

.trend-chart {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(74, 124, 74, 0.1);
}

.trend-item:last-child {
    border-bottom: none;
}

.trend-year {
    font-weight: 600;
    color: #374151;
}

.trend-value {
    color: #4a7c4a;
    font-weight: 600;
}

.loading-text {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem 0;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .statistics-overview,
    .gender-statistics,
    .dashboard-insights {
        padding: 2rem 1rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gender-stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .overview-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .overview-icon {
        margin-bottom: 0;
    }
    
    .gender-stat-card {
        min-width: auto;
        width: 100%;
        max-width: 350px;
    }
}