/**
 * Standby Security Services Inc. — Master Design System & Luxury UI/UX Stylesheet
 * Head Office: 175 Catharine St S, Hamilton, ON | 24/7 Command: +1 (289) 309-3633
 * Executive Light Baseline + Tactical Aerospace Dark Mode
 * Typography: Plus Jakarta Sans / Inter / Outfit
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --app-font-scale: 1;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    /* Standby Security Official Brand Palette */
    --brand-red: #C81E32;
    --brand-crimson: #E11D48;
    --brand-burgundy: #9F1239;
    --brand-navy: #0A1128;
    --brand-navy-light: #1E293B;
    --brand-gold: #D97706;
    --brand-emerald: #10B981;
    --brand-cyan: #06B6D4;

    /* Executive Daylight (Light Theme - Primary) */
    --bg-base: #F8FAFC;
    --bg-canvas: #F1F5F9;
    --bg-surface: #FFFFFF;
    --bg-surface-glass: rgba(255, 255, 255, 0.88);
    --bg-surface-subtle: #F8FAFC;
    --border-color: #E2E8F0;
    --border-glass: rgba(226, 232, 240, 0.85);

    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    --gradient-brand: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
    --gradient-navy: linear-gradient(135deg, #0A1128 0%, #1E293B 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.85) 100%);
    --gradient-ambient: radial-gradient(circle at 10% 20%, rgba(225, 29, 72, 0.05) 0%, transparent 40%),
                        radial-gradient(circle at 90% 80%, rgba(10, 17, 40, 0.04) 0%, transparent 45%);

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.10), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 12px 28px -6px rgba(225, 29, 72, 0.35);
    --shadow-glass: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(255, 255, 255, 0.9);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"], body.theme-dark {
    /* Tactical Aerospace Dark Mode */
    --bg-base: #070B14;
    --bg-canvas: #0B1120;
    --bg-surface: #111928;
    --bg-surface-glass: rgba(17, 25, 40, 0.85);
    --bg-surface-subtle: #162032;
    --border-color: #1F2A3E;
    --border-glass: rgba(31, 42, 62, 0.85);

    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #8292A6;
    --text-light: #475569;

    --gradient-glass: linear-gradient(135deg, rgba(22, 32, 50, 0.9) 0%, rgba(17, 25, 40, 0.8) 100%);
    --gradient-ambient: radial-gradient(circle at 10% 20%, rgba(225, 29, 72, 0.12) 0%, transparent 45%),
                        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);

    --shadow-glass: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.06);
    --shadow-md: 0 8px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -4px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .bg-light,
body.theme-dark .bg-light,
[data-theme="dark"] .bg-white,
body.theme-dark .bg-white {
    background-color: var(--bg-surface-subtle) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .text-dark,
body.theme-dark .text-dark {
    color: var(--text-primary) !important;
}

/* Base Document Setup & Calibrated Executive Typography Scale */
html {
    font-size: calc(14px * var(--app-font-scale));
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-base);
    background-image: var(--gradient-ambient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.55;
    letter-spacing: -0.01em;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Harmonized Executive Heading Scales Across All Pages */
h1, .h1 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.65rem !important;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}
h2, .h2, .portal-page-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.4rem !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.28;
}
h3, .h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.2rem !important;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
}
h4, .h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.05rem !important;
    font-weight: 700;
    line-height: 1.35;
}
h5, .h5 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 0.95rem !important;
    font-weight: 600;
    line-height: 1.35;
}
h6, .h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 0.85rem !important;
    font-weight: 600;
    line-height: 1.4;
}

/* Hero Headline & Display Overrides (Refined, Non-Oversized Scale) */
.display-4, .hero-title, .hero-section h1 {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem) !important; /* ~24.5px - 31.5px */
    font-weight: 800 !important;
    line-height: 1.22 !important;
    letter-spacing: -0.025em !important;
}

.lead {
    font-size: 1.02rem !important; /* ~14.3px */
    line-height: 1.6 !important;
    font-weight: 400 !important;
    color: var(--text-secondary);
}

/* Global Text Justification Across All Body Blocks & Paragraphs */
p, .lead, .card-text, .portal-page-subtitle, .showcase-subtext, 
.modal-body p, .card-body p, .coverage-desc, .footer-column-heading + p {
    text-align: justify;
    text-justify: inter-word;
}

/* Calibrated Compact Button Scaling (Prevents Clumsy Wrapping) */
.btn-lg {
    font-size: 0.95rem !important;
    padding: 0.65rem 1.4rem !important;
    border-radius: 10px !important;
}
.btn {
    font-size: 0.88rem !important;
}
.btn-sm {
    font-size: 0.78rem !important;
    padding: 0.35rem 0.75rem !important;
}

/* ==========================================================================
   NAVIGATION BAR (Frosted Luxury Executive Bar)
   ========================================================================== */
.navbar-custom {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    padding: 0.85rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: var(--transition);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: transform 0.25s ease;
}
.brand-wrapper:hover .brand-logo-img {
    transform: scale(1.02);
}

