﻿/* ═══════════════════════════════════════════
   ZATCA Integration Portal - Design System
   ═══════════════════════════════════════════ */

:root {
    /* Navy Scale */
    --navy-950: #050d1a;
    --navy-900: #091428;
    --navy-800: #0e2040;
    --navy-700: #163059;
    --navy-600: #1e4278;
    --navy-500: #265594;
    --navy-400: #3a72b8;
    --navy-300: #6898cc;
    --navy-200: #9dbde0;
    --navy-100: #ccdaed;
    --navy-50: #e8eff7;
    /* Gold Accent */
    --gold-700: #7a5200;
    --gold-600: #a06c00;
    --gold-500: #c78a00;
    --gold-400: #e8a800;
    --gold-300: #f5bf33;
    --gold-200: #fad576;
    --gold-100: #fdedb8;
    --gold-50: #fef8e6;
    /* Semantic Colors */
    --green-600: #0a6b3c;
    --green-400: #16a35a;
    --green-100: #d1f0e0;
    --red-600: #8b1a1a;
    --red-400: #d63030;
    --red-100: #fde0e0;
    --amber-600: #7c4c00;
    --amber-400: #d07a00;
    --amber-100: #fdeec8;
    --purple-600: #4a2b8c;
    --purple-400: #7c55d6;
    --purple-100: #ede5ff;
    --teal-600: #0a5f5a;
    --teal-400: #199b95;
    --teal-100: #d0f0ee;
    /* Background & Surface */
    --bg: #f2f5fb;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    /* Borders */
    --border: rgba(14,32,64,0.10);
    --border-strong: rgba(14,32,64,0.18);
    /* Text */
    --text-primary: #0e2040;
    --text-secondary: #3a5070;
    --text-muted: #7a92ad;
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(9,20,40,0.06), 0 1px 2px rgba(9,20,40,0.04);
    --shadow-md: 0 4px 12px rgba(9,20,40,0.08), 0 2px 4px rgba(9,20,40,0.04);
    --shadow-lg: 0 12px 32px rgba(9,20,40,0.12), 0 4px 8px rgba(9,20,40,0.06);
    /* Typography */
    --font: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

/* ═══════════════════════════════════════════
   Base Styles
   ═══════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--navy-500);
    text-decoration: none;
    transition: color 0.15s;
}

    a:hover {
        color: var(--navy-700);
    }

/* ═══════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

h6 {
    font-size: 14px;
}

/* ═══════════════════════════════════════════
   Page Layout
   ═══════════════════════════════════════════ */

.page-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.page-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.page-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-sm {
    padding: 5px 11px;
    font-size: 12.5px;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

/* Primary Button */
.btn-primary {
    background: var(--navy-700);
    color: #fff;
    box-shadow: var(--shadow-sm);
    border: none;
}

    .btn-primary:hover {
        background: var(--navy-600);
        color: #fff;
    }

/* Gold Button */
.btn-gold {
    background: var(--gold-400);
    color: var(--navy-900);
    box-shadow: var(--shadow-sm);
}

    .btn-gold:hover {
        background: var(--gold-300);
        color: var(--navy-900);
    }

/* Success Button */
.btn-success {
    background: var(--green-400);
    color: #fff;
}

    .btn-success:hover {
        background: var(--green-600);
        color: #fff;
    }

/* Warning Button */
.btn-warning {
    background: var(--amber-400);
    color: #fff;
}

    .btn-warning:hover {
        background: var(--amber-600);
        color: #fff;
    }

/* Danger Button */
.btn-danger {
    background: var(--red-400);
    color: #fff;
}

    .btn-danger:hover {
        background: var(--red-600);
        color: #fff;
    }

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
}

    .btn-ghost:hover {
        background: var(--surface-2);
        color: var(--text-primary);
    }

/* Outline Info Button */
.btn-outline-info {
    background: transparent;
    color: var(--navy-500);
    border: 1px solid var(--navy-300);
}

    .btn-outline-info:hover {
        background: var(--navy-50);
    }

/* Secondary Button (Bootstrap override) */
.btn-secondary {
    background: var(--surface-2);
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
}

    .btn-secondary:hover {
        background: var(--border);
        color: var(--text-primary);
    }

/* Link Button */
.btn-link {
    color: var(--navy-500);
    text-decoration: none;
    padding: 8px 12px;
}

    .btn-link:hover {
        color: var(--navy-700);
        background: var(--navy-50);
        border-radius: var(--radius-sm);
    }

/* ═══════════════════════════════════════════
   Cards
   ═══════════════════════════════════════════ */

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--surface);
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.card-header-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

    .card-header-icon.blue {
        background: var(--navy-50);
        color: var(--navy-600);
    }

    .card-header-icon.gold {
        background: var(--gold-50);
        color: var(--gold-600);
    }

    .card-header-icon.green {
        background: var(--green-100);
        color: var(--green-600);
    }

    .card-header-icon.red {
        background: var(--red-100);
        color: var(--red-600);
    }

    .card-header-icon.amber {
        background: var(--amber-100);
        color: var(--amber-600);
    }

    .card-header-icon.purple {
        background: var(--purple-100);
        color: var(--purple-600);
    }

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* ═══════════════════════════════════════════
   Badges
   ═══════════════════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.badge-active {
    background: var(--gold-100);
    color: var(--gold-700);
}

