/* ============================================
   SMOOTH THEME TRANSITIONS (Minimal CSS)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Theme transitions disabled to ensure instant dark/light switching */

html,
body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15.4px;
    scroll-behavior: smooth;
}

a,
.btn-link {
    color: #006bb7;
}

/* ============================================
   ENHANCED BUTTON STYLES (COMPACT)
   ============================================ */

.btn {
    font-weight: 600;
    letter-spacing: 0.2px;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 0.35rem 0.9rem;
    font-size: 0.9625rem;
    backdrop-filter: blur(4px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 250px;
    height: 250px;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
    border: none;
    box-shadow: 0 3px 10px rgba(27, 110, 194, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1558a8 0%, #124a8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(27, 110, 194, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    border: none;
    box-shadow: 0 3px 10px rgba(108, 117, 125, 0.25);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
    border: none;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.25);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border: none;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.25);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    border: none;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.25);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    border: none;
    box-shadow: 0 3px 10px rgba(23, 162, 184, 0.25);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.08rem white, 0 0 0 0.2rem #258cfb;
}

/* ============================================
   ENHANCED FORM STYLES (COMPACT)
   ============================================ */

.form-control,
.form-select {
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--crystal-input-bg) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.625rem 1rem !important;
    font-size: 15.4px !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6 !important;
    background: var(--crystal-input-focus-bg) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), 0 0 20px rgba(59, 130, 246, 0.06) !important;
    outline: none !important;
    transform: translateY(-1px);
}

.form-floating {
    position: relative;
}

.form-floating>label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9625rem;
}

.content {
    padding-top: 1rem;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.5s ease;
}

h2 {
    font-size: 1.7875rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.375rem;
    color: var(--text-primary);
}

h4 {
    font-size: 1.16875rem;
    color: var(--text-primary);
}

h5 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

h1:focus {
    outline: none;
}

/* ============================================
   ENHANCED VALIDATION STYLES
   ============================================ */

.valid.modified:not([type=checkbox]) {
    outline: 1.5px solid #26b050;
    outline-offset: 1.5px;
}

.invalid {
    outline: 1.5px solid #e50000;
    outline-offset: 1.5px;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

.validation-message {
    color: #e50000;
    font-size: 0.89375rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: slideDown 0.3s ease;
}

.validation-message::before {
    content: '⚠';
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PREMIUM TABLE STYLES — Crystalline Glass
   ============================================ */

.table-responsive {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--crystal-border);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background: var(--crystal-table-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.table {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: transparent;
    border: none;
    margin-bottom: 0;
}

/* ---- Frosted Header ---- */
.table thead,
.table thead.table-light,
.table thead.thead-light,
.table thead tr,
.table thead th,
.table thead.table-light th,
.table thead.thead-light th {
    background: var(--crystal-table-header) !important;
    color: var(--text-primary) !important;
    border: none !important;
}

.table thead {
    position: relative;
    border-bottom: 2px solid var(--primary-color) !important;
}

.table thead::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #8b5cf6 50%, var(--primary-hover) 100%) !important;
    z-index: 5;
}

.table thead th {
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 0.9rem 1rem !important;
    position: relative;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.table thead th::after {
    content: '';
    position: absolute;
    right: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12) !important;
}

.table thead th:last-child::after {
    display: none;
}

/* ---- Table Body Rows ---- */
.table tbody tr {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--crystal-border);
    cursor: pointer;
    position: relative;
}

/* Zebra striping with glass effect */
.table tbody tr:nth-child(even) {
    background: rgba(var(--primary-rgb), 0.015);
}

/* Premium hover with left accent bar */
.table tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.06) !important;
    box-shadow: inset 3px 0 0 var(--primary-color), 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Active/Selected row */
.table tbody tr.table-active {
    background: rgba(var(--primary-rgb), 0.08) !important;
    box-shadow: inset 3px 0 0 var(--primary-color), 0 0 0 1px rgba(var(--primary-rgb), 0.12);
}

.table tbody td {
    padding: 0.375rem 0.75rem;
    border-color: var(--crystal-border);
    vertical-align: middle;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

/* Last row has no border */
.table tbody tr:last-child {
    border-bottom: none;
}

/* ---- Premium Avatar Styling ---- */
.avatar-sm {
    position: relative;
}

.avatar-sm .rounded-circle {
    border: 2px solid rgba(var(--primary-rgb), 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.table tbody tr:hover .avatar-sm .rounded-circle {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12), 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* ---- Member ID monospace styling ---- */
.table .font-monospace {
    background: rgba(var(--primary-rgb), 0.06);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

/* ---- Premium Status Badge Override ---- */
.table .badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 100px;
}

/* ---- Contact column micro-typography ---- */
.table td > div > div {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ---- Action buttons row polish (Global) ---- */
.btn-sm {
    min-width: 32px;
    width: auto !important;
    height: 32px;
    padding: 0 0.75rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-width: 1px !important;
    backdrop-filter: blur(4px) !important;
    gap: 0.35rem;
    white-space: nowrap !important;
}

/* Maintain square shape for icon-only small buttons inside tables or grids */
.table .btn-sm:has(> i:only-child),
.table .btn-sm:has(> svg:only-child),
.quickgrid .btn-sm:has(> i:only-child),
.quickgrid .btn-sm:has(> svg:only-child),
.card-footer .page-item .page-link {
    width: 32px !important;
    padding: 0 !important;
}

/* Eye / View details - Soft Blue Glass */
.btn-outline-primary {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}
.btn-outline-primary:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px) scale(1.08) !important;
}

/* Check In - Soft Green Glass */
.btn-outline-success {
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}
.btn-outline-success:hover:not(:disabled) {
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-2px) scale(1.08) !important;
}

/* Check Out / Delete - Soft Red Glass */
.btn-outline-danger {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}
.btn-outline-danger:hover:not(:disabled) {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
    transform: translateY(-2px) scale(1.08) !important;
}

/* Edit - Soft Amber Glass */
.btn-outline-warning {
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}
.btn-outline-warning:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
    transform: translateY(-2px) scale(1.08) !important;
}

/* Refunded - Soft Cyan Glass */
.btn-outline-info {
    color: #0891b2 !important;
    background: rgba(8, 145, 178, 0.08) !important;
    border-color: rgba(8, 145, 178, 0.3) !important;
}
.btn-outline-info:hover {
    color: #0891b2 !important;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.22) 0%, rgba(14, 116, 144, 0.12) 100%) !important;
    border-color: #0891b2 !important;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15) !important;
    transform: translateY(-1.5px) !important;
}
.btn-outline-info.active {
    color: #0891b2 !important;
    background: rgba(8, 145, 178, 0.18) !important;
    border-color: rgba(8, 145, 178, 0.45) !important;
}

/* Disabled button state styling */
.btn-sm:disabled {
    opacity: 0.4 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-secondary) !important;
    transform: none !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* ---- Premium Pagination ---- */
.card-footer .pagination {
    gap: 4px;
}

.card-footer .page-item .page-link {
    border: 1px solid var(--crystal-border) !important;
    background: var(--crystal-input-bg) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    min-width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(4px);
    padding: 0 0.5rem !important;
}

.card-footer .page-item .page-link:hover {
    background: rgba(var(--primary-rgb), 0.08) !important;
    border-color: rgba(var(--primary-rgb), 0.3) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.card-footer .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3) !important;
}

.card-footer .page-item.disabled .page-link {
    opacity: 0.35;
    cursor: not-allowed;
    background: transparent !important;
}

/* ---- table-responsive scrollbar ---- */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.2);
    border-radius: 100px;
}