.brand-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid var(--border-color);
    padding-left: 0.85rem;
    margin-left: 0.15rem;
}

.brand-motto-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-crimson);
}

.brand-hq-line {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Status Beacon Pill */
.status-beacon-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #065F46;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 600;
}
[data-theme="dark"] .status-beacon-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
}

.beacon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    animation: beaconPulse 2s infinite ease-in-out;
}
@keyframes beaconPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4); }
}

/* Nav Links */
.navbar-custom .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--brand-crimson) !important;
    background: rgba(225, 29, 72, 0.05);
}

/* Control Pills Capsule */
.control-capsule {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.4rem;
    gap: 0.3rem;
    box-shadow: var(--shadow-xs);
}

.capsule-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}
.capsule-btn:hover {
    background: var(--bg-canvas);
    color: var(--text-primary);
}

/* Buttons */
.btn-crimson {
    background: var(--gradient-brand);
    color: #FFFFFF !important;
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.35rem;
    box-shadow: 0 6px 18px -4px rgba(225, 29, 72, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-crimson:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(225, 29, 72, 0.55);
}
.btn-crimson:active {
    transform: translateY(0);
}

/* ==========================================================================
   CARDS, PANELS & GLASSMORPHISM
   ========================================================================== */
.glass-card {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glass-card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.35rem 1.75rem;
}

.glass-card-body {
    padding: 1.75rem;
}

/* Interactive Hover Lift */
.hover-lift {
    transition: var(--transition);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

/* ==========================================================================
   LOGIN PORTAL DUAL-PANE SHOWCASE
   ========================================================================== */
.auth-viewport {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.auth-split-wrapper {
    width: 100%;
    max-width: 1120px;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .auth-split-wrapper {
        flex-direction: row;
    }
}

/* Left Showcase Pane (Executive Light Theme) - Retired */

/* Developer Attribution Badges (MeJanix IT Solutions) */
.developer-credit-banner {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.developer-credit-banner:hover {
    border-color: rgba(225, 29, 72, 0.35);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.09);
    transform: translateY(-2px);
    color: inherit;
}
.dev-tech-icon-pulse {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
    color: var(--brand-crimson);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    border: 1px solid rgba(225, 29, 72, 0.2);
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.15);
}
.dev-tech-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #94A3B8;
}
.dev-tech-brand {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}
.dev-tech-brand span {
    font-weight: 800;
    color: #0F172A;
    background: linear-gradient(135deg, #0F172A 0%, #BE123C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dev-tech-pill {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-pill);
    background: #F8FAFC;
    color: #475569;
    border: 1px solid #E2E8F0;
}

/* Footer Signature Capsule */
.dev-signature-capsule {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.95rem;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    font-size: 0.78rem;
}
.dev-signature-capsule:hover {
    border-color: rgba(225, 29, 72, 0.35);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.1);
    transform: translateY(-2px);
}
.dev-sig-text {
    color: var(--text-muted);
    font-weight: 500;
}
.dev-sig-brand {
    font-weight: 800;
    background: linear-gradient(135deg, #0F172A 0%, #E11D48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Right Form Console Pane */
.auth-form-pane {
    background: var(--bg-surface);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    .auth-form-pane {
        width: 55%;
        padding: 3.5rem 3.5rem;
    }
}

.auth-header-block {
    margin-bottom: 2rem;
}

.auth-header-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 0.35rem;
}

.auth-header-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Form Groups & Inputs */
.form-label-custom {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    margin-bottom: 0.45rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-container {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-icon-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
    z-index: 5;
}

.form-control-luxury {
    width: 100%;
    height: 50px;
    background: #F1F5F9 !important;
    border: 1.25px solid #CBD5E1 !important;
    border-radius: 14px !important;
    padding: 0.65rem 1rem 0.65rem 2.85rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-control-luxury:hover {
    background: #FFFFFF !important;
    border-color: #94A3B8 !important;
}
.form-control-luxury::placeholder,
.form-control::placeholder {
    color: #94A3B8 !important;
    font-weight: 400 !important;
    opacity: 0.85 !important;
}
[data-theme="dark"] .form-control-luxury::placeholder,
[data-theme="dark"] .form-control::placeholder {
    color: #64748B !important;
    font-weight: 400 !important;
    opacity: 0.7 !important;
}
.captcha-input-luxury::placeholder {
    color: #94A3B8 !important;
    font-weight: 400 !important;
    letter-spacing: 0.08em !important;
    text-transform: none !important;
    font-size: 0.92rem !important;
    opacity: 0.8 !important;
}
[data-theme="dark"] .captcha-input-luxury::placeholder {
    color: #64748B !important;
    font-weight: 400 !important;
    opacity: 0.65 !important;
}
.form-control-luxury:focus {
    background: #FFFFFF !important;
    border-color: #1A73E8 !important;
    box-shadow: 0 0 0 3.5px rgba(26, 115, 232, 0.16), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    outline: none !important;
}
.form-control-luxury:focus + .input-icon-prefix,
.input-container:focus-within .input-icon-prefix {
    color: #1A73E8 !important;
}

.input-addon-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    z-index: 5;
}
.input-addon-toggle:hover {
    color: #1A73E8;
    background: rgba(26, 115, 232, 0.08);
}

/* Re-engineered Clean Captcha Box */
.captcha-container-luxury {
    background: #F1F5F9 !important;
    border: 1.25px solid #CBD5E1 !important;
    border-radius: 14px !important;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.captcha-container-luxury:focus-within {
    background: #FFFFFF !important;
    border-color: #1A73E8 !important;
    box-shadow: 0 0 0 3.5px rgba(26, 115, 232, 0.16) !important;
}

.captcha-img-holder {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3px;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.captcha-img-holder img {
    height: 48px;
    width: 155px;
    border-radius: 4px;
    object-fit: cover;
}

.captcha-reload-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}
.captcha-reload-btn:hover {
    color: var(--brand-crimson);
    transform: rotate(180deg);
}

.captcha-input-luxury {
    flex: 1;
    min-width: 130px;
    height: 48px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: none;
    color: var(--text-primary);
    transition: var(--transition);
}
.captcha-input-luxury:focus {
    border-color: var(--brand-crimson);
    outline: none;
}

.captcha-audio-btn {
    height: 48px;
    width: 48px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
}
.captcha-audio-btn:hover {
    border-color: var(--brand-crimson);
    color: var(--brand-crimson);
    background: rgba(225, 29, 72, 0.05);
}

/* Guard Notice Banner */
.guard-notice-box {
    background: rgba(10, 17, 40, 0.04);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-crimson);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 1.25rem;
}
[data-theme="dark"] .guard-notice-box {
    background: rgba(225, 29, 72, 0.08);
}

/* Quick Fill Demo Badges */
.demo-pill-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.demo-account-chip {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.demo-account-chip:hover {
    background: rgba(225, 29, 72, 0.08);
    border-color: var(--brand-crimson);
    color: var(--brand-crimson);
    transform: translateY(-1px);
}

/* ==========================================================================
   TABLES, BADGES, AND METRICS ACROSS PORTALS
   ========================================================================== */
.table-luxury {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.table-luxury thead th {
    background: var(--bg-canvas);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.25rem;
    border-bottom: 1.5px solid var(--border-color);
}
.table-luxury tbody td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.88rem;
    vertical-align: middle;
}
.table-luxury tbody tr {
    transition: background 0.15s ease;
}
.table-luxury tbody tr:hover {
    background: rgba(225, 29, 72, 0.02);
}

.badge-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.badge-luxury-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #047857;
}
[data-theme="dark"] .badge-luxury-success {
    color: #34D399;
}
.badge-luxury-warning {
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: #B45309;
}
[data-theme="dark"] .badge-luxury-warning {
    color: #FBBF24;
}
.badge-luxury-danger {
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.3);
    color: #BE123C;
}
[data-theme="dark"] .badge-luxury-danger {
    color: #FB7185;
}

/* Metric Cards */
.metric-card-luxury {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.metric-card-luxury:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(225, 29, 72, 0.3);
}

/* ==========================================================================
   ANIMATED LUXURY OPERATIONS FOOTER SUITE (DISTINCT EXECUTIVE PLATINUM SLATE)
   Clear visual separation from light page background, strictly non-dark
   ========================================================================== */
.footer-luxury-suite {
    background: linear-gradient(180deg, #CAD5E2 0%, #BCC9D8 100%) !important;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    border-top: 3px solid #387ED1 !important;
    box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.12) !important;
    color: #0F172A !important;
    transition: var(--transition);
}

/* 1. Refined Executive Brand Top Accent Line */
.footer-stream-border {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #C81E32 0%, #387ED1 50%, #10B981 100%);
    background-size: 200% 100%;
    animation: streamFlow 10s linear infinite;
}
@keyframes streamFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.footer-brand-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A !important;
    letter-spacing: -0.02em;
}

.footer-column-heading {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0F172A !important;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   SYMMETRICAL EXECUTIVE FOOTER CARD ARCHITECTURE (EXECUTIVE WHITE CARDS)
   ========================================================================== */
.footer-executive-card {
    background: #FFFFFF !important;
    border: 1.5px solid #94A3B8 !important;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-executive-card:hover {
    border-color: #387ED1 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.15) !important;
    transform: translateY(-2px);
}

/* Status Strip within Cards */
.footer-status-strip {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: var(--transition);
}
.footer-status-strip:hover {
    border-color: rgba(16, 185, 129, 0.45) !important;
    transform: translateY(-1px);
}
.footer-strip-title {
    color: #0F172A !important;
    font-weight: 700;
}

/* 2. Animated Live Radar Operations Beacon */
.radar-ping-beacon {
    position: relative;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ping-core {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10B981;
}
.ping-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.5);
    animation: radarPulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
@keyframes radarPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* HQ Physical & Digital Meta Grid */
.footer-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    color: #64748B !important;
}
.footer-meta-item span, .footer-meta-item a {
    color: #334155 !important;
}
.footer-meta-item a:hover {
    color: #E11D48 !important;
}

/* Compliance Badges Row */
.footer-compliance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.compliance-badge-item {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #334155 !important;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}
.compliance-badge-item:hover {
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #065F46 !important;
    background: #ECFDF5 !important;
    transform: translateY(-1px);
}

/* Bottom Action Pills (Phone & WhatsApp) */
.footer-action-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.15rem;
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.footer-action-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.footer-action-phone {
    background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%) !important;
    border: 1.5px solid #FECDD3 !important;
}
.footer-action-phone:hover {
    border-color: #E11D48 !important;
    background: linear-gradient(135deg, #FFE4E6 0%, #FFD1D8 100%) !important;
}
.footer-action-phone:hover .ringing-phone-icon {
    animation: phoneRing 0.5s ease infinite alternate;
}
.footer-action-whatsapp {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%) !important;
    border: 1.5px solid #A7F3D0 !important;
}
.footer-action-whatsapp:hover {
    border-color: #10B981 !important;
    background: linear-gradient(135deg, #D1FAE5 0%, #BBF7D0 100%) !important;
}
@keyframes phoneRing {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(15deg); }
}

.footer-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.footer-action-value {
    color: #0F172A !important;
    font-weight: 700;
}

/* Sub-Footer Developer Attribution */
.sub-footer-bar {
    border-top: 1px solid #B0BFCF !important;
    color: #334155 !important;
}
.sub-footer-bar .text-muted {
    color: #475569 !important;
}
.sub-footer-bar a {
    color: #0284C7 !important;
    font-weight: 700;
    transition: var(--transition);
}
.sub-footer-bar a:hover {
    color: #C81E32 !important;
}

/* Footer Dark Mode Overrides */
[data-theme="dark"] .footer-luxury-suite,
body.theme-dark .footer-luxury-suite {
    background: linear-gradient(180deg, #131B2E 0%, #0B1120 100%) !important;
    border-top-color: #1E293B !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .footer-executive-card,
body.theme-dark .footer-executive-card {
    background: #111928 !important;
    border-color: #1F2A3E !important;
}
[data-theme="dark"] .sub-footer-bar,
body.theme-dark .sub-footer-bar {
    border-top-color: #1E293B !important;
}

/* Guardrail Notice dark mode override */
[data-theme="dark"] .guard-notice-box {
    background: rgba(225, 29, 72, 0.12);
    border-color: rgba(225, 29, 72, 0.35);
    color: #F1F5F9;
}
[data-theme="dark"] .guard-notice-box strong {
    color: #FFFFFF !important;
}

/* ==========================================================================
   EXECUTIVE UNIFIED PORTAL DESIGN SYSTEM (MATCHING HOME PAGE AESTHETICS)
   ========================================================================== */

/* Page Headers & Spacing */
.portal-page-header {
    margin-bottom: 2rem;
}
.portal-page-title {
    font-family: var(--font-heading) !important;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.025em !important;
    line-height: 1.25 !important;
    margin-bottom: 0.35rem !important;
}
.portal-page-subtitle {
    color: var(--text-muted) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
}

/* Master Cards System */
.card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04) !important;
    transition: var(--transition) !important;
    overflow: hidden;
}
.card:hover {
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08) !important;
}

