﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ==========================================================================
   ENTERPRISE SAAS GLASSMORPHISM SYSTEM
   Color Palette: Royal Blue, Navy Blue, White, Sky Blue, Purple, Emerald
   ========================================================================== */

:root {
    --primary-royal: #2563EB;
    --primary-royal-hover: #1D4ED8;
    --primary-navy: #0F172A;
    --navy-surface: #1E293B;
    --accent-sky: #38BDF8;
    --accent-purple: #8B5CF6;
    --accent-emerald: #10B981;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(226, 232, 240, 0.8);
    --glass-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition-fast: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Backdrops & Dialog */
.modal-backdrop.show {
    opacity: 0.6;
    backdrop-filter: blur(12px);
    background-color: #090D16;
}

.auth-modal-dialog {
    max-width: 460px;
    margin: 1.75rem auto;
}

.auth-modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

/* Auth Modal Header & Nav Tabs */
.auth-header {
    padding: 2rem 2rem 1.25rem 2rem;
    text-align: center;
    position: relative;
}

.auth-brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-royal), var(--accent-purple));
    color: #fff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.auth-tab-pill {
    background: #F1F5F9;
    border-radius: var(--radius-md);
    padding: 4px;
    display: flex;
    margin-top: 1.25rem;
    border: 1px solid #E2E8F0;
}

.auth-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .auth-tab-btn.active {
        background: #FFFFFF;
        color: var(--primary-royal);
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    }

/* Form Styling & Floating Inputs */
.auth-body {
    padding: 0 2rem 2rem 2rem;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 1.25rem;
}

    .form-floating-custom .form-control {
        height: 52px;
        padding: 1rem 1rem 1rem 2.75rem;
        border-radius: var(--radius-md);
        border: 1px solid #CBD5E1;
        background: rgba(255, 255, 255, 0.9);
        font-size: 0.935rem;
        transition: var(--transition-fast);
    }

        .form-floating-custom .form-control:focus {
            border-color: var(--primary-royal);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
            background: #FFFFFF;
        }

    .form-floating-custom .input-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        pointer-events: none;
        transition: var(--transition-fast);
    }

    .form-floating-custom .form-control:focus ~ .input-icon {
        color: var(--primary-royal);
    }

.password-hint {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Links & Buttons */
.auth-links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.25rem;
}

.auth-link {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--primary-royal);
    text-decoration: none;
    transition: var(--transition-fast);
}

    .auth-link:hover {
        color: var(--primary-royal-hover);
        text-decoration: underline;
    }

.btn-auth-primary {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-royal), #1E40AF);
    border: none;
    border-radius: var(--radius-md);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: var(--transition-fast);
}

    .btn-auth-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    }

.signup-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Alert Notification Styles */
.auth-alert {
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    display: none;
    margin-bottom: 1rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile Bottom Sheet)
   ========================================================================== */
@media (max-width: 576px) {
    .auth-modal-dialog {
        margin: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
    }

    .auth-modal-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-drag-handle {
        width: 36px;
        height: 4px;
        background: #CBD5E1;
        border-radius: 2px;
        margin: 10px auto 0 auto;
    }
}
/* Tab Container */
.auth-tab-pill {
    background: #F1F5F9;
    border-radius: 12px;
    padding: 4px;
    display: flex;
    margin-top: 1.25rem;
    border: 1px solid #E2E8F0;
    gap: 4px;
}