.table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

/* ============================================
   ENHANCED CARD STYLES (COMPACT)
   ============================================ */

.card {
    border-radius: 1.25rem;
    border: 1px solid var(--crystal-border);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: var(--crystal-card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--crystal-card-header) !important;
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--crystal-border);
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%) !important;
    color: white !important;
}

.card-body {
    padding: 0.75rem 1rem;
}

.card-footer {
    background: var(--crystal-card-footer);
    border-top: 1px solid var(--crystal-border);
    padding: 0.6rem 1rem;
}

/* Custom premium metric cards — Crystalline */
.metric-card {
    position: relative;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-glow) !important;
    box-shadow: 0 10px 25px -5px var(--accent-shadow) !important;
}

.metric-card::before {
    display: none !important;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
}

.metric-card-primary {
    --accent-glow: #3b82f6;
    --accent-shadow: rgba(59, 130, 246, 0.25);
    --accent-gradient: linear-gradient(90deg, #3b82f6, #60a5fa);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%) !important;
}

.metric-card-success {
    --accent-glow: #10b981;
    --accent-shadow: rgba(16, 185, 129, 0.25);
    --accent-gradient: linear-gradient(90deg, #10b981, #34d399);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%) !important;
}

.metric-card-info {
    --accent-glow: #06b6d4;
    --accent-shadow: rgba(6, 182, 212, 0.25);
    --accent-gradient: linear-gradient(90deg, #06b6d4, #22d3ee);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0.02) 100%) !important;
}

.metric-card-warning {
    --accent-glow: #f59e0b;
    --accent-shadow: rgba(245, 158, 11, 0.25);
    --accent-gradient: linear-gradient(90deg, #f59e0b, #fbbf24);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%) !important;
}

.metric-card-danger {
    --accent-glow: #ef4444;
    --accent-shadow: rgba(239, 68, 68, 0.25);
    --accent-gradient: linear-gradient(90deg, #ef4444, #f87171);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%) !important;
}

/* Nav Pills Custom Tabs */
.nav-pills {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 6px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    gap: 4px !important;
}

.nav-pills .nav-link {
    border-radius: 10px !important;
    font-size: 14.5px !important;
    font-weight: 550 !important;
    color: var(--text-secondary) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid transparent !important;
    padding: 0.5rem 1.1rem !important;
    background: transparent;
}

.nav-pills .nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
    border-color: #3b82f6 !important;
}

.metric-card .bg-primary,
.metric-card .bg-success,
.metric-card .bg-info,
.metric-card .bg-warning,
.metric-card .bg-danger {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.metric-card:hover .bg-primary,
.metric-card:hover .bg-success,
.metric-card:hover .bg-info,
.metric-card:hover .bg-warning,
.metric-card:hover .bg-danger {
    transform: scale(1.1) rotate(5deg) !important;
}

/* ============================================
   ALERT STYLES (COMPACT)
   ============================================ */

.alert {
    border-radius: 14px;
    border: 1px solid var(--crystal-border) !important;
    padding: 0.825rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6875rem;
    animation: slideInRight 0.4s ease;
    box-shadow: var(--shadow-sm);
    font-size: 0.9625rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%) !important;
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.alert-success::before {
    content: '✓';
    font-size: 1.2375rem;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.04) 100%) !important;
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.2) !important;
}

.alert-danger::before {
    content: '✕';
    font-size: 1.2375rem;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%) !important;
    color: var(--warning-color);
    border-color: rgba(245, 158, 11, 0.2) !important;
}

/* .alert-warning::before {
    content: '⚠';
    font-size: 1.2375rem;
} */

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%) !important;
    color: var(--info-color);
    border-color: rgba(59, 130, 246, 0.2) !important;
}

.alert-info::before {
    content: '' !important;
    font-size: 1.2375rem;
}

/* ============================================
   BADGE STYLES (COMPACT)
   ============================================ */

.badge {
    border-radius: 8px;
    padding: 0.3rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    border: 1px solid transparent;
    text-shadow: none !important;
}

.badge.bg-primary {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: none !important;
}

.badge.bg-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: none !important;
}

.badge.bg-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    box-shadow: none !important;
}

.badge.bg-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    box-shadow: none !important;
}

.badge.bg-info {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    box-shadow: none !important;
}

.badge.bg-secondary {
    background: rgba(100, 116, 139, 0.1) !important;
    color: #64748b !important;
    border-color: rgba(100, 116, 139, 0.3) !important;
    box-shadow: none !important;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner-border {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ENHANCED ERROR BOUNDARY
   ============================================ */

.blazor-error-boundary {
    background: linear-gradient(135deg, #b32121 0%, #8b1a1a 100%);
    padding: 0.9625rem 0.9625rem 0.9625rem 3.52rem;
    color: white;
    border-radius: 0.625rem;
    box-shadow: var(--shadow-xl);
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* ============================================
   CSS VARIABLES FOR LIGHT AND DARK THEMES
   ============================================ */

:root,
[data-theme="light"],
[data-bs-theme="light"] {
    --primary-color: #1b6ec2;
    --primary-hover: #155a9c;
    --primary-rgb: 27, 110, 194;
    --secondary-color: #6c757d;
    --bg-primary: #f0f2f5;
    --bg-secondary: #f8f9fb;
    --card-bg: #ffffff;
    --sidebar-bg: #0f172b;
    --hover-bg: rgba(0, 0, 0, 0.03);
    --text-primary: #1a1d21;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
    --card-glass-bg: rgba(255, 255, 255, 0.75);
    --card-glass-border: rgba(255, 255, 255, 0.6);
    --card-glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.05), 0 0 1px rgba(0, 0, 0, 0.06);
    --card-glass-hover-shadow: 0 16px 48px rgba(31, 38, 135, 0.1), 0 0 20px rgba(27, 110, 194, 0.08);
    /* Crystalline Glass Tokens – Light */
    --crystal-border: rgba(0, 0, 0, 0.06);
    --crystal-card-bg: rgba(255, 255, 255, 0.72);
    --crystal-card-header: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.01) 100%);
    --crystal-card-footer: rgba(255, 255, 255, 0.4);
    --crystal-table-bg: rgba(255, 255, 255, 0.65);
    --crystal-table-header: rgba(0, 0, 0, 0.04);
    --crystal-row-hover: rgba(59, 130, 246, 0.04);
    --crystal-input-bg: rgba(255, 255, 255, 0.8);
    --crystal-input-focus-bg: rgba(255, 255, 255, 0.95);
    --crystal-shimmer: linear-gradient(110deg, transparent 33%, rgba(255, 255, 255, 0.6) 50%, transparent 67%);
    
    /* Modal Theme Variables - Light */
    --modal-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 250, 0.99) 100%);
    --modal-border: rgba(0, 0, 0, 0.08);
    --modal-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 10px 20px -10px rgba(0, 0, 0, 0.08);

    /* Dropdown Variables - Light */
    --dropdown-bg: #ffffff;
    --dropdown-border: rgba(0, 0, 0, 0.08);
    --dropdown-item-color: #334155;
    --dropdown-item-hover-bg: #f1f5f9;
    --dropdown-item-hover-color: #0f172a;
}