.card-header {
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1.25rem 1.6rem !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
}

.card-body {
    padding: 1.6rem !important;
}

/* Metric Cards with Home Page Styling */
.metric-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 18px !important;
    padding: 1.5rem !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
}
.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(225, 29, 72, 0.3) !important;
}
.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.metric-card:hover .metric-icon {
    transform: scale(1.08);
}

/* Master Table Design System */
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}
.table thead th {
    background: var(--bg-canvas) !important;
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 1rem 1.35rem !important;
    border-bottom: 1.5px solid var(--border-color) !important;
    border-top: none !important;
    white-space: nowrap;
}
.table tbody td {
    padding: 1.15rem 1.35rem !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-top: none !important;
    color: var(--text-primary) !important;
    font-size: 0.88rem !important;
    vertical-align: middle !important;
    transition: background 0.15s ease;
}
.table tbody tr:hover td {
    background: rgba(225, 29, 72, 0.02) !important;
}
.table-responsive {
    border-radius: 14px;
    overflow-x: auto;
    min-height: 380px;
    padding-bottom: 120px;
}

/* Master Form Controls: Thin Attractive Crisp Border (#CBD5E1 / 1.25px) */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
input[type="search"],
textarea,
select {
    background: #F1F5F9 !important;
    border: 1.25px solid #CBD5E1 !important;
    border-radius: 12px !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.9rem !important;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-primary) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

