/* ============================================
   E-DUMAS Modern Design System
   Inspired by LAPOR! (lapor.go.id)
   ============================================ */

:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --secondary: #0f172a;
    --accent: #dc2626;
    --accent-light: #fef2f2;
    --success: #16a34a;
    --warning: #f59e0b;
    --info: #0891b2;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hide non-active pages */
.page-section { display: none; }
.page-section.active { display: block; }

/* ============================================
   NAVBAR
   ============================================ */
#mainNavbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

#mainNavbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.brand-title {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: -2px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.1);
}

.btn-nav-login {
    background: var(--primary) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
}

.btn-nav-login:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(30,58,95,0.7) 50%, rgba(26,86,219,0.6) 100%);
    z-index: 1;
}

.hero-bg-image {
    display: none;
}

.hero-bg-image img {
    display: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.08'%3E%3Cpath d='M40 10 L50 20 L50 35 L40 45 L30 35 L30 20 Z'/%3E%3Cpath d='M40 45 L50 55 L50 70 L40 80 L30 70 L30 55 Z'/%3E%3Cpath d='M10 25 L20 15 L30 20 L30 35 L20 40 L10 35 Z'/%3E%3Cpath d='M50 20 L60 15 L70 25 L70 35 L60 40 L50 35 Z'/%3E%3Ccircle cx='40' cy='10' r='2'/%3E%3Ccircle cx='40' cy='45' r='2'/%3E%3Cpath d='M15 0 L25 10 M55 0 L65 10 M0 40 L10 30 M70 30 L80 40'/%3E%3Cpath d='M35 5 L40 0 L45 5 M35 75 L40 80 L45 75'/%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 1;
    z-index: 2;
}

.min-vh-80 { min-height: 80vh; }

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

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--accent);
}

.btn-hero-primary:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220,38,38,0.3);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.hero-illustration { position: relative; z-index: 3; }

.hero-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    color: white;
}

.hero-card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary-light);
}

.hero-card h5 { font-weight: 700; margin-bottom: 8px; }
.hero-card p { opacity: 0.7; font-size: 0.9rem; margin: 0; }

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.stat-card { text-align: center; padding: 16px; }

.stat-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-section {
    padding: 80px 0;
    background: white;
}

.section-header { margin-bottom: 48px; }

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
}

.process-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.process-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.process-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.process-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

/* ============================================
   PAGE HERO (Sub-pages)
   ============================================ */
.page-hero {
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.8), rgba(26,86,219,0.75));
    z-index: 0;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.08'%3E%3Cpath d='M40 10 L50 20 L50 35 L40 45 L30 35 L30 20 Z'/%3E%3Cpath d='M40 45 L50 55 L50 70 L40 80 L30 70 L30 55 Z'/%3E%3Cpath d='M10 25 L20 15 L30 20 L30 35 L20 40 L10 35 Z'/%3E%3Cpath d='M50 20 L60 15 L70 25 L70 35 L60 40 L50 35 Z'/%3E%3Ccircle cx='40' cy='10' r='2'/%3E%3Ccircle cx='40' cy='45' r='2'/%3E%3Cpath d='M15 0 L25 10 M55 0 L65 10 M0 40 L10 30 M70 30 L80 40'/%3E%3Cpath d='M35 5 L40 0 L45 5 M35 75 L40 80 L45 75'/%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 1;
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

.page-hero-sm { padding: 100px 0 50px; }

.bg-danger-gradient {
    background: linear-gradient(135deg, rgba(15,23,42,0.8), rgba(26,86,219,0.75)) !important;
}

.page-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.page-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* ============================================
   FORM CARD
   ============================================ */
.form-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.form-card-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.form-card-header h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    color: var(--gray-800);
}

.form-card-body { padding: 32px; }

.form-control-modern,
.form-select-modern {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control-modern:focus,
.form-select-modern:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.form-label { font-size: 0.9rem; color: var(--gray-700); }

/* Alert Modern */
.alert-info-modern {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--primary-dark);
}

.alert-icon { font-size: 1.2rem; margin-top: 2px; }

/* Upload Area */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-area a {
    color: var(--gray-500);
    text-decoration: none;
    display: block;
}

.upload-area:hover a { color: var(--primary); }

/* Captcha */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.txt-captcha {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-reload-captcha {
    color: var(--primary);
    font-size: 1.1rem;
    text-decoration: none;
}

.captcha-input {
    width: 60px;
    text-align: center;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 8px;
    font-weight: 600;
}

/* Button Primary Modern */
.btn-primary-modern {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 12px 24px;
    transition: var(--transition);
}

.btn-primary-modern:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

/* Success Card */
.success-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.success-card-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 16px;
}

.success-card h3 { font-weight: 700; color: var(--success); }

.ticket-display {
    background: var(--gray-900);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
    display: inline-block;
}

.ticket-display small {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticket-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 3px;
    margin-top: 4px;
}

/* ============================================
   TRACKING
   ============================================ */
.tracking-search-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.tracking-search-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.tracking-input-group {
    max-width: 400px;
    margin: 0 auto;
}

.tracking-input-group .form-control {
    border-radius: 30px 0 0 30px;
    border: 2px solid var(--gray-200);
    padding: 12px 20px;
}

.tracking-input-group .btn {
    border-radius: 0 30px 30px 0;
    padding: 12px 24px;
}