[data-theme="dark"],
[data-bs-theme="dark"] {
    --primary-color: #4a9eff;
    --primary-hover: #3a8eef;
    --primary-rgb: 74, 158, 255;
    --secondary-color: #6c757d;
    --bg-primary: #0c1017;
    --bg-secondary: #111827;
    --card-bg: #1a1f2e;
    --sidebar-bg: #0a0e13;
    --hover-bg: rgba(255, 255, 255, 0.04);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #1e293b;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.55), 0 8px 16px rgba(0, 0, 0, 0.3);
    --card-glass-bg: rgba(15, 23, 42, 0.6);
    --card-glass-border: rgba(255, 255, 255, 0.06);
    --card-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.05);
    --card-glass-hover-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 25px rgba(74, 158, 255, 0.12);
    /* Crystalline Glass Tokens – Dark */
    --crystal-border: rgba(255, 255, 255, 0.06);
    --crystal-card-bg: rgba(15, 23, 42, 0.55);
    --crystal-card-header: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    --crystal-card-footer: rgba(15, 23, 42, 0.4);
    --crystal-table-bg: rgba(15, 23, 42, 0.5);
    --crystal-table-header: rgba(255, 255, 255, 0.03);
    --crystal-row-hover: rgba(74, 158, 255, 0.06);
    --crystal-input-bg: rgba(15, 23, 42, 0.6);
    --crystal-input-focus-bg: rgba(15, 23, 42, 0.8);
    --crystal-shimmer: linear-gradient(110deg, transparent 33%, rgba(255, 255, 255, 0.03) 50%, transparent 67%);
    
    /* Modal Theme Variables - Dark */
    --modal-bg: linear-gradient(135deg, rgba(20, 26, 40, 0.95) 0%, rgba(10, 15, 28, 0.98) 100%);
    --modal-border: rgba(255, 255, 255, 0.08);
    --modal-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 10px 20px -10px rgba(0, 0, 0, 0.5);

    /* Dropdown Variables - Dark */
    --dropdown-bg: #111520;
    --dropdown-border: rgba(255, 255, 255, 0.08);
    --dropdown-item-color: rgba(255, 255, 255, 0.8);
    --dropdown-item-hover-bg: rgba(255, 255, 255, 0.08);
    --dropdown-item-hover-color: #ffffff;
}

/* Theme changes are instantaneous for layout components to prevent slow rendering/lag */

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.border {
    border-color: var(--border-color) !important;
}

/* ============================================
   THEME SWITCHER COMPONENT (COMPACT)
   ============================================ */

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.4125rem;
    padding: -0.4125rem;
    background: var(--card-bg);
    border-radius: 0.6875rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.theme-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.3375rem;
    height: 2.3375rem;
    border: none;
    border-radius: 0.44rem;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.theme-button:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.theme-button.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.25);
}

.theme-button.active::after {
    content: '';
    position: absolute;
    bottom: -0.22rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.4125rem;
    height: 0.4125rem;
    background: var(--primary-color);
    border-radius: 50%;
}

.theme-button svg {
    width: 1.2375rem;
    height: 1.2375rem;
}

.theme-switcher[data-user-set="true"] {
    border-width: 1.65px;
    border-color: var(--primary-color);
}

.theme-switcher[data-user-set="true"]::before {
    content: '✓';
    position: absolute;
    top: -0.4125rem;
    right: -0.4125rem;
    font-size: 0.75625rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 0.9625rem;
    height: 0.9625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ============================================
   SCROLLBAR STYLES (COMPACT)
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.45);
    background-clip: content-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.glass-effect {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: 1.625rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    html,
    body {
        font-size: 14.3px;
    }

    .theme-switcher {
        gap: 0.275rem;
        padding: 0.33rem;
    }

    .theme-button {
        width: 2.0625rem;
        height: 2.0625rem;
    }

    .theme-button svg {
        width: 1.1rem;
        height: 1.1rem;
    }

    h1 {
        font-size: 1.925rem;
    }

    h2 {
        font-size: 1.5125rem;
    }

    h3 {
        font-size: 1.2375rem;
    }

    .btn {
        padding: 0.44rem 0.9625rem;
        font-size: 0.89375rem;
    }
}

/* ============================================
   QUICKGRID STYLES
   ============================================ */

.grid-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--crystal-border);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background: var(--crystal-table-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.quickgrid {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0;
    overflow: hidden;
}

.quickgrid thead th {
    background: var(--crystal-table-header) !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 0.9rem 1rem !important;
    border: none !important;
    position: sticky;
    top: 0;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.quickgrid thead {
    position: relative;
    border-bottom: 2px solid var(--primary-color) !important;
}

.quickgrid thead::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #8b5cf6 50%, var(--primary-hover) 100%) !important;
    z-index: 5;
}

.quickgrid thead th[aria-sort] {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 2rem;
}

.quickgrid thead th::after {
    content: '';
    position: absolute;
    right: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12) !important;
}

.quickgrid thead th:last-child::after {
    display: none;
}

.quickgrid thead th:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.quickgrid tbody tr {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--crystal-border);
    cursor: pointer;
    position: relative;
}

.quickgrid tbody tr:nth-child(even) {
    background: rgba(var(--primary-rgb), 0.015);
}

.quickgrid tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.06) !important;
    box-shadow: inset 3px 0 0 var(--primary-color), 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Selected row highlighting */
.quickgrid tbody tr.selected-row {
    background: rgba(var(--primary-rgb), 0.1) !important;
    box-shadow: inset 3px 0 0 var(--primary-color), 0 0 0 1px rgba(var(--primary-rgb), 0.15);
}

.quickgrid tbody tr.selected-row:hover {
    background: rgba(var(--primary-rgb), 0.14) !important;
}

/* Selected row highlighting - Dark theme */
[data-theme="dark"] .quickgrid tbody tr.selected-row,
[data-bs-theme="dark"] .quickgrid tbody tr.selected-row {
    background: rgba(var(--primary-rgb), 0.12) !important;
    box-shadow: inset 3px 0 0 var(--primary-color), 0 0 0 1px rgba(var(--primary-rgb), 0.2);
}

[data-theme="dark"] .quickgrid tbody tr.selected-row:hover,
[data-bs-theme="dark"] .quickgrid tbody tr.selected-row:hover {
    background: rgba(var(--primary-rgb), 0.16) !important;
}

.quickgrid tbody td {
    padding: 0.375rem 0.75rem;
    vertical-align: middle;
    font-size: 0.9375rem;
}

/* QuickGrid Column Options */
.col-options-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.2s;
}