/* Inactive Tab State */
.auth-tab-btn {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748B !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    /* Active Tab State */
    .auth-tab-btn.active {
        background-color: #FFFFFF !important;
        color: #2563EB !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
    }

    .auth-tab-btn:hover:not(.active) {
        color: #0F172A !important;
        background-color: rgba(255, 255, 255, 0.5);
    }

/* Google Auth Button Styling */
.btn-google-auth {
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.925rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .btn-google-auth:hover {
        background: #F8FAFC;
        border-color: #94A3B8;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
        transform: translateY(-1px);
    }

.google-icon {
    width: 20px;
    height: 20px;
}

/* Subtle Glass Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.775rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #E2E8F0;
    }

    .auth-divider span {
        padding: 0 0.75rem;
    }




/* ==========================================================================
   VIBRANT SAAS ACTION BUTTONS
   ========================================================================== */

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
}

    .btn-action:hover {
        transform: translateY(-2px);
    }

    .btn-action .icon-sm {
        width: 15px;
        height: 15px;
        transition: transform 0.2s ease;
    }

    .btn-action:hover .icon-sm {
        transform: scale(1.1);
    }

/* 🔵 View Profile / Details Button (Royal Blue) */
.btn-action-view {
    background-color: #EFF6FF;
    color: #2563EB !important;
    border-color: #BFDBFE;
}

    .btn-action-view:hover {
        background-color: #2563EB;
        color: #FFFFFF !important;
        border-color: #2563EB;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    }

/* 🟣 Edit Profile Button (Vibrant Purple) */
.btn-action-edit {
    background-color: #F5F3FF;
    color: #7C3AED !important;
    border-color: #DDD6FE;
}

    .btn-action-edit:hover {
        background-color: #7C3AED;
        color: #FFFFFF !important;
        border-color: #7C3AED;
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    }

/* 🟡 Reset Password Key Button (Amber Gold) */
.btn-action-reset {
    background-color: #FFFBEB;
    color: #D97706 !important;
    border-color: #FDE68A;
}

    .btn-action-reset:hover {
        background-color: #D97706;
        color: #FFFFFF !important;
        border-color: #D97706;
        box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
    }

/* 🟢 Upload File Button (Emerald Green) */
.btn-action-upload {
    background-color: #ECFDF5;
    color: #059669 !important;
    border-color: #A7F3D0;
}

    .btn-action-upload:hover {
        background-color: #059669;
        color: #FFFFFF !important;
        border-color: #059669;
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    }

/* 🔴 Delete Button (Crimson Rose) */
.btn-action-delete {
    background-color: #FFF1F2;
    color: #E11D48 !important;
    border-color: #FECDD3;
}

    .btn-action-delete:hover {
        background-color: #E11D48;
        color: #FFFFFF !important;
        border-color: #E11D48;
        box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
    }

/* ==========================================================================
   RECEIPT ISOLATED PRINT STYLES
   ========================================================================== */
@media print {
    /* Hide everything on the page by default */
    body * {
        visibility: hidden !important;
    }

    /* Display ONLY the printable receipt card */
    #printableReceipt, #printableReceipt * {
        visibility: visible !important;
    }

    /* Position the receipt at the top left of the printed page */
    #printableReceipt {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 800px !important;
        margin: 0 auto !important;
        padding: 20px !important;
        background: #FFFFFF !important;
        color: #000000 !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Hide print action buttons and modal close controls on paper */
    .no-print {
        display: none !important;
    }
}

/* ==========================================================================
   ULTRA-PREMIUM SAAS CARD SYSTEM (Stripe & Linear Inspired)
   ========================================================================== */

/* 1. Global Card Overrides - Applies to ALL Bootstrap .card elements automatically */
.card,
.card-premium {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 20px !important; /* 20px Modern Rounded Curves */
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.02), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}

    /* 2. Micro-Interaction: Soft Lift & Royal Blue Glow on Hover */
    .card:hover,
    .card-premium:hover {
        transform: translateY(-4px) !important;
        border-color: rgba(37, 99, 235, 0.35) !important; /* Royal Blue Glow Border */
        box-shadow: 0 20px 40px -6px rgba(37, 99, 235, 0.12), 0 8px 20px -4px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(37, 99, 235, 0.1) inset !important;
    }

/* 3. Card Sections Padding & Spacing */
.card-body {
    padding: 1.75rem !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    padding: 1.25rem 1.75rem !important;
    font-weight: 700 !important;
}

.card-footer {
    background: rgba(248, 250, 252, 0.6) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.6) !important;
    padding: 1rem 1.75rem !important;
}

/* ==========================================================================
   SPECIAL CARD VARIANTS (OPTIONAL UTILITY CLASSES)
   ========================================================================== */

/* Variant A: Gradient Accent Line at the Top */
.card-accent-top::before,
.card-gradient-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563EB, #8B5CF6, #38BDF8);
    border-radius: 20px 20px 0 0;
}

