/* =============================================
   Visa Portal — Custom Styles
   Design: Professional Minimalism
   Primary: #1B4FBE (Navy Blue)
   ============================================= */

:root {
    --primary:         #1B4FBE;
    --primary-light:   #4A80F0;
    --primary-surface: #EEF3FD;
    --status-green:    #10B981;
    --status-green-bg: #ECFDF5;
    --status-amber:    #F59E0B;
    --status-amber-bg: #FFFBEB;
    --status-red:      #EF4444;
    --status-red-bg:   #FEF2F2;
    --border:          #E5E7EB;
    --surface:         #F9FAFB;
}

/* ---- Global ---- */
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
a { color: var(--primary); }

/* ---- Navbar ---- */
.portal-navbar { background-color: var(--primary) !important; }
.nav-active { font-weight: 600 !important; opacity: 1 !important; border-bottom: 2px solid rgba(255,255,255,0.8); padding-bottom: 4px; }

/* ---- Buttons ---- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); }

/* ---- Status Badges ---- */
.badge.status-green  { background-color: var(--status-green-bg); color: var(--status-green); font-weight: 600; }
.badge.status-amber  { background-color: var(--status-amber-bg); color: var(--status-amber); font-weight: 600; }
.badge.status-red    { background-color: var(--status-red-bg);   color: var(--status-red);   font-weight: 600; }

/* ---- Stat Cards ---- */
.stat-card {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow .15s;
}
.stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.09); }
.stat-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: #6B7280; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.stat-icon  { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }

/* ---- Portal Cards ---- */
.portal-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.portal-card .card-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0 !important;
    padding: 16px 20px;
    font-weight: 600;
}

/* ---- Table ---- */
.portal-table thead th {
    background-color: var(--surface);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6B7280;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.portal-table tbody tr { transition: background .1s; }
.portal-table tbody tr:hover { background-color: #f8f9ff; }
.portal-table td { vertical-align: middle; }

/* ---- Progress bar ---- */
.progress { height: 6px; border-radius: 3px; }
.progress-bar { border-radius: 3px; background-color: var(--primary); }

/* ---- Login Page ---- */
.login-wrapper { min-height: 100vh; background: linear-gradient(135deg, #EEF3FD 0%, #f8faff 100%); display: flex; align-items: center; }
.login-card {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 40px;
}
.login-icon { font-size: 48px; color: var(--primary); }

/* ---- Section header ---- */
.section-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #6B7280;
    margin-bottom: 12px;
}

/* ---- Process timeline ---- */
.process-step { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid #F3F4F6; }
.process-step:last-child { border-bottom: none; }
.step-dot {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 13px; font-weight: 700;
}
.step-dot.done    { background: var(--status-green-bg); color: var(--status-green); }
.step-dot.pending { background: #F3F4F6; color: #9CA3AF; border: 2px solid var(--border); }

/* ---- Document checklist ---- */
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F3F4F6; }
.doc-row:last-child { border-bottom: none; }
.doc-row label { flex: 1; font-size: 14px; color: #374151; cursor: pointer; margin: 0; }

/* ---- File list ---- */
.file-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.file-icon { font-size: 22px; color: var(--primary); flex-shrink: 0; }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-sub  { font-size: 12px; color: #6B7280; }

/* ---- Alert banner (upcoming appointment) ---- */
.alert-appointment {
    background: var(--status-amber-bg);
    border: 1px solid #FDE68A;
    border-left: 4px solid var(--status-amber);
    border-radius: 8px;
    padding: 14px 16px;
}

/* ---- Tabs ---- */
.nav-tabs .nav-link { color: #6B7280; font-weight: 500; border: none; border-bottom: 2px solid transparent; padding: 10px 16px; }
.nav-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; font-weight: 600; }
.nav-tabs { border-bottom: 2px solid var(--border); }

/* ---- Applicant header ---- */
.applicant-hero { background: var(--primary-surface); border-radius: 12px; padding: 24px; margin-bottom: 24px; }

/* ---- Form styles ---- */
.form-label { font-weight: 500; font-size: 14px; color: #374151; }
.form-control, .form-select { border-color: var(--border); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,79,190,.12); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .stat-number { font-size: 28px; }
    .login-card { padding: 28px 20px; }
    .portal-table { font-size: 13px; }
    .applicant-hero { padding: 16px; }
}