.col-options-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-box {
    /*padding: 0.5rem;
    background: white;
    border-radius: 0.375rem;*/
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

.search-box input,
.search-box select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* ============================================
   ENHANCED PAGINATION STYLES (QuickGrid Style)
   ============================================ */
.paginator {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
}

.paginator button {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #4094f5 0%, #2673d8 100%);
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(64, 148, 245, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.paginator button:hover:not(:disabled) {
    background: linear-gradient(135deg, #2673d8 0%, #1558a8 100%);
    box-shadow: 0 4px 12px rgba(64, 148, 245, 0.35);
    border-color: transparent;
}

.paginator button:active:not(:disabled) {
    box-shadow: 0 2px 6px rgba(64, 148, 245, 0.25);
}

.paginator button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #6c757d;
    box-shadow: none;
}

/* Current/Active Page Button */
.paginator button.current-page {
    background: linear-gradient(135deg, #1558a8 0%, #124a8f 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(21, 88, 168, 0.4),
        0 0 0 3px rgba(64, 148, 245, 0.2);
    font-weight: 700;
    transform: scale(1.05);
}

.paginator button.current-page:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #1558a8 0%, #124a8f 100%);
}

/* Navigation Arrows - Make them highly visible INSIDE the button */
/* First page button */
.paginator button[aria-label*="Go to first page"]::before,
.paginator button[aria-label*="first"]::before {
    content: '◀◀ ';
    font-size: 10px;
    font-weight: 700;
    opacity: 0.95;
}

/* Previous page button */
.paginator button[aria-label*="Go to previous page"]::before,
.paginator button[aria-label*="previous"]::before {
    content: '◀ ';
    font-size: 11px;
    font-weight: 900;
}

/* Next page button - Arrow pointing RIGHT */
.paginator button[aria-label*="Go to next page"]::after,
.paginator button[aria-label*="next"]::after {
    content: ' ▶';
    font-size: 11px;
    font-weight: 900;
    transform: scaleX(1);
}

/* Last page button - Arrow pointing RIGHT */
.paginator button[aria-label*="Go to last page"]::after,
.paginator button[aria-label*="last"]::after {
    content: ' ▶▶';
    font-size: 10px;
    font-weight: 700;
    opacity: 0.95;
    transform: scaleX(1);
}

/* Make navigation buttons wider and show text with arrows */
.paginator button[aria-label*="Go to first page"],
.paginator button[aria-label*="first"],
.paginator button[aria-label*="Go to previous page"],
.paginator button[aria-label*="previous"],
.paginator button[aria-label*="Go to next page"],
.paginator button[aria-label*="next"],
.paginator button[aria-label*="Go to last page"],
.paginator button[aria-label*="last"] {
    min-width: auto;
    padding: 0.5rem 1rem;
    font-weight: 700;
    transform: scaleX(1);
}

/* Ensure button text is visible */
.paginator button[aria-label*="Go to first page"]::before,
.paginator button[aria-label*="first"]::before,
.paginator button[aria-label*="Go to previous page"]::before,
.paginator button[aria-label*="previous"]::before,
.paginator button[aria-label*="Go to next page"]::after,
.paginator button[aria-label*="next"]::after,
.paginator button[aria-label*="Go to last page"]::after,
.paginator button[aria-label*="last"]::after {
    display: inline;
    margin: 0;
}

/* Pagination Info Text */
.paginator .pagination-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 0 0.5rem;
    white-space: nowrap;
}

/* Dark Theme Adjustments */
[data-theme="dark"] .paginator button,
[data-bs-theme="dark"] .paginator button {
    background: linear-gradient(135deg, #4a9eff 0%, #3a8eef 100%);
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.25);
}

[data-theme="dark"] .paginator button:hover:not(:disabled),
[data-bs-theme="dark"] .paginator button:hover:not(:disabled) {
    background: linear-gradient(135deg, #3a8eef 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

[data-theme="dark"] .paginator button.current-page,
[data-bs-theme="dark"] .paginator button.current-page {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5), 0 0 0 3px rgba(74, 158, 255, 0.25);
}

[data-theme="dark"] .paginator button:disabled,
[data-bs-theme="dark"] .paginator button:disabled {
    background: #374151;
}

/* light Theme Adjustments */
[data-theme="light"] .paginator button,
[data-bs-theme="light"] .paginator button {
    background: linear-gradient(135deg, #4a9eff 0%, #3a8eef 100%);
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.25);
}

[data-theme="light"] .paginator button:hover:not(:disabled),
[data-bs-theme="light"] .paginator button:hover:not(:disabled) {
    background: linear-gradient(135deg, #3a8eef 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

[data-theme="light"] .paginator button.current-page,
[data-bs-theme="light"] .paginator button.current-page {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5), 0 0 0 3px rgba(74, 158, 255, 0.25);
}

[data-theme="light"] .paginator button:disabled,
[data-bs-theme="light"] .paginator button:disabled {
    background: #374151;
}

/* Responsive */
@media (max-width: 640px) {
    .paginator {
        gap: 0.375rem;
    }

    .paginator button {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }
}

/* Modal Styles Enhancement */
.modal.show {
    animation: fadeIn 0.3s ease;
}

.modal-dialog {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: var(--shadow-xl);
    background: var(--card-bg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

/* Badge enhancements for login methods */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge i {
    font-size: 0.875rem;
}

/* Loading state for grid */
.quickgrid-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.quickgrid-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

/* Empty state */
.quickgrid-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.quickgrid-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive QuickGrid */
@media (max-width: 992px) {
    .quickgrid thead th {
        font-size: 0.8125rem;
        padding: 0.75rem;
    }

    .quickgrid tbody td {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .grid-container {
        border-radius: 0.5rem;
    }

    .quickgrid thead th {
        font-size: 0.75rem;
        padding: 0.625rem;
    }

    .quickgrid tbody td {
        font-size: 0.8125rem;
        padding: 0.35rem 0.625rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/**************************************/
/********Custome Css For QuickGrid Changes********/

.text-muted {
    margin-right: 12px !important;
    margin-left: 12px !important;
}

.container-fluid {
    margin: 0 !important;
    padding: 0 !important;
}

.row>* {
    margin: 0 !important;
    padding: 0 !important;
}

.py-2 {
    padding: 0 !important;
    margin: 0 !important;
}

.px-3 {
    padding-right: 1rem !important;
    padding-left: 0.5rem !important;
}

.quickgrid[theme=default]>thead>tr>th {
    font-weight: normal;
    padding: 0;
}

.border-bottom {
    border-bottom: none !important;
}

/* ============================================
   EXPORT NOTIFICATION TOAST STYLES
   ============================================ */

.toast-container {
    z-index: 9999;
}

.toast {
    min-width: 320px;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-header {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.toast-body {
    padding: 1rem;
}

.toast-body .btn {
    transition: all 0.3s ease;
}

.toast-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dark theme toast styles */
[data-theme="dark"] .toast,
[data-bs-theme="dark"] .toast {
    background-color: #2d3748;
    color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .toast-header,
[data-bs-theme="dark"] .toast-header {
    background-color: #10b981;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .toast-body,
[data-bs-theme="dark"] .toast-body {
    background-color: #2d3748;
}

/* Grid Gaps & Spacing Overrides to prevent column/card overlapping */
.row {
    margin-left: -12px !important;
    margin-right: -12px !important;
}

.row>[class*="col-"] {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-bottom: 24px !important;
}

.container-fluid {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.card {
    margin-bottom: 1.5rem !important;
    /* Enforce default vertical spacing between stacked cards */
}

/* Premium Buttons styling */
.btn {
    border-radius: 0.625rem !important;
    /* 10px rounded corners */
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 1.5px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25) !important;
}

.btn-outline-success {
    border: 1.5px solid var(--success-color) !important;
    color: var(--success-color) !important;
    background: transparent !important;
}

.btn-outline-success:hover {
    background: var(--success-color) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}



.btn-outline-warning {
    border: 1.5px solid var(--warning-color) !important;
    color: var(--warning-color) !important;
    background: transparent !important;
}

.btn-outline-warning:hover {
    background: var(--warning-color) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
}

.btn-outline-secondary {
    border: 1.5px solid var(--secondary-color) !important;
    color: var(--secondary-color) !important;
    background: transparent !important;
}

.btn-outline-secondary:hover {
    background: var(--secondary-color) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.25) !important;
}

/* Refresh Button Micro-interactions */
.refresh-btn:hover .refresh-icon {
    transform: rotate(360deg);
}

.refresh-icon {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button and Input text cut off & alignment fixes */
.btn {
    line-height: 1.5 !important;
}

.btn-sm,
.input-group-sm .btn {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.85rem !important;
}

.input-group-sm .form-control {
    font-size: 0.875rem !important;
}

/* Calendar Header text readability & centering */
.schedule-calendar thead th {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding: 0.75rem 0.5rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

[data-theme="dark"] .schedule-calendar thead th,
[data-bs-theme="dark"] .schedule-calendar thead th {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

.schedule-calendar thead th.table-primary {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .schedule-calendar thead th.table-primary,
[data-bs-theme="dark"] .schedule-calendar thead th.table-primary {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

.schedule-calendar th div {
    display: block;
    text-align: center;
    margin: 0 auto;
}

/* Metric Card left padding override to prevent text touching the colored border */
.metric-card .card-body {
    padding-left: 1.5rem !important;
}

/* Fix input-group children border-radius to prevent double corners and text/button cropping */
.input-group .form-control,
.input-group .form-select,
.input-group .btn {
    border-radius: 0 !important;
}

/* Add padding to prevent corner text cutoff in input-groups */
.input-group-sm .form-control {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    font-size: 0.875rem !important;
}

.input-group-sm .btn {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    font-size: 0.85rem !important;
}

/* Compress spacing in all modal forms globally */
.modal-body form .row,
.modal-body .row,
.modal-body .row.g-3.mb-4,
.modal-body .row.g-3 {
    --bs-gutter-y: 0.2rem !important;
    --bs-gutter-x: 0.5rem !important;
    margin-bottom: 0.25rem !important;
}

.modal-body .form-check.mb-3 {
    margin-bottom: 0.25rem !important;
}

.modal-body form h6,
.modal-body h6,
.modal-body h6.mb-3 {
    margin-top: 0.4rem !important;
    margin-bottom: 0.3rem !important;
    padding-bottom: 0.15rem !important;
}

.modal-body {
    padding: 0.75rem 1.25rem !important;
}

.modal-header {
    padding: 0.75rem 1.25rem !important;
}

.modal-footer {
    padding: 0.75rem 1.25rem !important;
    margin-top: 0.5rem !important;
}

/* Consistent row height in all tables */
.table th,
.table td,
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    vertical-align: middle !important;
}

/* Premium Crystalline Glassmorphic Outlines (Dark Theme Only) */
[data-theme="dark"] .btn-outline-primary,
[data-bs-theme="dark"] .btn-outline-primary {
    background: rgba(59, 130, 246, 0.06) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
[data-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(37, 99, 235, 0.15) 100%) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2) !important;
    transform: translateY(-1.5px) !important;
}

[data-theme="dark"] .btn-outline-success,
[data-bs-theme="dark"] .btn-outline-success {
    background: rgba(16, 185, 129, 0.06) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #a7f3d0 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
[data-theme="dark"] .btn-outline-success:hover,
[data-bs-theme="dark"] .btn-outline-success:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.15) 100%) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2) !important;
    transform: translateY(-1.5px) !important;
}

[data-theme="dark"] .btn-outline-danger,
[data-bs-theme="dark"] .btn-outline-danger {
    background: rgba(239, 68, 68, 0.06) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
[data-theme="dark"] .btn-outline-danger:hover,
[data-bs-theme="dark"] .btn-outline-danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(220, 38, 38, 0.15) 100%) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2) !important;
    transform: translateY(-1.5px) !important;
}

[data-theme="dark"] .btn-outline-warning,
[data-bs-theme="dark"] .btn-outline-warning {
    background: rgba(245, 158, 11, 0.06) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #fde047 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
[data-theme="dark"] .btn-outline-warning:hover,
[data-bs-theme="dark"] .btn-outline-warning:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.15) 100%) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2) !important;
    transform: translateY(-1.5px) !important;
}

[data-theme="dark"] .btn-outline-info,
[data-bs-theme="dark"] .btn-outline-info {
    background: rgba(6, 182, 212, 0.06) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    color: #a5f3fc !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
[data-theme="dark"] .btn-outline-info:hover,
[data-bs-theme="dark"] .btn-outline-info:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.35) 0%, rgba(8, 145, 178, 0.15) 100%) !important;
    border-color: rgba(6, 182, 212, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2) !important;
    transform: translateY(-1.5px) !important;
}

[data-theme="dark"] .btn-outline-secondary,
[data-bs-theme="dark"] .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
[data-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1.5px) !important;
}

/* Global Crystalline Glass Cards Override */
.card {
    background: var(--card-glass-bg) !important;
    backdrop-filter: blur(18px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(200%) !important;
    border: 1px solid var(--card-glass-border) !important;
    box-shadow: var(--card-glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease !important;
}

.card:hover {
    box-shadow: var(--card-glass-hover-shadow) !important;
    border-color: rgba(var(--primary-rgb), 0.25) !important;
}

/* Premium Glassmorphic Modals */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
}

.modal-content {
    background: var(--modal-bg) !important;
    border: 1px solid var(--modal-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--modal-shadow) !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
}

.modal-header {
    border-bottom: 1px solid var(--modal-border) !important;
    padding: 1.25rem 1.5rem !important;
    background: transparent !important;
}

.modal-title {
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    font-size: 1.15rem !important;
}

.modal-body {
    padding: 1.5rem !important;
    color: var(--text-primary) !important;
}

.modal-footer {
    border-top: 1px solid var(--modal-border) !important;
    padding: 1rem 1.5rem !important;
    background: transparent !important;
}

/* Close Button Modernization (Theme-Aware) */
.btn-close,
.modal-header .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e293b'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/10px auto no-repeat !important;
    background-color: rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    opacity: 0.85 !important;
    padding: 0 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    filter: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
}

.btn-close:hover,
.modal-header .btn-close:hover {
    background-color: rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(0, 0, 0, 0.24) !important;
    transform: rotate(90deg) scale(1.08) !important;
    opacity: 1 !important;
}

/* Dark theme close button overrides */
[data-theme="dark"] .btn-close,
[data-bs-theme="dark"] .btn-close,
[data-theme="dark"] .modal-content .btn-close,
[data-bs-theme="dark"] .modal-content .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/10px auto no-repeat !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .btn-close:hover,
[data-bs-theme="dark"] .btn-close:hover,
[data-theme="dark"] .modal-content .btn-close:hover,
[data-bs-theme="dark"] .modal-content .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25) !important;
}

/* Ensure text inside modal descriptions is readable */
.modal-body p.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Fix inner boxes (e.g. description boxes or labels) */
.modal-body div[style*="background-color"] {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* List group or key-value styling in modal */
.modal-body label.text-body-secondary {
    color: var(--text-secondary) !important;
    font-size: 0.75rem !important;
    font-weight: 550 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
}

.modal-body span.fw-semibold {
    font-size: 0.95rem !important;
    color: var(--text-primary) !important;
}

.modal-content .list-group-item {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-primary) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.modal-content .list-group-item .text-body-secondary {
    color: var(--text-secondary) !important;
}

.modal.show, .modal.fade.show.d-block {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* ============================================
   CRYSTALLINE GLASS POLISH EFFECTS
   ============================================ */

/* Subtle inner glow highlight on cards */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Enhanced spinner with glow */
.spinner-border {
    filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.4));
}

/* Crystalline Toast Enhancement */
.toast {
    background: var(--crystal-card-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid var(--crystal-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.toast-header {
    background: transparent !important;
    border-bottom: 1px solid var(--crystal-border) !important;
    border-radius: 16px 16px 0 0 !important;
}

/* Soft text selection in brand colors */
::selection {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--text-primary);
}

/* Crystalline form-check (checkbox/radio) */
.form-check-input:not([role="switch"]) {
    border-radius: 6px !important;
    border: 1.5px solid var(--crystal-border) !important;
    background-color: var(--crystal-input-bg) !important;
    transition: all 0.2s ease !important;
}

.form-check-input:not([role="switch"]):checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3) !important;
}

/* Dropdown menus - Crystalline Glass */
.dropdown-menu {
    background: var(--crystal-card-bg) !important;
    backdrop-filter: blur(20px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
    border: 1px solid var(--crystal-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    padding: 6px !important;
    animation: dropdownFadeIn 0.2s ease !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    border-radius: 8px !important;
    padding: 0.5rem 0.85rem !important;
    transition: all 0.15s ease !important;
    color: var(--text-primary) !important;
    font-size: 0.925rem !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(var(--primary-rgb), 0.08) !important;
    color: var(--primary-color) !important;
}

.dropdown-divider {
    border-color: var(--crystal-border) !important;
    margin: 4px 8px !important;
}

/* Progress bars - Crystalline */
.progress {
    background: var(--crystal-input-bg) !important;
    border-radius: 100px !important;
    overflow: hidden !important;
    height: 8px !important;
    border: 1px solid var(--crystal-border) !important;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover)) !important;
    border-radius: 100px !important;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3) !important;
}

/* Accordion - Crystalline */
.accordion-item {
    background: var(--crystal-card-bg) !important;
    border: 1px solid var(--crystal-border) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.accordion-button {
    background: transparent !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color) !important;
    background: rgba(var(--primary-rgb), 0.04) !important;
    box-shadow: none !important;
}

/* Tab content panel transitions */
.tab-content > .tab-pane {
    animation: fadeIn 0.3s ease;
}

/* Popover - Crystalline */
.popover {
    background: var(--crystal-card-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid var(--crystal-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* Input group addons glass effect */
.input-group-text {
    background: var(--crystal-input-bg) !important;
    border-color: var(--crystal-border) !important;
    color: var(--text-secondary) !important;
    backdrop-filter: blur(6px) !important;
}

/* Focus visible outlines for accessibility */
:focus-visible {
    outline: 2px solid rgba(var(--primary-rgb), 0.5) !important;
    outline-offset: 2px !important;
}

/* Premium Dashboard Notification styling */
.notification-alert {
    border-radius: 12px !important;
    border: 1px solid var(--crystal-border) !important;
    backdrop-filter: blur(12px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.notification-alert:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Color profile enhancements for notifications in light mode */
.notification-alert.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%) !important;
    border-color: rgba(239, 68, 68, 0.15) !important;
    color: #b91c1c !important;
}

.notification-alert.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%) !important;
    border-color: rgba(245, 158, 11, 0.15) !important;
    color: #b45309 !important;
}

.notification-alert.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%) !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
    color: #1d4ed8 !important;
}

