/* ==========================================================================
   ZOOM MALL - 2050 NEXT-GEN EXECUTIVE CONTROL SYSTEM
   Futuristic Cyber-Luxury Design System, Neo-Glassmorphism & Responsive Engine
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    /* Brand Palette */
    --zm-primary: #1e3a8a;          /* Deep Royal Sapphire */
    --zm-primary-dark: #0f172a;     /* Deep Cosmic Slate */
    --zm-primary-light: #2563eb;    /* Electric Cyber Blue */
    --zm-primary-glow: rgba(37, 99, 235, 0.35);

    --zm-accent: #f59e0b;           /* Radiant Solar Gold */
    --zm-accent-light: #fbbf24;     /* Luminous Amber */
    --zm-accent-glow: rgba(245, 158, 11, 0.4);

    --zm-secondary: #0f172a;        /* Cosmic Charcoal */
    --zm-cyan: #06b6d4;             /* Quantum Cyan */
    --zm-cyan-glow: rgba(6, 182, 212, 0.35);

    --zm-success: #10b981;          /* Neon Emerald */
    --zm-success-glow: rgba(16, 185, 129, 0.35);

    --zm-warning: #f59e0b;          /* Solar Warning */
    --zm-danger: #f43f5e;           /* Cyber Rose Red */
    --zm-danger-glow: rgba(244, 63, 94, 0.35);

    --zm-info: #0284c7;             /* Stratosphere Sky */

    /* Atmospheric Glass Surfaces Matching Reference Image */
    --zm-bg-top: #2b3848;
    --zm-bg-mesh: #eef2f6;
    --zm-surface-glass: rgba(255, 255, 255, 0.72);
    --zm-surface-glass-card: rgba(255, 255, 255, 0.75);
    --zm-surface-glass-sidebar: rgba(9, 14, 26, 0.96);

    --zm-border-glass: rgba(255, 255, 255, 0.88);
    --zm-border-subtle: rgba(226, 232, 240, 0.8);
    --zm-border-neon: rgba(37, 99, 235, 0.4);

    --zm-text-main: #0f172a;
    --zm-text-muted: #64748b;
    --zm-text-light: #94a3b8;

    /* Geometry Tokens */
    --sidebar-width: 270px;
    --header-height: 70px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    /* Override Bootstrap variables */
    --bs-primary: var(--zm-primary);
    --bs-primary-rgb: 30, 58, 138;
    --bs-secondary: var(--zm-secondary);
    --bs-success: var(--zm-success);
    --bs-info: var(--zm-info);
    --bs-warning: var(--zm-warning);
    --bs-danger: var(--zm-danger);
    --bs-body-bg: var(--zm-bg-mesh);
    --bs-body-color: var(--zm-text-main);
    --bs-font-sans-serif: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Backward compatibility mappings for legacy view variables */
    --card-bg: var(--zm-surface-glass-card);
    --border-color: var(--zm-border-subtle);
    --primary: var(--zm-primary);
    --primary-custom: var(--zm-primary);
    --secondary: var(--zm-secondary);
    --text-muted: var(--zm-text-muted);
    --bg-color: var(--zm-bg-mesh);
    --surface-color: var(--zm-surface-glass);
}

/* ==========================================================================
   Base & Atmospheric Ambient Canvas (Exact Colors from User Screenshot)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14.5px;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #2b3848;
    background-image: 
        radial-gradient(at 100% 0%, rgba(30, 41, 59, 0.88) 0px, transparent 55%),
        radial-gradient(at 0% 0%, rgba(51, 65, 85, 0.82) 0px, transparent 45%),
        linear-gradient(180deg, #2b3848 0%, #3e4d60 170px, #8898aa 380px, #d5dde5 650px, #edf2f7 100%);
    background-attachment: fixed;
    color: var(--zm-text-main);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Custom Cyber Glass Scrollbars */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.03);
}
::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.6);
}

/* ==========================================================================
   2050 Cosmic Glass Sidebar (Kept & Preserved as Requested)
   ========================================================================== */
.zm-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #090e1a 0%, #0d1527 50%, #080c16 100%);
    color: #fff;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1045;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.35);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.zm-sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.zm-sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--zm-accent), transparent);
}

/* Circular Glowing Luxury Logo (User Request) */
.sidebar-logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, 0.9);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.45), 0 4px 15px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.sidebar-logo-circle:hover {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.7), 0 6px 20px rgba(0, 0, 0, 0.5);
}

