:root {
    /* Trust & Authority Palette */
    --primary-color: #0d47a1;
    /* Deep Trust Blue */
    --primary-hover: #08306b;
    --secondary-color: #dc3545;
    /* Urgent/Alert Red */
    --accent-color: #e3f2fd;
    /* Soft Blue Background */
    --text-dark: #1a202c;
    --text-muted: #4a5568;
    --success-color: #059669;
    --warning-color: #d97706;

    /* Spacing & Layout */
    --header-height: 64px;
    --bottom-nav-height: 60px;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--bottom-nav-height);
    /* Space for mobile nav */
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #111827;
}

/* Navbar Enhancements */
nav.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm) !important;
    padding: 0.75rem 0;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Trust Badge Banner */
.trust-banner {
    background: #f0f9ff;
    border-bottom: 1px solid #bae6fd;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #0369a1;
    text-align: center;
}

.trust-banner i {
    margin-right: 0.5rem;
}

/* Modern Card */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(13, 71, 161, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.input-group-text {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

/* Mobile Responsive Tweaks */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .navbar-toggler {
        border: none;
        color: var(--text-dark);
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0 0 12px 12px;
        box-shadow: var(--shadow-lg);
        border: 1px solid #e2e8f0;
        border-top: none;
    }

    body {
        padding-bottom: 70px;
        /* Env safe area */
    }
}

/* LANDING PAGE SPECIFIC */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.9) 0%, rgba(8, 48, 107, 0.95) 100%),
        url('/public/hero-bg.jpg') center / cover no-repeat;
    color: white;
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    border-radius: 0 0 20px 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffd700;
    /* Vibrant Gold for better visibility */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e0e7ff;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.search-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.search-nav .nav-link {
    color: #64748b !important;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.search-nav .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-container {
        padding: 1.5rem;
        margin-top: -40px;
    }

    .search-nav .nav-link {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}