/* Color profile overrides for notifications in dark mode */
[data-theme="dark"] .notification-alert.alert-danger,
[data-bs-theme="dark"] .notification-alert.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.04) 100%) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
}

[data-theme="dark"] .notification-alert.alert-warning,
[data-bs-theme="dark"] .notification-alert.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
    color: #fde047 !important;
}

[data-theme="dark"] .notification-alert.alert-info,
[data-bs-theme="dark"] .notification-alert.alert-info {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.05) 100%) !important;
    border-color: rgba(74, 158, 255, 0.25) !important;
    color: #93c5fd !important;
}

/* ============================================
   MOBILE RESPONSIVENESS OVERRIDES (< 992px)
   ============================================ */
@media (max-width: 991.98px) {
    /* Stack grid elements comfortably */
    .col-lg-3, .col-lg-4, .col-lg-6 {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    /* Ensure tabs and pills wrap neatly on tablets/mobile */
    .nav-pills, .nav-tabs {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    /* Prevent filters on Billing page and Schedule page from overflowing */
    .d-flex.gap-2 {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 768px) {
    /* Force form groups and flex filters to wrap/stack vertically */
    .d-flex.gap-2,
    .d-flex.gap-3,
    .card-header .d-flex,
    .d-flex.justify-content-between.align-items-center {
        flex-wrap: wrap !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    /* Keep items that should be inline centered or auto-sized */
    .table .d-flex.gap-2.justify-content-end,
    .quickgrid .d-flex.gap-2.justify-content-end,
    .modal-footer .d-flex.gap-2 {
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }
    
    /* Make controls, selects, inputs, and search bars take full width */
    .form-control, 
    .form-select, 
    .btn, 
    input[type="text"], 
    select {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Override width constraints on action button elements inside forms */
    .modal-footer .btn,
    .card-footer .btn,
    .btn-close,
    .btn-sm,
    .btn-xs {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    
    /* Center text inside header titles on mobile */
    .d-flex.align-items-center.gap-3 {
        flex-direction: row !important;
        align-items: center !important;
    }

    /* Compact layout spacing */
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .row {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }
    
    .row > [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-bottom: 10px !important;
    }
    
    /* Compress metric card grid padding */
    .metric-card .card-body {
        padding: 0.85rem !important;
    }
    
    /* Compress table cell spacing on smaller viewports */
    .table td, .table th,
    .quickgrid tbody td, .quickgrid thead th {
        padding: 0.5rem 0.4rem !important;
        font-size: 0.82rem !important;
    }
    
    /* Compress plan cards and class items */
    .plan-card, .add-plan-card {
        min-height: 200px !important;
    }
    
    /* Adjust modal padding for small screens */
    .modal-dialog {
        margin: 0.5rem !important;
    }
    .modal-body {
        padding: 1rem !important;
    }
    .modal-footer {
        padding: 0.75rem 1rem !important;
    }
    
    /* Hide decorative borders or dividers on mobile */
    .table thead th::after,
    .quickgrid thead th::after {
        display: none !important;
    }
}

/* Drag and Drop Upload Area Styles */
.upload-area {
    background: rgba(var(--primary-rgb), 0.02);
    border: 2px dashed var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.upload-area:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary-color) !important;
}
.upload-area.drag-over {
    background: rgba(var(--primary-rgb), 0.1) !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.15);
}

/* Global Premium Table Grid Layout */
.table:not(.schedule-calendar) {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: transparent !important;
}

.table:not(.schedule-calendar) thead th {
    border-bottom: 2px solid var(--border-color) !important;
    background: transparent !important;
    padding: 10px 16px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--text-muted) !important;
}

.table:not(.schedule-calendar) tbody tr {
    background: transparent !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease !important;
}

[data-theme="light"] .table:not(.schedule-calendar) tbody tr,
[data-bs-theme="light"] .table:not(.schedule-calendar) tbody tr {
    background: transparent !important;
    box-shadow: none !important;
}

.table:not(.schedule-calendar) tbody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: none !important;
    box-shadow: none !important;
}

[data-theme="light"] .table:not(.schedule-calendar) tbody tr:hover,
[data-bs-theme="light"] .table:not(.schedule-calendar) tbody tr:hover {
    background: rgba(0, 0, 0, 0.03) !important;
    box-shadow: none !important;
}

.table:not(.schedule-calendar) tbody tr td:first-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: none !important;
}

.table:not(.schedule-calendar) tbody tr td:last-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
}