/* Auth / Luxury fields with prefix icons (e.g. login credentials) */
.form-control-luxury,
.position-relative > .input-icon-prefix ~ input,
.position-relative > .input-icon-prefix ~ .form-control,
.position-relative > .input-icon-prefix ~ .form-control-luxury,
.input-container .input-icon-prefix ~ input,
.input-container .input-icon-prefix ~ .form-control,
.input-container .input-icon-prefix ~ .form-control-luxury {
    background: #F1F5F9 !important;
    border: 1.25px solid #CBD5E1 !important;
    border-radius: 14px !important;
    padding-left: 3.2rem !important;
    padding-right: 2.85rem !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
}

.form-control:hover,
.form-select:hover,
.form-control-luxury:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="datetime-local"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="search"]:hover,
textarea:hover,
select:hover {
    background: #FFFFFF !important;
    border-color: #94A3B8 !important;
}

.form-control:focus,
.form-select:focus,
.form-control-luxury:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    background: #FFFFFF !important;
    border-color: #1A73E8 !important;
    box-shadow: 0 0 0 3.5px rgba(26, 115, 232, 0.16), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    outline: none !important;
}

.form-select-sm, .form-control-sm {
    padding: 0.45rem 0.85rem !important;
    border-radius: 10px !important;
    font-size: 0.84rem !important;
}

