/* Shared Styles - Cookie Banner Inspired Design */

/* Body padding for fixed navbar */
body {
    padding-top: 80px; /* Base navbar height */
}

/* Mobile adjustments for navbar with browse section */
@media (max-width: 991.98px) {
    body {
        padding-top: 140px; /* Navbar + mobile browse section height */
    }
}

/* Landing Page Styles */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(135, 206, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.2), rgba(255, 193, 7, 0.2));
    border: 1px solid rgba(135, 206, 235, 0.3);
    color: #87ceeb;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #87ceeb 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 90%;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #87ceeb;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-slideshow {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-chart-header {
    text-align: center;
    margin-bottom: 1rem;
}

.hero-chart-header h4 {
    color: #87ceeb;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero-chart-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.85rem;
}

.hero-chart-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    height: 250px;
    position: relative;
}

.hero-chart-stats {
    margin-bottom: 1rem;
}

.hero-stat {
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hero-stat:hover {
    border-color: rgba(135, 206, 235, 0.3);
}

.hero-stat-number {
    font-size: 1rem;
    font-weight: 600;
    color: #ffc107;
    display: block;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-chart-navigation {
    margin-bottom: 1rem;
}

.hero-nav-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.hero-nav-dot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-nav-dot:hover,
.hero-nav-dot.active {
    background: linear-gradient(135deg, #87ceeb, #ffc107);
    border-color: #87ceeb;
    color: #1a1a2e;
    transform: scale(1.1);
}

.hero-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #87ceeb, #ffc107);
    border-radius: 2px;
    transition: width 0.1s ease;
    width: 0%;
}

.hero-chart-actions .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.hero-chart-actions .btn-outline-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-chart-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.data-sections {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.data-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.data-card-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.data-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
}

.data-card-icon.asylum {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.data-card-icon.crossings {
    background: linear-gradient(135deg, #007bff, #6f42c1);
}

.data-card-icon.detention {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.data-card-icon.authorities {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
}

.data-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.data-card-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.data-card-body {
    padding: 1rem 1.5rem;
    flex-grow: 1;
}

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

.card-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
}

.card-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.feature-item i {
    color: #87ceeb;
}

.data-card-footer {
    padding: 0 1.5rem 1.5rem;
}

.btn-card-primary {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #87ceeb;
    border: 1px solid rgba(135, 206, 235, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-card-primary:hover {
    background: linear-gradient(135deg, #16213e, #0f3460);
    color: #ffffff;
    border-color: #87ceeb;
    transform: translateY(-1px);
}

.chart-slideshow-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.slideshow-container {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.chart-display {
    margin-bottom: 2rem;
}

.chart-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    color: #87ceeb;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.chart-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1rem;
}

.chart-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    height: 400px;
    position: relative;
}

.chart-stats {
    margin-bottom: 1.5rem;
}

.chart-stat {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.chart-stat:hover {
    border-color: rgba(135, 206, 235, 0.3);
}

.chart-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
    display: block;
    margin-bottom: 0.5rem;
}

.chart-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.chart-navigation {
    margin-bottom: 2rem;
}

.nav-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nav-dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot:hover,
.nav-dot.active {
    background: linear-gradient(135deg, #87ceeb, #ffc107);
    border-color: #87ceeb;
    color: #1a1a2e;
    transform: scale(1.1);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #87ceeb, #ffc107);
    border-radius: 2px;
    transition: width 0.1s ease;
    width: 0%;
}

.chart-actions {
    text-align: center;
}

.btn-outline-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .data-card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .preview-chart {
        height: 150px;
    }
    
    .stat-card {
        padding: 1.5rem 0.75rem !important;
        min-height: 120px !important;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
        letter-spacing: 0.5px !important;
    }
    
    .stat-date {
        font-size: 0.75rem !important;
    }
    
    .hero-stats .row {
        gap: 1rem !important;
    }
    
    .hero-stats .col-6 {
        flex: 0 0 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
    }
}

/* Dark gradient backgrounds */
.dark-gradient {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
}

/* Enhanced navbar with primary theme */
.navbar-dark.bg-primary {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background: rgba(135, 206, 235, 0.2);
    color: #87ceeb !important;
    transform: translateY(-1px);
}

.navbar-dark .navbar-brand {
    color: #ffc107 !important;
    font-weight: 600;
}

/* Enhanced buttons matching cookie banner style */
.btn-modern {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-width: 2px;
    min-width: 120px;
}

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

/* Enhanced cards */
.card-modern {
    border-radius: 15px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Stats cards with enhanced styling */
.stats-card {
    border-radius: 15px !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.stats-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Animation from cookie banner */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out;
}

/* Enhanced modals */
.modal-content {
    border-radius: 15px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced footer with dark theme */
.footer-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
}

.footer-dark h6 {
    color: #ffc107;
    font-weight: 600;
}

.footer-dark a {
    color: rgba(135, 206, 235, 0.9);
    transition: all 0.3s ease;
}

.footer-dark a:hover {
    color: #87ceeb;
    text-decoration: underline !important;
}

.footer-dark .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Enhanced modal styling */
.modal-content-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    border: none;
}

.modal-content-dark .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content-dark .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content-dark h5, .modal-content-dark h6 {
    color: #ffc107;
}

/* Dark theme scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #87ceeb 0%, #5fa3d3 100%);
    border-radius: 10px;
    border: 2px solid #1a1a2e;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5fa3d3 0%, #4682b4 100%);
}

::-webkit-scrollbar-corner {
    background: #1a1a2e;
}

/* Firefox scrollbar styling */
html {
    scrollbar-width: thin;
    scrollbar-color: #87ceeb #1a1a2e;
}

/* Body padding for fixed navbar */
body {
    padding-top: 76px;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 120px;
    }
}

/* Enhanced Stat Cards - Consistent across all pages */
.stat-card, .stats-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 0 !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
}


.stat-card:hover, .stats-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(135, 206, 235, 0.2) !important;
}


.stat-card .card-body, .stats-card .card-body {
    padding: 2rem 1.5rem !important;
    text-align: center !important;
    position: relative !important;
}

.stat-card .fa-3x, .stats-card .fa-3x, .stat-card .fa-2x, .stats-card .fa-2x {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
    transition: all 0.4s ease !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) !important;
}

.stat-card:hover .fa-3x, .stats-card:hover .fa-3x, .stat-card:hover .fa-2x, .stats-card:hover .fa-2x {
    transform: scale(1.1) !important;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15)) !important;
}