.table:not(.schedule-calendar) tbody tr td {
    border-top: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 6px 12px !important;
    vertical-align: middle !important;
    background: transparent !important;
    color: var(--text-primary) !important;
}

/* ============================================
   CRYSTALLINE GLASS BUTTONS OVERRIDES
   ============================================ */

/* Primary Button - Crystalline Blue */
.btn-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.45) 0%, rgba(37, 99, 235, 0.25) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus:not(:disabled) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.6) 0%, rgba(37, 99, 235, 0.4) 100%) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35) !important;
    transform: translateY(-1.5px) !important;
    color: #ffffff !important;
}

/* Success Button - Crystalline Green */
.btn-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.45) 0%, rgba(5, 150, 105, 0.25) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-success:hover:not(:disabled),
.btn-success:focus:not(:disabled) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.6) 0%, rgba(5, 150, 105, 0.4) 100%) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
    transform: translateY(-1.5px) !important;
    color: #ffffff !important;
}

/* Danger Button - Crystalline Red */
.btn-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.45) 0%, rgba(220, 38, 38, 0.25) 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-danger:hover:not(:disabled),
.btn-danger:focus:not(:disabled) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.6) 0%, rgba(220, 38, 38, 0.4) 100%) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35) !important;
    transform: translateY(-1.5px) !important;
    color: #ffffff !important;
}