.sidebar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-logo-z {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    font-family: 'Arial', sans-serif;
    line-height: 1;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.sidebar-brand-info {
    display: flex;
    flex-direction: column;
    margin-right: 12px;
}

.sidebar-brand-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.2;
}

.sidebar-brand-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--zm-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.zm-sidebar-menu {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zm-sidebar-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.7rem 1.15rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.zm-sidebar-link i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.22s ease;
}

.zm-sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-4px);
}

.zm-sidebar-link:hover i {
    color: var(--zm-accent-light);
    transform: scale(1.15);
}

.zm-sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.32) 0%, rgba(245, 158, 11, 0.12) 100%);
    border-right: 3.5px solid var(--zm-accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 0 15px rgba(37, 99, 235, 0.18);
    font-weight: 800;
}

.zm-sidebar-link.active i {
    color: var(--zm-accent);
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   Main Wrapper Area & Floating Frosted AppBar (Exact Match to Screenshot)
   ========================================================================== */
.zm-main-wrapper {
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Frosted AppBar */
.zm-header {
    height: 66px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    margin: 14px 1.75rem 0.5rem 1.75rem;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1030;
    position: sticky;
    top: 14px;
}

/* AppBar Search Input Pill */
.zm-appbar-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    padding: 0.45rem 1.25rem;
    width: 250px;
    transition: all 0.25s ease;
    gap: 8px;
}

.zm-appbar-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: #1e293b;
    width: 100%;
    font-weight: 600;
}

.zm-appbar-search input::placeholder {
    color: #64748b;
}

.zm-appbar-search:focus-within {
    background: rgba(255, 255, 255, 0.9);
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    width: 290px;
}

/* AppBar Notifications Pill Button */
.zm-appbar-pill-btn {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    padding: 0.45rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.zm-appbar-pill-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

.zm-appbar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f43f5e;
    box-shadow: 0 0 8px #f43f5e;
    animation: beacon-pulse 1.8s infinite;
}

/* AppBar Day/Night Switch */
.zm-appbar-theme-toggle {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    padding: 0.35rem 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.zm-appbar-theme-toggle .active {
    color: #f59e0b;
}

/* AppBar User Profile */
.zm-appbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.zm-user-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zm-user-avatar-circle:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.zm-avatar-online-dot {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
    box-shadow: 0 0 6px #10b981;
}

/* User Greeting Hero Banner (Exact from User Screenshot) */
.zm-page-hero-greeting {
    padding: 1.5rem 1.75rem 1rem 1.75rem;
    color: #ffffff;
}

.zm-greeting-title {
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.zm-greeting-subtitle {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.zm-content {
    flex-grow: 1;
    padding: 0.5rem 1.75rem 2rem 1.75rem;
}

/* ==========================================================================
   2050 Standard Page Header Component & High-Contrast Typography
   ========================================================================== */
.zm-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem 0 0.5rem 0;
}

.zm-page-header-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.2px;
}

.zm-page-header-subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500;
    margin-bottom: 0;
}

.zm-page-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