/* Dark Mode Form Controls */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-control-luxury,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] textarea,
[data-theme="dark"] select,
body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark .form-control-luxury {
    background: #111928 !important;
    border: 1.25px solid #2B3A52 !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .form-control:hover,
[data-theme="dark"] .form-select:hover,
[data-theme="dark"] .form-control-luxury:hover,
body.theme-dark .form-control:hover,
body.theme-dark .form-select:hover,
body.theme-dark .form-control-luxury:hover {
    background: #162032 !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-control-luxury:focus,
body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus,
body.theme-dark .form-control-luxury:focus {
    background: #162032 !important;
    border-color: #387ED1 !important;
    box-shadow: 0 0 0 3.5px rgba(56, 126, 209, 0.25) !important;
}

/* Master Badges */
.badge {
    border-radius: var(--radius-pill) !important;
    font-weight: 600 !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.02em !important;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-brand) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 0.6rem 1.25rem !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3) !important;
    transition: var(--transition) !important;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(225, 29, 72, 0.45) !important;
}
.btn-outline-primary {
    border: 1.5px solid var(--brand-crimson) !important;
    color: var(--brand-crimson) !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    background: transparent !important;
    transition: var(--transition) !important;
}
.btn-outline-primary:hover {
    background: var(--brand-crimson) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3) !important;
}

/* ==========================================================================
   TOP EXECUTIVE NAVBAR & MENU SYSTEM (Single-Line Horizontal Layout)
   ========================================================================== */
.navbar-custom {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1.5px solid var(--border-color);
    box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05);
    padding: 0.65rem 0;
    transition: var(--transition);
}

[data-theme="dark"] .navbar-custom {
    background: rgba(15, 23, 42, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Strictly Single-Line Horizontal Navbar Alignment on Desktop */
@media (min-width: 992px) {
    .navbar-custom > .container-fluid {
        flex-wrap: nowrap !important;
    }
    .navbar-custom .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        flex-grow: 0 !important;
    }
    .navbar-custom .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.25rem !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding-top: 1rem;
    }
}

/* Nav Item Links - Strictly Single Line with No Text Wrapping */
.navbar-custom .nav-link {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.45rem 0.72rem !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1.5px solid transparent !important;
    position: relative;
    cursor: pointer;
}

.brand-wrapper {
    flex-shrink: 0 !important;
}

.control-capsule {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.navbar-custom .btn-crimson {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.navbar-custom .nav-link i {
    font-size: 1.05rem;
    transition: var(--transition);
}

.navbar-custom .nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(15, 23, 42, 0.04) !important;
    border-color: rgba(226, 232, 240, 0.8) !important;
    transform: translateY(-1px);
}

[data-theme="dark"] .navbar-custom .nav-link:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   ACTIVE MENU SELECTION (Clear, Unmistakable StandBy Crimson Selection)
   ========================================================================== */
.navbar-custom .nav-link.active {
    color: #BE123C !important; /* Standby Crimson */
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.12) 0%, rgba(244, 63, 94, 0.08) 100%) !important;
    border: 1.5px solid rgba(225, 29, 72, 0.4) !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12) !important;
}

.navbar-custom .nav-link.active i {
    color: var(--brand-crimson) !important;
}

[data-theme="dark"] .navbar-custom .nav-link.active {
    color: #FDA4AF !important;
    background: rgba(225, 29, 72, 0.22) !important;
    border-color: rgba(244, 63, 94, 0.55) !important;
    box-shadow: 0 0 16px rgba(225, 29, 72, 0.25) !important;
}

/* Navigation Dropdowns & Hierarchical Submenus */
.navbar-custom .dropdown-menu {
    border-radius: 16px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12) !important;
    padding: 0.6rem !important;
    min-width: 280px;
    background: #FFFFFF;
    margin-top: 0.4rem;
    z-index: 1050;
}