/* Variant B: Dark Navy Card (For Hero / Analytics Highlights) */
.card-navy {
    background: linear-gradient(145deg, #0F172A, #1E293B) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.5) !important;
}

    .card-navy:hover {
        border-color: rgba(56, 189, 248, 0.4) !important; /* Sky Blue Glow */
        box-shadow: 0 25px 60px -10px rgba(56, 189, 248, 0.2) !important;
    }

    .card-navy .text-muted {
        color: #94A3B8 !important;
    }

    .card-navy .text-dark {
        color: #F8FAFC !important;
    }

/* Variant C: Clickable Interactive Card */
.card-clickable {
    cursor: pointer;
}

    .card-clickable:active {
        transform: translateY(-1px) scale(0.99) !important;
    }


/* ==========================================================================
   ULTRA-PREMIUM & PROFESSIONAL MODAL SYSTEM
   Inspired by Stripe, OpenAI, and Linear
   ========================================================================== */

/* 1. Frosted Glass Backdrop Blur */
.modal-backdrop.show {
    background-color: #090D16 !important;
    opacity: 0.65 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* 2. Glassmorphic Modal Content Box */
.modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 24px !important; /* 24px Rounded Curves */
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    overflow: hidden;
}

/* 3. Smooth Scale + Slide Entrance Animation */
.modal.fade .modal-dialog {
    transform: scale(0.95) translateY(16px);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-in-out !important;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0) !important;
}

/* 4. Modal Header & Sleek Titles */
.modal-header {
    padding: 1.5rem 1.75rem 1rem 1.75rem !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    background: transparent !important;
}

    .modal-header .modal-title,
    .modal-header h4,
    .modal-header h5,
    .modal-header h6 {
        font-weight: 700 !important;
        color: #0F172A !important;
        letter-spacing: -0.01em;
    }

    /* 5. Modern Circular Close Button with Micro-Rotation */
    .modal-header .btn-close {
        padding: 0.65rem !important;
        background-color: rgba(241, 245, 249, 0.8) !important;
        border-radius: 50% !important;
        opacity: 0.7;
        transition: all 0.2s ease-in-out !important;
    }

        .modal-header .btn-close:hover {
            background-color: #E2E8F0 !important;
            opacity: 1;
            transform: rotate(90deg) scale(1.08) !important;
        }

/* 6. Modal Body & Form Controls */
.modal-body {
    padding: 1.75rem !important;
}

    .modal-body .form-label {
        font-weight: 600 !important;
        font-size: 0.825rem !important;
        color: #334155 !important;
        margin-bottom: 0.4rem;
    }

    .modal-body .form-control,
    .modal-body .form-select {
        height: 48px;
        padding: 0.65rem 1rem;
        border-radius: 12px !important;
        border: 1px solid #CBD5E1 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        font-size: 0.925rem;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .modal-body textarea.form-control {
        height: auto !important;
    }

    /* Royal Blue Focus Ring for Modal Inputs */
    .modal-body .form-control:focus,
    .modal-body .form-select:focus {
        border-color: #2563EB !important;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
        background: #FFFFFF !important;
    }

/* 7. Modal Footer */
.modal-footer {
    padding: 1.25rem 1.75rem !important;
    border-top: 1px solid rgba(226, 232, 240, 0.6) !important;
    background: rgba(248, 250, 252, 0.5) !important;
}

/* ==========================================================================
   MOBILE BOTTOM SHEET ADAPTATION (< 576px)
   ========================================================================== */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-width: 100% !important;
    }

    .modal-content {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-top-left-radius: 24px !important;
        border-top-right-radius: 24px !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
}

/* ==========================================================================
   ENTERPRISE SAAS FOOTER STYLES
   ========================================================================== */