/* Contrast Safety Rules: Headings & text directly in .zm-content outside .card */
.zm-content > h1,
.zm-content > h2,
.zm-content > h3,
.zm-content > h4,
.zm-content > div:not(.card):not(.alert):not(.modal):not(.dropdown-menu) > h1,
.zm-content > div:not(.card):not(.alert):not(.modal):not(.dropdown-menu) > h2,
.zm-content > div:not(.card):not(.alert):not(.modal):not(.dropdown-menu) > h3,
.zm-content > div:not(.card):not(.alert):not(.modal):not(.dropdown-menu) > h4 {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.zm-content > p,
.zm-content > div:not(.card):not(.alert):not(.modal):not(.dropdown-menu) > p {
    color: rgba(255, 255, 255, 0.85);
}

/* Ensure text inside .card retains maximum crispness on frosted glass */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6, .card .card-title {
    color: #0f172a !important;
    text-shadow: none !important;
}

.card p, .card .text-muted {
    color: #64748b;
}

/* Universal Spacing Protection: Prevent cards and boxes from sticking together */
.zm-content .row:not([class*="g-"]):not([class*="gap-"]):not([class*="gx-"]):not([class*="gy-"]) {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

/* ==========================================================================
   Frosted Glass KPI Cards (Exact Match to User Screenshot)
   ========================================================================== */
.kpi-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 30px -5px rgba(25, 35, 55, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 145px;
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 36px -5px rgba(20, 30, 50, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 1);
}

.kpi-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.kpi-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kpi-icon-circle.circle-green {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
}

.kpi-icon-circle.circle-orange {
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
}

.kpi-icon-circle.circle-blue {
    background: rgba(37, 99, 235, 0.16);
    color: #2563eb;
}

.kpi-icon-circle.circle-red {
    background: rgba(244, 63, 94, 0.16);
    color: #f43f5e;
}

.kpi-icon-circle.circle-purple {
    background: rgba(139, 92, 246, 0.16);
    color: #8b5cf6;
}

.kpi-title-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
}

.kpi-title-mini-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.kpi-title-mini-icon.mini-green { background: rgba(16, 185, 129, 0.18); color: #059669; }
.kpi-title-mini-icon.mini-orange { background: rgba(245, 158, 11, 0.18); color: #d97706; }
.kpi-title-mini-icon.mini-blue { background: rgba(37, 99, 235, 0.18); color: #1d4ed8; }
.kpi-title-mini-icon.mini-red { background: rgba(244, 63, 94, 0.18); color: #e11d48; }

.kpi-main-number {
    font-family: 'Plus Jakarta Sans', 'Tajawal', sans-serif;
    font-size: 1.95rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-feature-settings: "tnum";
}

.kpi-main-number .curr {
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    margin-right: 4px;
}

.kpi-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-sparkline {
    width: 90px;
    height: 24px;
}

.kpi-percentage-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: #10b981;
}

/* ==========================================================================
   Frosted Glass Content Cards, Tables & Panels (Match to Screenshot)
   ========================================================================== */
.card {
    background: rgba(255, 255, 255, 0.74) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-radius: 20px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 12px 35px -5px rgba(20, 30, 50, 0.07) !important;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    background: rgba(255, 255, 255, 0.35) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7) !important;
    padding: 1.15rem 1.5rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0;
    color: #1e293b;
}

.card-body {
    padding: 1.5rem;
}

/* Frosted Glass Data Tables */
.table {
    background: transparent !important;
    margin-bottom: 0;
    border-color: rgba(226, 232, 240, 0.6);
}

.table th {
    background: rgba(241, 245, 249, 0.6) !important;
    font-weight: 800;
    color: #1e293b;
    border-bottom: 1px solid rgba(203, 213, 225, 0.8) !important;
    padding: 0.95rem 1.15rem;
    font-size: 0.88rem;
    white-space: nowrap;
}

.table td {
    background: transparent !important;
    padding: 0.95rem 1.15rem;
    border-bottom: 1px solid rgba(241, 245, 249, 0.9);
    color: #1e293b;
    font-size: 0.92rem;
    vertical-align: middle;
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.6) !important;
}

/* 2050 Status Pills */
.zm-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.38rem 0.85rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.zm-status-pill.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.zm-status-pill.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.zm-status-pill.status-danger {
    background: rgba(244, 63, 94, 0.15);
    color: #be123c;
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.status-pending .pill-dot {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: beacon-pulse 1.8s infinite;
}

.status-active .pill-dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: beacon-pulse 1.8s infinite;
}

.status-danger .pill-dot {
    background: #f43f5e;
    box-shadow: 0 0 8px #f43f5e;
}

@keyframes beacon-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 14px var(--zm-success); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   Universal Frosted Glass Modal for Add/Edit Forms (Perfect Symmetry & Full-Fill)
   ========================================================================== */
.zm-glass-modal .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.75rem auto;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.zm-glass-modal .modal-dialog.modal-lg {
    max-width: 860px;
    width: 95%;
}

.zm-glass-modal .modal-dialog.modal-xl {
    max-width: 1180px;
    width: 96%;
}

.zm-glass-modal .modal-content {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 85px -10px rgba(15, 23, 42, 0.35) !important;
    overflow: hidden;
    width: 100%;
}

.zm-glass-modal .modal-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    background: rgba(248, 250, 252, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zm-glass-modal .modal-body {
    padding: 2rem !important;
    max-height: 82vh;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100% !important;
}

/* Force all injected containers, forms, and cards to span 100% of the modal */
.zm-glass-modal .modal-body > *,
.zm-glass-modal .modal-body form,
.zm-glass-modal .modal-body .card,
.zm-glass-modal .modal-body .card-body {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.zm-glass-modal .modal-body .card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.zm-glass-modal .modal-body .card-body {
    padding: 0 !important;
}

/* Nested section cards (e.g. details boxes, item rows) retain neat aesthetics */
.zm-glass-modal .modal-body .zm-glass-section,
.zm-glass-modal .modal-body .subscription-section,
.zm-glass-modal .modal-body .item-row {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px !important;
    margin-bottom: 1.25rem !important;
}

.zm-glass-modal .modal-body .row {
    margin-left: -0.625rem;
    margin-right: -0.625rem;
    width: calc(100% + 1.25rem);
}

.zm-glass-modal .modal-body .row > * {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

.zm-glass-modal .modal-body label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.45rem;
    display: inline-block;
}

.zm-glass-modal .modal-body hr {
    border-color: rgba(226, 232, 240, 0.8);
    margin: 1.25rem 0;
}

.zm-glass-modal .modal-body .form-control,
.zm-glass-modal .modal-body .form-select {
    width: 100% !important;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.zm-glass-modal .modal-body .form-control:focus,
.zm-glass-modal .modal-body .form-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Neatly format the actions footer buttons inside the modal */
.zm-glass-modal .modal-body .d-flex:has(button[type="submit"]),
.zm-glass-modal .modal-body form > .d-flex:last-child {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    width: 100%;
}

.zm-modal-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--zm-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* ==========================================================================
   Frosted Form Inputs & Buttons
   ========================================================================== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.65rem 1.15rem;
    font-size: 0.95rem;
    color: var(--zm-text-main);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control:focus, .form-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 8px 20px -4px rgba(37, 99, 235, 0.15) !important;
    background: #ffffff !important;
    transform: translateY(-1px);
}

@keyframes zm-cyber-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.form-control.is-invalid, 
.form-select.is-invalid,
.input-group.has-validation > .form-control:invalid,
.input-group.has-validation > .form-select:invalid {
    border-color: #f43f5e !important;
    background-color: #fff5f6 !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.25), 0 8px 20px -4px rgba(244, 63, 94, 0.2) !important;
    animation: zm-cyber-shake 0.35s ease-in-out;
}

.invalid-feedback {
    font-size: 0.85rem;
    font-weight: 800;
    color: #e11d48 !important;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn {
    border-radius: var(--radius-sm);
    font-weight: 700;
    padding: 0.6rem 1.35rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35) !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5) !important;
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35) !important;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.35) !important;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.5) !important;
}