@media (min-width: 992px) {
    .navbar-custom .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .navbar-custom .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    }
    .navbar-custom .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.navbar-custom .dropdown-item {
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}
.navbar-custom .dropdown-item:last-child {
    margin-bottom: 0;
}
.navbar-custom .dropdown-item:hover {
    background-color: #F8FAFC;
    color: #0F172A;
    transform: translateX(4px);
}
.navbar-custom .dropdown-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.navbar-custom .dropdown-item:hover .dropdown-item-icon {
    transform: scale(1.08);
}
.navbar-custom .dropdown-item.active {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.10) 0%, rgba(244, 63, 94, 0.05) 100%) !important;
    color: #BE123C !important;
    font-weight: 700 !important;
    border-left: 3px solid #E11D48;
}
.navbar-custom .dropdown-item.active .dropdown-item-icon {
    background: #E11D48 !important;
    color: #FFFFFF !important;
}
.navbar-custom .nav-link.dropdown-toggle::after {
    margin-left: 0.4rem;
    vertical-align: 0.15em;
    opacity: 0.7;
    transition: transform 0.25s ease;
}
.navbar-custom .nav-item.dropdown:hover .nav-link.dropdown-toggle::after,
.navbar-custom .dropdown.show .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}

[data-theme="dark"] .navbar-custom .dropdown-menu {
    background: #1E293B !important;
    border-color: #334155 !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .navbar-custom .dropdown-item {
    color: #E2E8F0 !important;
}
[data-theme="dark"] .navbar-custom .dropdown-item:hover {
    background-color: #334155 !important;
    color: #FFFFFF !important;
}
[data-theme="dark"] .navbar-custom .dropdown-item.active {
    background: rgba(225, 29, 72, 0.25) !important;
    color: #FDA4AF !important;
}

/* User Pill & Avatar in Nav */
.user-pill {
    padding: 0.35rem 0.85rem !important;
    background: rgba(15, 23, 42, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-pill) !important;
    white-space: nowrap !important;
}
.user-pill:hover {
    border-color: rgba(225, 29, 72, 0.35) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}
.avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

/* ==========================================================================
   PROFESSIONAL TOOLTIP STYLING (Luxury StandBy Dark Slate + Crimson Accent)
   ========================================================================== */
.tooltip {
    font-family: var(--font-body) !important;
    pointer-events: none !important;
    z-index: 1090 !important;
    opacity: 1 !important;
}
.tooltip .tooltip-inner {
    background: rgba(15, 23, 42, 0.96) !important;
    color: #F8FAFC !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px !important;
    border: 1px solid rgba(225, 29, 72, 0.35) !important;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -2px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    max-width: 280px !important;
    text-align: center;
    line-height: 1.35;
}
.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(15, 23, 42, 0.96) !important;
}
.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: rgba(15, 23, 42, 0.96) !important;
}
.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: rgba(15, 23, 42, 0.96) !important;
}
.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: rgba(15, 23, 42, 0.96) !important;
}

/* ==========================================================================
   LIVE CANADIAN SECURITY DISPATCH & PATROL RADAR COMPONENT (MeJanix-Inspired)
   ========================================================================== */
.security-radar-container {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-glass);
    position: relative;
}

.radar-live-beacon {
    position: relative;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.radar-live-beacon .beacon-core {
    width: 8px;
    height: 8px;
    background: #E11D48;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.8);
}
.radar-live-beacon .beacon-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.45);
    animation: beaconPulseWave 2s infinite ease-out;
}
@keyframes beaconPulseWave {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.8); opacity: 0; }
}

.beacon-dot-sm {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #10B981;
}

.radar-map-wrapper {
    background: radial-gradient(circle at 46% 50%, rgba(225, 29, 72, 0.05) 0%, rgba(10, 17, 40, 0.02) 70%, transparent 100%), #F8FAFC;
    border-color: var(--border-color) !important;
}
[data-theme="dark"] .radar-map-wrapper,
body.theme-dark .radar-map-wrapper {
    background: radial-gradient(circle at 46% 50%, rgba(225, 29, 72, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, #0B1120 100%);
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.radar-svg-canvas {
    width: 100%;
    height: auto;
    display: block;
    color: #94A3B8;
}
[data-theme="dark"] .radar-svg-canvas,
body.theme-dark .radar-svg-canvas {
    color: #334155;
}

/* Radar Sonar Wave Pulse from Hamilton Core */
.radar-sonar-pulse {
    transform-origin: 240px 150px;
    pointer-events: none;
}
/* Clean Vector Signal Paths (Static & Professional) */
.radar-signal-path {
    animation: none !important;
    stroke-linecap: round;
}

/* Radar Node & Badges Styling (Clean Sky Blue Aerospace) */
.node-ripple {
    display: none !important;
}
@keyframes nodeRipplePulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.4); opacity: 0; }
}

.node-badge-group {
    animation: badgeFloatGentle 3.5s ease-in-out infinite alternate;
}
.node-gta .node-badge-group    { animation-delay: 0s;   animation-duration: 3.8s; }
.node-burl .node-badge-group   { animation-delay: 0.7s; animation-duration: 3.2s; }
.node-niag .node-badge-group   { animation-delay: 1.4s; animation-duration: 4.0s; }
.node-kw .node-badge-group     { animation-delay: 0.4s; animation-duration: 3.5s; }
.node-brant .node-badge-group  { animation-delay: 1.1s; animation-duration: 3.7s; }
.node-hq .node-badge-group     { animation-delay: 0.2s; animation-duration: 2.8s; }