.badge-inactive {
    background: var(--red-100);
    color: var(--red-600);
}

.badge-pending {
    background: #e8ecf0;
    color: #4a5568;
}

.badge-prod {
    background: var(--green-100);
    color: var(--green-600);
}

.badge-sim {
    background: var(--purple-100);
    color: var(--purple-600);
}

.badge-nonprod {
    background: var(--teal-100);
    color: var(--teal-600);
}

.badge-yes {
    background: var(--green-100);
    color: var(--green-600);
}

.badge-no {
    background: var(--red-100);
    color: var(--red-600);
}

.badge-expiry {
    background: var(--teal-100);
    color: var(--teal-600);
}

.badge-expired {
    background: var(--red-100);
    color: var(--red-600);
}

/* ═══════════════════════════════════════════
   Forms
   ═══════════════════════════════════════════ */

.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .form-section-title i {
        font-size: 14px;
        color: var(--navy-400);
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 0;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .form-label .label-req {
        color: var(--red-400);
        margin-left: 1px;
    }

    .form-label .label-info {
        color: var(--navy-300);
        cursor: pointer;
        font-size: 13px;
        transition: color 0.15s;
    }

        .form-label .label-info:hover {
            color: var(--navy-500);
        }

.form-control {
    padding: 9px 13px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
}

    .form-control:focus {
        border-color: var(--navy-400);
        box-shadow: 0 0 0 3px rgba(38,85,148,0.1);
    }

    .form-control:read-only {
        background: var(--surface-2);
        color: var(--text-secondary);
        cursor: default;
    }

    .form-control.rtl {
        text-align: right;
        direction: rtl;
    }

    .form-control.highlight-change,
    .form-select.highlight-change {
        border-color: red !important; /* Rose 500 */
    }
.form-select {
    padding: 9px 36px 9px 13px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%237a92ad' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

    .form-select:focus {
        border-color: var(--navy-400);
        box-shadow: 0 0 0 3px rgba(38,85,148,0.1);
    }

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding-left: 0;
}

.form-check-input {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: 4px;
    accent-color: var(--navy-600);
    cursor: pointer;
    margin-top: 0;
}

.form-check-label {
    font-size: 13.5px;
    color: var(--text-secondary);
    cursor: pointer;
}

.invalid-feedback {
    font-size: 12px;
    color: var(--red-400);
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

textarea.form-control {
    min-height: 100px;
}

/* ═══════════════════════════════════════════
   Alerts
   ═══════════════════════════════════════════ */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

    .alert i {
        flex-shrink: 0;
        margin-top: 1px;
    }

.alert-danger {
    background: var(--red-100);
    color: var(--red-600);
    border-color: rgba(214,48,48,0.2);
}

.alert-warning {
    background: var(--amber-100);
    color: var(--amber-600);
    border-color: rgba(208,122,0,0.2);
}

.alert-success {
    background: var(--green-100);
    color: var(--green-600);
    border-color: rgba(22,163,90,0.2);
}

.alert-info {
    background: var(--navy-50);
    color: var(--navy-600);
    border-color: rgba(30,66,120,0.15);
}

/* ═══════════════════════════════════════════
   Tables
   ═══════════════════════════════════════════ */

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

thead th {
    background: var(--navy-900);
    color: var(--navy-100);
    padding: 11px 14px;
    font-weight: 500;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
    position: sticky;
    top: 0;
    z-index: 1;
}

    thead th:first-child {
        border-radius: var(--radius-sm) 0 0 0;
    }

    thead th:last-child {
        border-radius: 0 var(--radius-sm) 0 0;
    }

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

    tbody tr:last-child {
        border-bottom: none;
    }

    tbody tr:hover {
        background: var(--navy-50);
    }

tbody td {
    padding: 10px 14px;
    color: var(--text-primary);
    vertical-align: middle;
    white-space: nowrap;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Table Bootstrap Overrides */
.table {
    margin-bottom: 0;
}

    .table > thead {
        vertical-align: middle;
    }

/* ═══════════════════════════════════════════
   Search Bar
   ═══════════════════════════════════════════ */

.search-bar {
    position: relative;
    margin-bottom: 1.25rem;
}

    .search-bar input {
        width: 100%;
        padding: 10px 16px 10px 40px;
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-sm);
        background: var(--surface);
        font-family: var(--font);
        font-size: 14px;
        color: var(--text-primary);
        transition: border-color 0.15s, box-shadow 0.15s;
        outline: none;
    }

        .search-bar input:focus {
            border-color: var(--navy-400);
            box-shadow: 0 0 0 3px rgba(38,85,148,0.1);
        }

        .search-bar input::placeholder {
            color: var(--text-muted);
        }

    .search-bar .search-icon {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 16px;
        pointer-events: none;
    }

/* ═══════════════════════════════════════════
   Hero Section (Home Page)
   ═══════════════════════════════════════════ */

.hero {
    background: var(--navy-900);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

    .hero::after {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 280px;
        height: 280px;
        background: radial-gradient(circle, rgba(232,168,0,0.08) 0%, transparent 70%);
        pointer-events: none;
    }

.hero-logo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--navy-900);
    box-shadow: 0 8px 24px rgba(232,168,0,0.3);
}

.hero h1 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

    .hero h1 span {
        color: var(--gold-300);
    }

.hero p {
    color: var(--navy-200);
    font-size: 15px;
    margin-top: 6px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════
   Feature Cards (Home Page)
   ═══════════════════════════════════════════ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

    .feature-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════
   CTA Banner
   ═══════════════════════════════════════════ */

.cta-banner {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
    border: 1px solid var(--navy-600);
    flex-wrap: wrap;
}

    .cta-banner p {
        font-size: 15px;
        color: var(--navy-100);
        margin-bottom: 0;
    }

/* ═══════════════════════════════════════════
   Onboarding Steps
   ═══════════════════════════════════════════ */

.onboarding-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.75rem;
}

.step {
    display: flex;
    align-items: center;
}

.step-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    border: 2px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-muted);
    transition: all 0.2s;
}

    .step-bubble.done {
        background: var(--green-400);
        border-color: var(--green-400);
        color: #fff;
    }

    .step-bubble.active {
        background: var(--navy-700);
        border-color: var(--navy-700);
        color: #fff;
    }