.btn-outline-primary {
    border: 1.5px solid var(--zm-primary-light) !important;
    color: var(--zm-primary) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    font-weight: 800;
}

.btn-outline-primary:hover {
    background: var(--zm-primary) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Multi-Device Engine (iPad / Tablet & Mobile)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .zm-sidebar {
        transform: translateX(100%);
        width: 270px;
    }
    .zm-sidebar.show {
        transform: translateX(0);
    }
    .zm-main-wrapper {
        margin-right: 0;
    }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(9, 14, 26, 0.65);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1040;
        display: none;
    }
    .sidebar-overlay.show {
        display: block;
    }
    .zm-header {
        margin: 10px 1rem 0.5rem 1rem;
    }
    .zm-content {
        padding: 0.5rem 1rem 2rem 1rem;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 13.5px;
    }
    .zm-sidebar {
        transform: translateX(100%);
        width: 82vw;
        max-width: 320px;
    }
    .zm-sidebar.show {
        transform: translateX(0);
    }
    .zm-main-wrapper {
        margin-right: 0;
    }
    .zm-header {
        margin: 8px 0.75rem 0.5rem 0.75rem;
        padding: 0 0.85rem;
        height: 60px;
    }
    .zm-content {
        padding: 0.5rem 0.75rem 2rem 0.75rem;
    }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(9, 14, 26, 0.65);
        backdrop-filter: blur(8px);
        z-index: 1040;
        display: none;
    }
    .sidebar-overlay.show {
        display: block;
    }
    .zm-appbar-search {
        display: none;
    }
    .kpi-card {
        padding: 1rem;
    }
    .kpi-main-number {
        font-size: 1.55rem;
    }
}

/* ==========================================================================
   Auth Screen Styling - Executive Cyber-Glassmorphism (Login & Register)
   ========================================================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(35px) !important;
    -webkit-backdrop-filter: blur(35px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 26px !important;
    box-shadow: 0 30px 75px -10px rgba(15, 23, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    width: 100%;
    max-width: 460px;
    padding: 2.75rem 2.25rem 2.25rem 2.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: zm-auth-entrance 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zm-auth-entrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

/* Circular Glowing Luxury Logo (Matching AppBar/Sidebar, but larger ~78px) */
.auth-logo-circle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 2.5px solid rgba(245, 158, 11, 0.95);
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.5), 0 8px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    margin-bottom: 1rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    flex-shrink: 0;
}