/* Warning Button - Crystalline Amber */
.btn-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.45) 0%, rgba(217, 119, 6, 0.25) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-warning:hover:not(:disabled),
.btn-warning:focus:not(:disabled) {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.6) 0%, rgba(217, 119, 6, 0.4) 100%) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35) !important;
    transform: translateY(-1.5px) !important;
    color: #ffffff !important;
}

/* Info Button - Crystalline Cyan */
.btn-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.45) 0%, rgba(8, 145, 178, 0.25) 100%) !important;
    border: 1px solid rgba(6, 182, 212, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-info:hover:not(:disabled),
.btn-info:focus:not(:disabled) {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.6) 0%, rgba(8, 145, 178, 0.4) 100%) !important;
    border-color: rgba(6, 182, 212, 0.6) !important;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35) !important;
    transform: translateY(-1.5px) !important;
    color: #ffffff !important;
}

/* Light Theme overrides for outline buttons to ensure high text contrast */
[data-theme="light"] .btn-outline-secondary,
[data-bs-theme="light"] .btn-outline-secondary {
    border-color: #cbd5e1 !important;
    color: #475569 !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .btn-outline-secondary:hover,
[data-bs-theme="light"] .btn-outline-secondary:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    color: #1e293b !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .btn-outline-primary,
[data-bs-theme="light"] .btn-outline-primary {
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #2563eb !important;
    background: rgba(59, 130, 246, 0.04) !important;
}

[data-theme="light"] .btn-outline-primary:hover,
[data-bs-theme="light"] .btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    color: #1d4ed8 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

[data-theme="light"] .btn-outline-success,
[data-bs-theme="light"] .btn-outline-success {
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #059669 !important;
    background: rgba(16, 185, 129, 0.04) !important;
}

[data-theme="light"] .btn-outline-success:hover,
[data-bs-theme="light"] .btn-outline-success:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    color: #047857 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15) !important;
}

[data-theme="light"] .btn-outline-warning,
[data-bs-theme="light"] .btn-outline-warning {
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #d97706 !important;
    background: rgba(245, 158, 11, 0.04) !important;
}

[data-theme="light"] .btn-outline-warning:hover,
[data-bs-theme="light"] .btn-outline-warning:hover {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
    color: #b45309 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15) !important;
}

[data-theme="light"] .btn-outline-danger,
[data-bs-theme="light"] .btn-outline-danger {
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #dc2626 !important;
    background: rgba(239, 68, 68, 0.04) !important;
}

[data-theme="light"] .btn-outline-danger:hover,
[data-bs-theme="light"] .btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #b91c1c !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15) !important;
}

/* ============================================
   GLOBAL THEMABLE FORM SELECTS (GLASSMORPHISM)
   ============================================ */
.form-select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 0.5rem !important;
    transition: all 0.25s ease-in-out !important;
}

.form-select option {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

/* Light Theme Select overrides */
[data-theme="light"] .form-select,
[data-bs-theme="light"] .form-select {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
}

[data-theme="light"] .form-select option,
[data-bs-theme="light"] .form-select option {
    background-color: #ffffff !important;
    color: #1e293b !important;
}

/* Helper class for responsive header button toolbars: full-width on mobile (< 576px) only */
@media (max-width: 575.98px) {
    .w-mobile-100 {
        width: 100% !important;
    }
}

/* ============================================
   GLOBAL LIGHT THEME TABLE STYLE MODERNIZATION
   ============================================ */
[data-theme="light"] .table,
[data-bs-theme="light"] .table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    background-color: transparent !important;
}

[data-theme="light"] .table thead,
[data-bs-theme="light"] .table thead,
[data-theme="light"] .table thead.table-light,
[data-bs-theme="light"] .table thead.table-light,
[data-theme="light"] .table thead tr,
[data-bs-theme="light"] .table thead tr {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.08) !important;
}

/* Hide the blue gradient underline pseudo-element in Light Theme */
[data-theme="light"] .table thead::after,
[data-bs-theme="light"] .table thead::after {
    display: none !important;
    content: none !important;
}

[data-theme="light"] .table thead tr th,
[data-bs-theme="light"] .table thead tr th,
[data-theme="light"] .table thead.table-light tr th,
[data-bs-theme="light"] .table thead.table-light tr th,
[data-theme="light"] .table:not(.schedule-calendar) thead th,
[data-bs-theme="light"] .table:not(.schedule-calendar) thead th {
    background: transparent !important;
    background-color: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
    color: var(--text-secondary, #64748b) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
}

[data-theme="light"] .table tbody tr,
[data-bs-theme="light"] .table tbody tr {
    background: transparent !important;
    transition: background-color 0.2s ease !important;
}

[data-theme="light"] .table tbody tr td,
[data-bs-theme="light"] .table tbody tr td,
[data-theme="light"] .table:not(.schedule-calendar) tbody tr td,
[data-bs-theme="light"] .table:not(.schedule-calendar) tbody tr td {
    background: transparent !important;
    background-color: transparent !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 6px 12px !important;
    color: var(--text-primary, #1e293b) !important;
    vertical-align: middle !important;
    font-size: 0.88rem !important;
}

[data-theme="light"] .table tbody tr:hover td,
[data-bs-theme="light"] .table tbody tr:hover td {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

/* Override Bootstrap's specific cell border color to remove blue lines */
[data-theme="light"] .table > :not(caption) > * > *,
[data-bs-theme="light"] .table > :not(caption) > * > *,
[data-theme="light"] .table:not(.schedule-calendar) > :not(caption) > * > *,
[data-bs-theme="light"] .table:not(.schedule-calendar) > :not(caption) > * > * {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: none !important;
}

[data-theme="light"] .table > thead > tr > th,
[data-bs-theme="light"] .table > thead > tr > th,
[data-theme="light"] .table:not(.schedule-calendar) > thead > tr > th,
[data-bs-theme="light"] .table:not(.schedule-calendar) > thead > tr > th {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* ============================================
   GLOBAL LIGHT THEME FORM CONTROLS VISIBILITY
   ============================================ */
[data-theme="light"] .form-control,
[data-theme="light"] .form-select,
[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1e293b !important;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus,
[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}



[data-theme="light"] .btn-success,
[data-bs-theme="light"] .btn-success {
    background: #10b981 !important;
    border: 1px solid #059669 !important;
    color: #ffffff !important;
}
[data-theme="light"] .btn-success:hover:not(:disabled),
[data-bs-theme="light"] .btn-success:hover:not(:disabled) {
    background: #059669 !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-primary,
[data-bs-theme="light"] .btn-primary {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    font-weight: 600 !important;
}
[data-theme="light"] .btn-primary:hover:not(:disabled),
[data-bs-theme="light"] .btn-primary:hover:not(:disabled) {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* ============================================
   GLOBAL CRYSTALLINE GLASSMORPHISM FOR DROPDOWN MENUS
   ============================================ */
.dropdown-menu {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
    z-index: 2050 !important;
    opacity: 1 !important;
}

[data-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .dropdown-menu,
.dark-theme .dropdown-menu {
    background-color: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
    opacity: 1 !important;
}

/* Premium Segmented Payment Tabs Gateway */
.payment-tabs-container {
    display: flex;
    background: rgba(var(--bs-emphasis-color-rgb), 0.04) !important;
    border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.08) !important;
    padding: 4px !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
    width: 100%;
}

.payment-tab {
    flex: 1;
    text-align: center;
    padding: 8px 4px !important;
    cursor: pointer;
    color: var(--text-secondary) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
}

.payment-tab:hover {
    background: rgba(var(--bs-emphasis-color-rgb), 0.03) !important;
    opacity: 1;
    color: var(--text-primary) !important;
}

.payment-tab.active-tab {
    background: rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    color: #3b82f6 !important;
    opacity: 1;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08) !important;
}

/* Premium Icon Badges with glows */
.badge-icon-frame {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.frame-primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.05));
    color: #3b82f6 !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

.frame-success {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(22, 163, 74, 0.05));
    color: #22c55e !important;
    border: 1px solid rgba(22, 163, 74, 0.2) !important;
}

.frame-info {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.2), rgba(13, 148, 136, 0.05));
    color: #0d9488 !important;
    border: 1px solid rgba(13, 148, 136, 0.2) !important;
}

.frame-warning {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(217, 119, 6, 0.05));
    color: #d97706 !important;
    border: 1px solid rgba(217, 119, 6, 0.2) !important;
}

.frame-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.frame-yellow {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.05));
    color: #eab308 !important;
    border: 1px solid rgba(234, 179, 8, 0.2) !important;
}