@keyframes badgeFloatGentle {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-3.5px);
    }
}

.node-badge-bg {
    fill: #FFFFFF;
    stroke: rgba(203, 213, 225, 0.85);
    stroke-width: 1;
    transition: all 0.3s ease;
}
[data-theme="dark"] .node-badge-bg,
body.theme-dark .node-badge-bg {
    fill: #1E293B;
    stroke: rgba(255, 255, 255, 0.18);
}

.node-badge-text {
    font-family: var(--font-body) !important;
    font-size: 9.5px !important;
    font-weight: 600 !important;
    fill: #334155 !important;
    letter-spacing: -0.01em !important;
    user-select: none;
}
[data-theme="dark"] .node-badge-text,
body.theme-dark .node-badge-text {
    fill: #CBD5E1 !important;
}

/* Hamilton Central HQ Core Badge */
.hq-badge-bg {
    fill: #E11D48;
    stroke: #BE123C;
    stroke-width: 1.2;
    transition: all 0.3s ease;
}
.hq-badge-text {
    font-family: var(--font-heading) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    fill: #FFFFFF !important;
    letter-spacing: 0.02em !important;
    user-select: none;
}
.hq-radar-pulse {
    animation: hqRadarCorePulse 2s ease-in-out infinite;
    transform-origin: center;
}
.pulse-ring-1 {
    animation-delay: 0s;
}
.pulse-ring-2 {
    animation-delay: 0.6s;
}
@keyframes hqRadarCorePulse {
    0% { transform: scale(0.85); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.15; }
    100% { transform: scale(0.85); opacity: 0.5; }
}

/* Telemetry Console Ticker */
.radar-telemetry-console {
    background-color: var(--bg-surface-subtle) !important;
    border: 1px solid var(--border-color) !important;
    transition: var(--transition);
}
.telemetry-ticker-text {
    font-family: var(--font-mono);
    color: var(--text-primary) !important;
    letter-spacing: -0.01em;
}
.telemetry-new-pulse {
    animation: telemetryFlash 1.4s ease-out;
}
@keyframes telemetryFlash {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); border-color: #10B981 !important; }
    50% { box-shadow: 0 0 16px 4px rgba(16, 185, 129, 0.45); border-color: #10B981 !important; }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Luxury iOS-style AJAX Toggle Switch */
.client-status-switch,
.guard-status-switch {
    cursor: pointer;
    width: 2.4em !important;
    height: 1.35em !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.client-status-switch:checked,
.guard-status-switch:checked {
    background-color: #10B981 !important;
    border-color: #059669 !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}
.client-status-switch:focus,
.guard-status-switch:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}

.shadow-xs {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

/* Luxury Action Buttons & Action Toolbar (Proper Spacing & Padding) */
.action-buttons-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important; /* Generous 10px spacing between each button */
}

.btn-luxury-action {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    border-width: 1px !important;
    border-style: solid !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
    line-height: 1.4 !important;
    outline: none !important;
}
.btn-luxury-action:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
}
.btn-luxury-action:active {
    transform: translateY(0) !important;
}

.btn-luxury-edit {
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #1E293B !important;
}
.btn-luxury-edit:hover {
    background-color: #E2E8F0 !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}

.btn-luxury-pass {
    background-color: #ECFDF5 !important;
    border-color: #A7F3D0 !important;
    color: #047857 !important;
}
.btn-luxury-pass:hover {
    background-color: #D1FAE5 !important;
    border-color: #34D399 !important;
    color: #065F46 !important;
}

.btn-luxury-delete {
    background-color: #FFF1F2 !important;
    border-color: #FECDD3 !important;
    color: #BE123C !important;
    padding: 7px 12px !important;
}
.btn-luxury-delete:hover {
    background-color: #FFE4E6 !important;
    border-color: #FB7185 !important;
    color: #9F1239 !important;
}

/* Guard Roster Row Aesthetics */
.guard-roster-row td {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    vertical-align: middle !important;
}
.guard-roster-row:hover {
    background-color: #F8FAFC !important;
}

/* Switch Loading / Processing Pulse */
.switch-processing {
    opacity: 0.65;
    animation: switchPulse 1s infinite alternate ease-in-out;
}
@keyframes switchPulse {
    from { box-shadow: 0 0 3px rgba(16, 185, 129, 0.3); }
    to { box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); }
}

/* Table Card & General Page Polish */
.portal-table-card {
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
    overflow: hidden;
    background: #FFFFFF;
}

.portal-table th {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #64748B;
    background-color: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.portal-table td {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.portal-table tr:hover td {
    background-color: #F8FAFC !important;
}

/* =========================================================================
   SOC COMMAND DESK: ADVANCED GIS MAP, GUARD BEACONS & LIVE ACTIVITY STREAM
   ========================================================================= */

/* Guard Map Custom Beacon with 3 Continuous Popping Radar Circles */
.guard-beacon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
}

.guard-beacon-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}

.guard-beacon-dot.status-active {
    background-color: #10B981;
}

.guard-beacon-dot.status-idle {
    background-color: #64748B;
}

.guard-beacon-dot.status-sos {
    background-color: #EF4444;
}

/* 3 Staggered Continuous Popping Circles */
.guard-beacon-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    box-sizing: border-box;
}