.step-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
    white-space: nowrap;
}

    .step-label.active {
        color: var(--text-primary);
        font-weight: 500;
    }

    .step-label.done {
        color: var(--green-600);
    }

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--border-strong);
    margin: 0 8px;
}

    .step-connector.done {
        background: var(--green-400);
    }

/* ═══════════════════════════════════════════
   Status Row
   ═══════════════════════════════════════════ */

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-label {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ═══════════════════════════════════════════
   Login Page
   ═══════════════════════════════════════════ */


.login-page {
    min-height: 100vh;
    /*background: var(--navy-950);*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: repeating-linear-gradient(0deg, var(--gold-400) 0px, var(--gold-400) 1px, transparent 1px, transparent 40px), repeating-linear-gradient(90deg, var(--gold-400) 0px, var(--gold-400) 1px, transparent 1px, transparent 40px);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--navy-900);
    border-radius: var(--radius-lg);
    border: 1px solid var(--navy-700);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-card-header {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--navy-700);
}

.login-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    border-radius: var(--radius-md);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--navy-900);
    box-shadow: 0 4px 16px rgba(232,168,0,0.3);
}

.login-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.login-card-sub {
    font-size: 13px;
    color: var(--navy-300);
    margin-top: 4px;
}

.login-card-body {
    padding: 2rem;
}

.login-form-group {
    margin-bottom: 1.25rem;
}

.login-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy-200);
    margin-bottom: 6px;
}

.login-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--navy-800);
    border: 1px solid var(--navy-600);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .login-input:focus {
        border-color: var(--gold-400);
        box-shadow: 0 0 0 3px rgba(232,168,0,0.15);
    }

    .login-input::placeholder {
        color: var(--navy-400);
    }

.login-btn {
    width: 100%;
    padding: 11px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    color: var(--navy-900);
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: opacity 0.15s, transform 0.1s;
    letter-spacing: 0.02em;
}

    .login-btn:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

    .login-btn:active {
        transform: translateY(0);
    }

/* ═══════════════════════════════════════════
   Tabs
   ═══════════════════════════════════════════ */

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}

    .tab.active {
        color: var(--navy-700);
        border-bottom-color: var(--navy-700);
    }

    .tab:hover {
        color: var(--text-primary);
    }

/* ═══════════════════════════════════════════
   Navbar Overrides
   ═══════════════════════════════════════════ */

.navbar {
    padding: 0;
}

.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.nav-link {
    transition: background 0.15s, color 0.15s;
}

    .nav-link:hover {
        background: var(--navy-700);
        color: #fff !important;
    }

    .nav-link.active {
        background: var(--navy-700);
        color: var(--gold-300) !important;
    }

/* ═══════════════════════════════════════════
   Utilities
   ═══════════════════════════════════════════ */

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-gold {
    color: var(--gold-400) !important;
}

.text-danger {
    color: var(--red-400) !important;
}

.text-success {
    color: var(--green-400) !important;
}

.bg-white {
    background: var(--surface) !important;
}

.bg-light {
    background: var(--bg) !important;
}

.mono {
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.rtl {
    text-align: right;
    direction: rtl;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-sm {
    border-radius: var(--radius-sm) !important;
}

.rounded-md {
    border-radius: var(--radius-md) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */

.footer {
    background: var(--navy-900);
    color: var(--navy-200);
    font-size: 14px;
    padding: 1.5rem 0;
    border-top: 1px solid var(--navy-700);
}

    .footer a {
        color: var(--navy-300);
        text-decoration: none;
    }

        .footer a:hover {
            color: var(--gold-300);
            text-decoration: underline;
        }

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
    .page-wrapper {
        padding: 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
    }

    .page-header {
        flex-direction: column;
    }

    .page-actions {
        width: 100%;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .onboarding-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .step-connector {
        width: 2px;
        height: 16px;
        margin: 0 15px;
    }
}

/* ═══════════════════════════════════════════
   Print Styles
   ═══════════════════════════════════════════ */

@media print {
    .navbar,
    .footer,
    .btn,
    .page-actions {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
/* ═══════════════════════════════════════════
   Hover Image Container
   ═══════════════════════════════════════════ */

.hover-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.hover-image {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    width: 400px;
    height: auto;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    padding: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    border-radius: var(--radius-sm);
}

.hover-container:hover .hover-image {
    display: block;
}

/* ═══════════════════════════════════════════
   Navbar - Override inline styles
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   Navbar Specific Styles
   ═══════════════════════════════════════════ */

.navbar {
    background: var(--navy-900) !important;
    border-bottom: 1px solid var(--navy-700);
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
    padding: 0;
}

/* Brand */
.navbar-brand {
    font-weight: 600;
    font-size: 15px;
    color: #fff !important;
    letter-spacing: 0.01em;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--navy-900);
    font-weight: 700;
}

.brand-accent {
    color: var(--gold-300);
}

/* Nav Links */
.navbar .nav-link {
    color: var(--navy-200) !important;
    padding: 6px 14px !important;
    border-radius: 6px;
    font-size: 13.5px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .navbar .nav-link:hover {
        background: var(--navy-700);
        color: #fff !important;
    }

    .navbar .nav-link.active {
        background: var(--navy-700) !important;
        color: var(--gold-300) !important;
    }

/* Nav User */
.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 6px;
    background: var(--navy-800);
    border-radius: 24px;
    color: var(--navy-100);
    font-size: 13px;
    border: 1px solid var(--navy-600);
}

.nav-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-400);
    color: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* Logout Button */
.btn-logout {
    background: transparent;
    border: 1px solid rgba(204, 218, 237, 0.3);
    color: var(--navy-200);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
}

    .btn-logout:hover {
        background: var(--navy-700);
        color: #fff;
    }

/* Mobile Toggle */
.navbar-toggler {
    border-color: var(--navy-600);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Page Wrapper */
.page-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.hero-logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy-900);
}

.swagger-close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 1000;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.15s;
}

    .swagger-close:hover {
        background: rgba(0,0,0,0.6);
    }

.search-bar {
    position: relative;
}

.search-icon,
.search-spinner {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-spinner {
    width: 14px;
    height: 14px;
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all .15s ease;
}

    .clear-btn:hover {
        background: var(--surface-2);
        color: var(--text);
    }

.search-bar input {
    padding-left: 38px;
    padding-right: 38px;
}