/* Main Footer Container */
.saas-footer {
    background: linear-gradient(180deg, #0F172A 0%, #090D16 100%);
    color: #94A3B8;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glowing Top Accent Line */
.saas-footer-glow-line {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #8B5CF6, #38BDF8, #10B981);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

/* Brand Logo Badge */
.footer-brand-badge {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #2563EB, #8B5CF6);
    color: #FFFFFF;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Live Operational Status Badge & Pulsing Dot */
.footer-status-badge {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Newsletter Container & Input */
.footer-newsletter-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.footer-newsletter-group {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 3px;
}

.footer-newsletter-input {
    background: transparent !important;
    border: none !important;
    color: #FFFFFF !important;
    font-size: 0.875rem;
    padding-left: 1rem;
}

    .footer-newsletter-input::placeholder {
        color: #64748B !important;
    }

    .footer-newsletter-input:focus {
        box-shadow: none !important;
    }

/* Footer Navigation Links */
.footer-links-list li {
    margin-bottom: 0.65rem;
}

.footer-link {
    color: #94A3B8;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.22s ease-in-out;
}

    .footer-link:hover {
        color: #38BDF8 !important;
        transform: translateX(4px);
    }

/* Social Buttons */
.footer-social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

    .footer-social-btn:hover {
        background: #2563EB;
        color: #FFFFFF !important;
        border-color: #2563EB;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .saas-footer {
        text-align: center;
    }

    .footer-link {
        justify-content: center;
    }

    .footer-status-badge {
        margin: 0 auto;
    }
}

/* ==========================================================================
   ENTERPRISE SAAS SIDEBAR STYLES
   ========================================================================== */

:root {
    --sidebar-width: 260px;
    --sidebar-bg: #0F172A;
    --sidebar-active-glow: rgba(37, 99, 235, 0.2);
}

/* Sidebar Fixed Container */
.saas-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    background: linear-gradient(180deg, #0F172A 0%, #090D16 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Brand Badge */
.sidebar-brand-badge {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #2563EB, #8B5CF6);
    color: #FFFFFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Role Badges */
.role-badge-staff {
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.25);
    color: #FBBF24;
}

.role-badge-client {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34D399;
}

.role-badge-guest {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38BDF8;
}

/* Category Headers */
.sidebar-category {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.08em;
    margin: 1.25rem 0 0.5rem 0.5rem;
}

/* Sidebar Links */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94A3B8;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    position: relative;
}

    .sidebar-link i {
        font-size: 1.1rem;
        transition: transform 0.2s ease;
    }

    .sidebar-link:hover {
        color: #FFFFFF;
        background: rgba(255, 255, 255, 0.05);
        transform: translateX(3px);
    }

        .sidebar-link:hover i {
            color: #38BDF8;
            transform: scale(1.1);
        }

    /* Active State Indicator */
    .sidebar-link.active {
        color: #FFFFFF !important;
        background: linear-gradient(90deg, rgba(37, 99, 235, 0.25), rgba(37, 99, 235, 0.05)) !important;
        border-left: 3px solid #2563EB;
    }

        .sidebar-link.active i {
            color: #38BDF8 !important;
        }

/* User Avatar Badge */
.user-avatar-circle {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Main Content Area Offset */
.saas-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile Offcanvas Drawer Responsive Behavior */
@media (max-width: 768px) {
    .saas-sidebar {
        transform: translateX(-100%);
    }

        .saas-sidebar.show {
            transform: translateX(0);
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
        }

    .saas-wrapper {
        margin-left: 0 !important;
    }
}
/* Unauthenticated Visitors Full-Width Layout (0px Sidebar Offset) */
.saas-full-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Scrollable Sidebar Body */
.sidebar-body {
    flex: 1 1 auto;
    overflow-y: auto !important;
    overflow-x: hidden;
}

    /* Custom Sleek Scrollbar for Sidebar */
    .sidebar-body::-webkit-scrollbar {
        width: 5px;
    }

    .sidebar-body::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.4);
    }

    .sidebar-body::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
    }

        .sidebar-body::-webkit-scrollbar-thumb:hover {
            background: rgba(37, 99, 235, 0.6); /* Royal Blue glow on scrollbar hover */
        }





/* ==========================================================================
   HERO BANNER ULTRA-PREMIUM GRADIENT & MESH ENGINE
   ========================================================================== */

.hero-gradient-card {
    /* Deep Slate Navy to Indigo Base */
    background: linear-gradient(135deg, #090d16 0%, #0f172a 40%, #1e1b4b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.6) !important;
}

/* Glowing Radial Orbs (Mesh Gradient Effect) */
.hero-orb-1 {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.hero-orb-2 {
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.1) 50%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 1;
}

/* Subtle Tech Grid Texture Overlay */
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* Glassmorphic Badge */
.hero-pill-badge {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px);
    color: #93c5fd !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Gold/Warm Gradient Headline */
.hero-title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #fef08a 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* High-Contrast Lead Paragraph */
.hero-lead-text {
    color: #cbd5e1 !important; /* Soft Slate 300 */
    font-weight: 400;
    line-height: 1.7;
}

/* Button Custom Glows */
.hero-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.3s ease;
}

    .hero-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6) !important;
    }

.hero-btn-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #0f172a !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35) !important;
    transition: all 0.3s ease;
}

    .hero-btn-amber:hover {
        transform: translateY(-2px);
        color: #000000 !important;
        box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5) !important;
    }