.guard-beacon-ring.status-active {
    border: 2px solid rgba(16, 185, 129, 0.85);
    background: rgba(16, 185, 129, 0.22);
    animation: guardRadarPop 2.1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.guard-beacon-ring.status-sos {
    border: 2.5px solid rgba(239, 68, 68, 0.95);
    background: rgba(239, 68, 68, 0.32);
    animation: guardRadarPop 1.1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.guard-beacon-ring.status-idle {
    border: 1.5px solid rgba(100, 116, 139, 0.65);
    background: rgba(100, 116, 139, 0.15);
    animation: guardRadarPop 3s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.guard-beacon-ring.ring-1 {
    animation-delay: 0s;
}

.guard-beacon-ring.ring-2 {
    animation-delay: 0.7s;
}

.guard-beacon-ring.ring-3 {
    animation-delay: 1.4s;
}

/* Fallback for legacy single pulse element */
.guard-beacon-pulse {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}
.guard-beacon-dot.status-active ~ .guard-beacon-pulse {
    background: rgba(16, 185, 129, 0.45);
    animation: guardRadarPop 2.1s infinite cubic-bezier(0, 0.2, 0.8, 1);
}
.guard-beacon-dot.status-sos ~ .guard-beacon-pulse {
    background: rgba(239, 68, 68, 0.6);
    animation: guardRadarPop 1.1s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

@keyframes guardRadarPop {
    0% {
        transform: scale(0.35);
        opacity: 1;
    }
    50% {
        opacity: 0.65;
    }
    100% {
        transform: scale(3.0);
        opacity: 0;
    }
}

/* Guard Floating Name Label Pill */
.guard-name-pill {
    margin-left: 8px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guard-name-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.guard-name-pill.status-sos {
    background: rgba(225, 29, 72, 0.95);
    border-color: #FECACA;
    animation: sosBadgeFlash 1s infinite alternate;
}

@keyframes sosBadgeFlash {
    from { background: rgba(225, 29, 72, 0.95); }
    to { background: rgba(159, 18, 57, 0.95); }
}

/* Map Mode Switcher Floating Controls */
.map-floating-bar {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    padding: 4px 6px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.map-mode-btn {
    border: none;
    background: transparent;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.map-mode-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.map-floating-bar-sm {
    top: 8px !important;
    right: 8px !important;
    padding: 3px 5px !important;
    gap: 3px !important;
    border-radius: 9px !important;
}
.map-floating-bar-sm .map-mode-btn {
    padding: 3px 8px !important;
    font-size: 11px !important;
}

.map-mode-btn.active {
    background: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.map-fullscreen-btn {
    border: none;
    background: #F1F5F9;
    padding: 5px 10px;
    font-size: 12px;
    color: #1E293B;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-fullscreen-btn:hover {
    background: #E2E8F0;
}

/* Map Fullscreen Active Mode */
.fleet-map-container.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
}

.fleet-map-container.is-fullscreen #adminFleetMap {
    height: 100vh !important;
    border-radius: 0 !important;
}

/* Photo Gallery Cards */
.photo-gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0F172A;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 1px solid #E2E8F0;
}

.photo-gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.photo-gallery-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-gallery-card:hover img {
    transform: scale(1.03);
}

.photo-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.95) 100%);
    color: #FFFFFF;
}

/* Live Activity Stream Items */
.activity-stream-timeline {
    position: relative;
    padding-left: 20px;
}

.activity-stream-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #E2E8F0;
}

.activity-stream-item {
    position: relative;
    margin-bottom: 16px;
}

.activity-stream-dot {
    position: absolute;
    left: -20px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #3B82F6;
    z-index: 2;
}

.activity-stream-dot.type-photo { border-color: #10B981; }
.activity-stream-dot.type-shift_in { border-color: #2563EB; }
.activity-stream-dot.type-shift_out { border-color: #64748B; }
.activity-stream-dot.type-log { border-color: #06B6D4; }
.activity-stream-dot.type-incident, .activity-stream-dot.type-sos { border-color: #EF4444; }

/* ==========================================================================
   STANDBY UNIVERSAL TABLE COLUMN SORTING STYLING
   ========================================================================== */
.sortable-th {
    cursor: pointer !important;
    user-select: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.sortable-th:hover {
    background-color: rgba(226, 232, 240, 0.75) !important;
    color: #0F172A !important;
}
[data-theme="dark"] .sortable-th:hover,
body.theme-dark .sortable-th:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}
.sortable-th .sort-icon {
    display: inline-block;
    transition: transform 0.2s ease;
    opacity: 0.65;
}
.sortable-th:hover .sort-icon {
    opacity: 1;
    color: #2563EB !important;
}