.frame-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.05));
    color: #ec4899 !important;
    border: 1px solid rgba(236, 72, 153, 0.2) !important;
}

/* Premium Squircle Empty State Icons */
.empty-state-icon-frame {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.05)) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    margin-bottom: 1rem;
}

.empty-state-icon-frame i {
    font-size: 1.4rem !important;
}

/* Premium Modals and Forms Global Styles */
.premium-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 15, 30, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: premiumBackdropFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes premiumBackdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.premium-modal {
    background: rgba(22, 28, 45, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45) !important;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    animation: premiumModalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes premiumModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.premium-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.25rem 1.5rem !important;
    background: rgba(255, 255, 255, 0.01) !important;
}
.premium-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.premium-modal-body {
    padding: 1.75rem 1.75rem 1.5rem 1.75rem !important;
    max-height: 75vh;
    overflow-y: auto;
}
.premium-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.1rem 1.75rem !important;
    background: rgba(255, 255, 255, 0.01) !important;
}
.premium-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--bs-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.premium-label {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.2px;
}
.premium-input {
    background: rgba(15, 23, 42, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    color: var(--bs-body-color) !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.premium-input:focus {
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
    color: var(--bs-body-color) !important;
}
.premium-input::placeholder {
    color: #94a3b8 !important;
    opacity: 0.4;
}

/* Light Theme Adjustments */
[data-theme="light"] .premium-modal,
[data-bs-theme="light"] .premium-modal {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
[data-theme="light"] .premium-modal-backdrop,
[data-bs-theme="light"] .premium-modal-backdrop {
    background-color: rgba(15, 23, 42, 0.3) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
[data-theme="light"] .premium-modal-header,
[data-bs-theme="light"] .premium-modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #ffffff !important;
}
[data-theme="light"] .premium-modal-footer,
[data-bs-theme="light"] .premium-modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: #f8fafc !important;
}
[data-theme="light"] .premium-section-title,
[data-bs-theme="light"] .premium-section-title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .premium-input {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .premium-input:focus {
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* Premium Input Group & Dropdown Theming */
.premium-input-group-text {
    background: rgba(15, 23, 42, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: none !important;
    color: #94a3b8 !important;
}

.premium-input-btn {
    background: rgba(15, 23, 42, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: none !important;
    color: #94a3b8 !important;
}
.premium-input-btn:hover {
    background: rgba(15, 23, 42, 0.75) !important;
    color: #fff !important;
}

.premium-dropdown {
    background: var(--dropdown-bg) !important;
    border: 1px solid var(--dropdown-border) !important;
    border-radius: 10px !important;
    transition: none !important;
}
.premium-dropdown .dropdown-item {
    color: var(--dropdown-item-color) !important;
}
.premium-dropdown .dropdown-item:hover {
    background: var(--dropdown-item-hover-bg) !important;
    color: var(--dropdown-item-hover-color) !important;
}

[data-theme="light"] .premium-input-group-text {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-right: none !important;
    color: #64748b !important;
}

[data-theme="light"] .premium-input-btn {
    background: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-left: none !important;
    color: #64748b !important;
}
[data-theme="light"] .premium-input-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Premium Zone Badge Styles */
.zone-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 500;
}

[data-theme="light"] .zone-badge {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Today Highlights for Schedule Calendar (Static Overrides) */
[data-theme="light"] .today-cell-highlight {
    background: rgba(59, 130, 246, 0.08) !important;
}
[data-theme="light"] .today-header-highlight {
    background: rgba(59, 130, 246, 0.12) !important;
    border-bottom: 3px solid #3b82f6 !important;
}

[data-theme="light"] .premium-label {
    color: #475569 !important;
}

/* Premium Segmented Toggle Group */
.premium-toggle-group {
    background: rgba(15, 23, 42, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 30px !important;
    padding: 4px !important;
    display: inline-flex !important;
    gap: 4px !important;
    list-style: none !important;
}
[data-theme="light"] .premium-toggle-group {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}

.premium-toggle-group .btn {
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    border-radius: 20px !important;
    transition: all 0.2s ease !important;
}
[data-theme="light"] .premium-toggle-group .btn {
    color: #64748b !important;
}

.premium-toggle-group .btn.btn-primary {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}
.premium-toggle-group .btn.btn-danger {
    background: var(--danger-color) !important;
    color: #ffffff !important;
}
 
.glass-modal-content {
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--bs-body-color, #1e293b) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}
html[data-bs-theme="dark"] .glass-modal-content {
    background: rgba(22, 28, 45, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary, #f8fafc) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

/* Premium outline secondary button theming */
.btn-outline-secondary {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    transition: all 0.2s ease-in-out !important;
}
.btn-outline-secondary:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="light"] .btn-outline-secondary,
[data-bs-theme="light"] .btn-outline-secondary {
    color: #475569 !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
}
[data-theme="light"] .btn-outline-secondary:hover,
[data-bs-theme="light"] .btn-outline-secondary:hover {
    color: #1e293b !important;
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

/* OVERRIDE TO REMOVE LOGO BORDER BOX AND PADDING WITH ULTRA-HIGH SPECIFICITY */
#sidebar-nav.nav-container .top-row.navbar.navbar-dark .container-fluid a.navbar-brand img.company-logo,
#sidebar-nav.nav-container.collapsed .top-row.navbar.navbar-dark .container-fluid a.navbar-brand img.company-logo,
#sidebar-nav.nav-container.collapsed.hover-expanded .top-row.navbar.navbar-dark .container-fluid a.navbar-brand img.company-logo,
.nav-container .company-logo,
.company-logo {
    height: 3.2rem !important;
    width: 3.2rem !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#sidebar-nav.nav-container[data-theme="light"] .company-logo,
#sidebar-nav.nav-container[data-bs-theme="light"] .company-logo,
[data-theme="light"] .company-logo,
[data-bs-theme="light"] .company-logo {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}