.auth-logo-circle:hover {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 0 45px rgba(245, 158, 11, 0.75), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.auth-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-logo-z {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
}

.auth-brand-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    font-family: 'Plus Jakarta Sans', 'Tajawal', sans-serif;
}

.auth-brand-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: #d97706;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 1px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 1.85rem;
    line-height: 1.5;
}

.auth-form {
    text-align: right;
}

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

.auth-input-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 0.5rem;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.auth-input-wrapper .form-control {
    padding-right: 42px !important;
    padding-left: 42px !important;
    height: 48px;
    font-size: 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid #cbd5e1;
}

.auth-input-wrapper .form-control:focus ~ .auth-input-icon {
    color: #2563eb;
}

.auth-toggle-pwd {
    position: absolute;
    left: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.2s ease;
    z-index: 2;
}

.auth-toggle-pwd:hover {
    color: #0f172a;
}

.auth-btn-submit {
    height: 50px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    margin-top: 1.5rem;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
}

/* ==========================================================================
   2050 Subtle Diagnostic Halo for Invalid Form Fields
   ========================================================================== */
.form-control.is-invalid,
.form-select.is-invalid,
.is-invalid {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 3.5px rgba(244, 63, 94, 0.22) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Prevent repetitive small red texts from littering forms; errors are shown cleanly in SweetAlert2 */
.invalid-feedback {
    display: none !important;
}

/* ==========================================================================
   Frosted Glass Alert Banners (Clear High-Contrast Text & Translucent Glow)
   ========================================================================== */
.alert {
    border-radius: 16px !important;
    padding: 1.1rem 1.35rem !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04) !important;
    font-weight: 700 !important;
    font-size: 0.94rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
}

.alert-danger {
    background: rgba(244, 63, 94, 0.12) !important;
    border: 1.5px solid rgba(244, 63, 94, 0.35) !important;
    color: #9f1239 !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
    color: #065f46 !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.14) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.38) !important;
    color: #92400e !important;
}

.alert-info {
    background: rgba(37, 99, 235, 0.12) !important;
    border: 1.5px solid rgba(37, 99, 235, 0.35) !important;
    color: #1e40af !important;
}

/* ==========================================================================
   SweetAlert2 2050 Frosted Glass Dialogs & Confirmation Modals
   ========================================================================== */
.zm-swal-popup {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.98) !important;
    border-radius: 28px !important;
    box-shadow: 0 35px 85px -10px rgba(15, 23, 42, 0.35) !important;
    padding: 2.25rem 2rem !important;
    font-family: 'Tajawal', sans-serif !important;
}

.zm-swal-popup .swal2-title {
    color: #0f172a !important;
    font-weight: 900 !important;
    font-size: 1.45rem !important;
    margin-bottom: 0.75rem !important;
}

.zm-swal-popup .swal2-html-container {
    color: #334155 !important;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
}

.zm-swal-popup .swal2-actions {
    gap: 12px !important;
    margin-top: 1.5rem !important;
}

.zm-swal-popup .btn {
    border-radius: 50px !important;
    padding: 0.65rem 1.85rem !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   Frosted Glass Form Sections, Category Cards & Interactive Choice Grid
   ========================================================================== */
.zm-glass-section {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.88) !important;
    border-radius: 18px !important;
    padding: 1.35rem 1.5rem !important;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 1.75rem !important;
}

.zm-choice-card, .create-sub-card {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 14px !important;
    padding: 1rem 1.15rem !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    user-select: none;
}

.zm-choice-card:hover, .create-sub-card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #2563eb !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12) !important;
}

.zm-choice-card.active, .create-sub-card.active,
.zm-choice-card:has(input:checked), .create-sub-card:has(input:checked) {
    background: rgba(239, 246, 255, 0.92) !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 8px 20px rgba(37, 99, 235, 0.12) !important;
}

.zm-cat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(226, 232, 240, 0.85);
    border-radius: 12px;
    padding: 0.65rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.22s ease;
}