.stat-card .stat-number, .stats-card h2 {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem !important;
    transition: all 0.4s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.stat-card .stat-label, .stats-card .card-title, .stats-card h5 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #495057 !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.stat-card small, .stats-card small {
    font-size: 0.85rem !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* Border color variations for different card types */
.stat-card.border-primary {
    --card-accent-color: #007bff;
}

.stat-card.border-warning {
    --card-accent-color: #ffc107;
}

.stat-card.border-success {
    --card-accent-color: #28a745;
}

.stat-card.border-danger {
    --card-accent-color: #dc3545;
}

.stat-card.border-info {
    --card-accent-color: #17a2b8;
}

/* Enhanced text colors for consistency */
.stat-card .text-primary, .stats-card .text-primary {
    color: #007bff !important;
}

.stat-card .text-warning, .stats-card .text-warning {
    color: #ffc107 !important;
}

.stat-card .text-success, .stats-card .text-success {
    color: #28a745 !important;
}

.stat-card .text-danger, .stats-card .text-danger {
    color: #dc3545 !important;
}

.stat-card .text-info, .stats-card .text-info {
    color: #17a2b8 !important;
}

/* Animation on load */
.stat-card, .stats-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.stat-card:nth-child(1), .stats-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2), .stats-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3), .stats-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4), .stats-card:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-card:nth-child(5), .stats-card:nth-child(5) {
    animation-delay: 0.5s;
}

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

/* Responsive adjustments for stat cards */
@media (max-width: 768px) {
    .stat-card .card-body, .stats-card .card-body {
        padding: 1.5rem 1rem !important;
    }
    
    .stat-card .fa-3x, .stats-card .fa-3x, .stat-card .fa-2x, .stats-card .fa-2x {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .stat-card .stat-number, .stats-card h2 {
        font-size: 1.75rem !important;
    }
    
    .stat-card .stat-label, .stats-card .card-title, .stats-card h5 {
        font-size: 0.9rem !important;
    }
    
    .stat-card small, .stats-card small {
        font-size: 0.8rem !important;
    }
}