/* Status Cards */
.status-overview {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.status-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.status-received:hover, .status-received.now2 {
    border-color: var(--primary);
    background: var(--primary-light);
}

.status-process:hover, .status-process.now2 {
    border-color: var(--warning);
    background: #fffbeb;
}

.status-done:hover, .status-done.now2 {
    border-color: var(--success);
    background: #f0fdf4;
}

.status-card-icon { font-size: 2rem; color: var(--gray-400); margin-bottom: 12px; }
.status-received .status-card-icon { color: var(--primary); }
.status-process .status-card-icon { color: var(--warning); }
.status-done .status-card-icon { color: var(--success); }

.status-card-number { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); }
.status-card-label { font-weight: 600; color: var(--gray-600); margin-top: 4px; }
.status-card-hint { font-size: 0.75rem; color: var(--gray-400); margin-top: 8px; }

/* Backward compat for JS classes */
.yesterday { cursor: pointer; }
.now2 { cursor: pointer; }

/* ============================================
   ABOUT / TENTANG
   ============================================ */
.about-image-wrapper { text-align: center; }

.about-image-card {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.content-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.content-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.content-text {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-features { margin-top: 24px; }

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-weight: 500;
    color: var(--gray-700);
}

/* ============================================
   KONTAK
   ============================================ */
.map-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.map-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.map-card:hover .map-overlay { opacity: 1; }

.contact-info-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item-text strong { display: block; font-size: 0.85rem; color: var(--gray-500); }
.contact-item-text p { margin: 0; font-weight: 500; }

.social-links { display: flex; gap: 10px; }

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   AUTH (LOGIN / REGISTER)
   ============================================ */
.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.auth-card-header {
    text-align: center;
    padding: 40px 32px 24px;
}

.auth-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.auth-card-header h3 { font-weight: 700; margin-bottom: 4px; }

.auth-card-body { padding: 0 32px 32px; }

.auth-card-footer {
    padding: 0 32px 32px;
    border-top: 1px solid var(--gray-100);
    padding-top: 24px;
}

/* Radio Cards */
.radio-card { position: relative; }

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.radio-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.radio-card label i { font-size: 1.2rem; margin-bottom: 4px; color: var(--gray-400); }
.radio-card label span { font-size: 0.7rem; font-weight: 600; color: var(--gray-600); }

.radio-card input:checked + label {
    border-color: var(--primary);
    background: var(--primary-light);
}

.radio-card input:checked + label i { color: var(--primary); }

/* OTP */
.otp-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--gray-200);
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
    outline: none;
}

/* ============================================
   PROFILE
   ============================================ */
.profile-header-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.profile-avatar {
    font-size: 3rem;
    color: var(--primary);
}

.profile-info { flex: 1; }
.profile-info h4 { font-weight: 700; margin: 0; }

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.aduan-list { display: flex; flex-direction: column; gap: 12px; }

.aduan-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.aduan-item:hover { border-color: var(--primary); }

.aduan-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--gray-50);
    transition: var(--transition);
}

.aduan-item-header:hover { background: var(--primary-light); }

.aduan-item-body { padding: 16px 20px; border-top: 1px solid var(--gray-100); }

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 360px;
    z-index: 9999;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    background: white;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chat-header-actions { display: flex; gap: 8px; }

.chat-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.chat-btn:hover { background: rgba(255,255,255,0.3); }

.chat-info-bar {
    padding: 10px 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 16px;
}

.chat-messages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.chat-message.outgoing { flex-direction: row-reverse; }

.chat-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.chat-bubble {
    background: var(--gray-100);
    border-radius: 12px 12px 12px 4px;
    padding: 10px 14px;
    max-width: 75%;
}

.chat-message.outgoing .chat-bubble {
    background: var(--primary-light);
    border-radius: 12px 12px 4px 12px;
}

.chat-name { font-size: 0.75rem; font-weight: 600; color: var(--primary); display: block; }
.chat-bubble p { margin: 4px 0; font-size: 0.85rem; }
.chat-time { font-size: 0.7rem; color: var(--gray-400); }

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--gray-100);
    background: white;
}

.chat-input-area .form-control {
    border-radius: 20px;
    border: 1.5px solid var(--gray-200);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.chat-input-area .btn {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--gray-900);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-title {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover { color: white; }

.footer-social { display: flex; gap: 10px; }

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 40px 0 20px;
}

.footer-bottom { text-align: center; }

/* ============================================
   UTILITIES
   ============================================ */
.hide { display: none !important; }
.hidden { display: none !important; }

.form-check-modern .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .hero-section { min-height: 70vh; }
    .hero-bg-image { width: 60%; opacity: 0.7; }
    .hero-bg-image img { opacity: 0.1; }
    .stats-wrapper { padding: 24px; }
    .stat-number { font-size: 1.6rem; }
}

@media (max-width: 767px) {
    .hero-title { font-size: 1.8rem; }
    .hero-desc { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .btn-hero-primary, .btn-hero-outline { text-align: center; }
    .hero-bg-image { width: 80%; }
    .hero-bg-image img { opacity: 0.08; }
    .page-hero-title { font-size: 1.6rem; }
    .form-card-body { padding: 20px; }
    .tracking-search-card { padding: 32px 20px; }
    .profile-header-card { flex-direction: column; text-align: center; }
    .process-section { padding: 48px 0; }
    .section-title { font-size: 1.5rem; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-section.active {
    animation: fadeInUp 0.4s ease-out;
}

/* Popover styling for Bootstrap 5 */
.popover {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.popover-header {
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius) var(--radius) 0 0;
}