.zm-cat-pill:hover {
    background: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.zm-cat-pill:has(input:checked) {
    background: rgba(240, 253, 244, 0.95);
    border-color: #10b981;
    color: #065f46;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.zm-cat-pill input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
    cursor: pointer;
}

.sub-cat-group {
    background: rgba(248, 250, 252, 0.7);
    border: 1px dashed rgba(203, 213, 225, 0.9);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 0.85rem;
    animation: zm-fade-scale 0.3s ease;
}

.empty-state {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(15px) !important;
    border: 1.5px dashed rgba(203, 213, 225, 0.8) !important;
    border-radius: 18px !important;
    padding: 2.5rem 1.5rem !important;
    text-align: center;
    color: #64748b;
    font-weight: 700;
}/* ==========================================================================
   Cyber-Luxurious Frosted Glass SweetAlert2 Modal Suite
   ========================================================================== */
.zm-swal-popup {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 65px -10px rgba(15, 23, 42, 0.35) !important;
    font-family: 'Tajawal', sans-serif !important;
    padding: 2.25rem 2rem !important;
    direction: rtl !important;
}

.zm-swal-popup .swal2-title {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 0.75rem !important;
}

.zm-swal-popup .swal2-html-container {
    font-size: 0.98rem !important;
    color: #334155 !important;
    line-height: 1.65 !important;
    margin: 0.75rem 0 1.25rem 0 !important;
}

.zm-swal-popup .swal2-actions {
    margin-top: 1.25rem !important;
    gap: 0.75rem !important;
}

/* ==========================================================================
   High-Contrast Badges & Status Indicators
   ========================================================================== */
.badge {
    font-weight: 700 !important;
    padding: 0.45em 0.85em !important;
    border-radius: 50px !important;
    letter-spacing: 0.2px;
}

.badge.bg-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #065f46 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.badge.bg-info {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: #0e7490 !important;
    border: 1px solid rgba(6, 182, 212, 0.4) !important;
}

.badge.bg-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #92400e !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

.badge.bg-danger {
    background-color: rgba(244, 63, 94, 0.15) !important;
    color: #9f1239 !important;
    border: 1px solid rgba(244, 63, 94, 0.4) !important;
}

.badge.bg-secondary {
    background-color: rgba(100, 116, 139, 0.15) !important;
    color: #334155 !important;
    border: 1px solid rgba(100, 116, 139, 0.4) !important;
}

/* ==========================================================================
   Universal Live Table Fast Search Bar
   ========================================================================== */
.zm-table-search-wrapper {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1.5px solid rgba(226, 232, 240, 0.9);
    position: relative;
    box-sizing: border-box;
}

.zm-table-search-group {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid rgba(203, 213, 225, 0.85);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
    background: #ffffff;
    display: flex;
    align-items: center;
}

.zm-table-search-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 4px 14px rgba(15, 23, 42, 0.06);
}

.zm-table-search-input {
    border: none !important;
    box-shadow: none !important;
    font-size: 0.92rem;
    padding: 0.65rem 0.85rem;
    color: #0f172a;
    background: transparent;
    font-weight: 500;
}

.zm-table-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 400;
}

.zm-table-search-icon {
    background: transparent !important;
    border: none !important;
    color: #2563eb;
    font-size: 0.95rem;
    padding-inline-start: 1rem;
    padding-inline-end: 0.25rem;
}

.zm-table-search-clear {
    background: transparent !important;
    border: none !important;
    color: #94a3b8;
    padding: 0 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.zm-table-search-clear:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.zm-table-search-badge {
    background: transparent !important;
    border: none !important;
    padding-inline-end: 0.85rem;
}

.zm-table-search-badge .badge {
    font-size: 0.78rem;
    font-weight: 700 !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: 20px !important;
    letter-spacing: 0;
}

.zm-table-search-empty-row td {
    background-color: #fafafa !important;
}

/* ==========================================================================
   ZOOM MALL PAGINATION ENGINE
   ========================================================================== */
.zm-pagination-wrapper {
    margin: 0 !important;
    width: 100%;
}

.zm-pagination {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.zm-pagination .page-item {
    margin: 0;
}

.zm-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px !important;
    border: 1px solid var(--zm-border-subtle, #e2e8f0);
    color: var(--zm-text-main, #0f172a);
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.zm-pagination .page-link:hover {
    background: var(--zm-primary-light, #2563eb);
    color: #ffffff !important;
    border-color: var(--zm-primary-light, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.zm-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--zm-primary, #1e3a8a) 0%, var(--zm-primary-light, #2563eb) 100%) !important;
    border-color: var(--zm-primary, #1e3a8a) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.zm-pagination .page-item.disabled .page-link {
    opacity: 0.45;
    background: rgba(241, 245, 249, 0.7);
    color: var(--zm-text-muted, #94a3b8);
    border-color: var(--zm-border-subtle, #e2e8f0);
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.zm-pagination-info {
    font-size: 13px;
    color: var(--zm-text-muted, #64748b);
}

