/* Modern Dashboard Styles */
:root {
    --modern-bg: #f8fafc;
    --modern-card-bg: rgba(255, 255, 255, 0.9);
    --modern-primary: #6366f1;
    --modern-success: #10b981;
    --modern-warning: #f59e0b;
    --modern-danger: #ef4444;
    --modern-info: #3b82f6;
    --modern-secondary: #ec4899;
    --modern-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --modern-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --modern-glow: 0 0 15px rgba(99, 102, 241, 0.3);
    --modern-border-radius: 24px;
}

/* ==========================================================================
   VAN POINT LUXURY LOGO DESIGN
   ========================================================================== */

.side-bar-logo {
    height: 110px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 25px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    background: linear-gradient(to bottom, #ffffff, #fcfcfc);
    position: relative;
    overflow: hidden;
}

.van-point-luxury-logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.van-point-luxury-logo:hover {
    transform: scale(1.08);
}

.vp-logo-box {
    width: 48px;
    height: 48px;
    background: #0f172a;
    border: 2px solid #ff4757;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
    transform: rotate(-5deg);
    transition: all 0.4s ease;
}

.van-point-luxury-logo:hover .vp-logo-box {
    transform: rotate(0deg) scale(1.1);
    background: #000;
    box-shadow: 0 15px 30px rgba(255, 71, 87, 0.2);
}

.vp-v,
.vp-p {
    color: white;
    font-size: 20px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    position: absolute;
}

.vp-v {
    top: 5px;
    left: 8px;
}

.vp-p {
    bottom: 5px;
    right: 8px;
    color: #ff4757;
}

.vp-text-box {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.vp-van {
    font-size: 14px;
    font-weight: 300;
    color: #475569;
    letter-spacing: 4px;
    margin-bottom: 2px;
}

.vp-point {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -1px;
    font-family: 'Outfit', sans-serif;
}

/* Base Styles */
body {
    background: #f1f5f9;
}

/* Glassmorphism 2.0 - Elite Premium Design */
.modern-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--modern-border-radius);
    padding: 32px 28px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Luxury Light Spot Effect */
.modern-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--dot-color, rgba(99, 102, 241, 0.15)) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.6s ease;
}

/* Floating Abstract Shape */
.modern-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    filter: blur(10px);
    transition: all 0.8s ease;
}

.modern-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.15),
        0 18px 36px -18px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
}

.modern-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.modern-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.modern-card:hover .modern-icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Elite Luxury Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #6366f1;
    --dot-color: rgba(99, 102, 241, 0.3);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #10b981;
    --dot-color: rgba(16, 185, 129, 0.3);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #f59e0b;
    --dot-color: rgba(245, 158, 11, 0.3);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ef4444;
    --dot-color: rgba(239, 68, 68, 0.3);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #3b82f6;
    --dot-color: rgba(59, 130, 246, 0.3);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #ec4899;
    --dot-color: rgba(236, 72, 153, 0.3);
}

.bg-gradient-primary i,
.bg-gradient-success i,
.bg-gradient-warning i,
.bg-gradient-danger i,
.bg-gradient-info i,
.bg-gradient-secondary i {
    color: white;
}

.modern-stat-info h5 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 0;
    letter-spacing: -1px;
    color: #0f172a;
    line-height: 1;
}

.modern-stat-info p {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* RTL Adjustments */
html[dir="rtl"] .modern-stat-card {
    text-align: right;
}

html[dir="rtl"] .modern-icon-box {
    margin-left: 0;
    margin-right: 0;
}

/* ==========================================================================
   ULTRA-PREMIUM GLASS HEADER (REVOLUTIONARY DESIGN)
   ========================================================================== */

.main-header-section.modern-header {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(30px) saturate(210%);
    -webkit-backdrop-filter: blur(30px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.08),
        inset 0 0 25px rgba(255, 255, 255, 0.5);
    padding: 12px 35px;
    margin: 25px auto;
    border-radius: 40px;
    width: 96%;
    position: relative;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1100;
}

.main-header-section.modern-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 2.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), transparent, rgba(255, 255, 255, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.header-wrapper.modern-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.header-left.modern-left,
.header-right.modern-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Animated Interactive Buttons (Squircle Style) */
.modern-btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #334155;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.modern-btn-circle:hover {
    transform: translateY(-6px) rotate(5deg) scale(1.05);
    background: #fff;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.28);
    color: var(--modern-primary);
}

/* Website Globe Button - Elite Style */
.modern-view-site {
    background: linear-gradient(135deg, #ff4757 0%, #ee5253 100%);
    color: white !important;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 15px 30px -5px rgba(255, 71, 87, 0.4);
    border: none;
    position: relative;
}

.modern-view-site:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 25px 50px -10px rgba(255, 71, 87, 0.5);
}

.modern-view-site i {
    font-size: 22px;
    animation: rotateGlobe 12s linear infinite;
}

@keyframes rotateGlobe {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Modern Language Pills - Progressive Design */
.modern-language-pills {
    display: flex;
    background: rgba(255, 255, 255, 0.6);
    padding: 5px;
    border-radius: 16px;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.lang-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.lang-pill img {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    object-fit: cover;
    filter: grayscale(40%);
    transition: all 0.4s ease;
}

.lang-pill span {
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
}

.lang-pill:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.lang-pill.active {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lang-pill.active img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.lang-pill.active span {
    color: #ff4757;
}

.modern-profile-avatar {
    width: 65px;
    height: 65px;
    border-radius: 22px;
    border: 4px solid white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 5px;
    background: white;
    object-fit: cover;
}

.modern-profile-avatar:hover {
    transform: scale(1.25) rotate(-6deg) translateY(-5px);
    box-shadow: 0 25px 55px rgba(99, 102, 241, 0.4);
}

/* Dropdown Menu - Luxury Style */
.modern-dropdown-menu {
    border: none !important;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1) !important;
    border-radius: 20px !important;
    padding: 12px !important;
    margin-top: 5px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    animation: slideUpFade 0.4s ease;
}

.modern-dropdown-menu.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
    transform-origin: top right;
}

[dir="rtl"] .modern-dropdown-menu.dropdown-menu-end {
    left: 0 !important;
    right: auto !important;
    transform-origin: top left;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-dropdown-menu .dropdown-item {
    border-radius: 18px;
    padding: 16px 28px !important;
    font-weight: 800;
    color: #334155;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.modern-dropdown-menu .dropdown-item:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    color: var(--modern-primary) !important;
    transform: translateX(10px) scale(1.05);
}

/* Base Responsive Grid Adjustments */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 35px;
}

@media (max-width: 1200px) {
    .modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modern-grid {
        grid-template-columns: 1fr;
    }

    .main-header-section.modern-header {
        width: 92%;
        padding: 10px 15px;
    }
}

/* ==========================================================================
   MINIMALIST LUXURY BUSINESS LIST
   ========================================================================== */

.modern-table-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    padding: 30px !important;
    margin-top: 20px;
    overflow: hidden;
}

.modern-table-card .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px !important;
    margin-bottom: 35px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

#datatable {
    width: 100% !important;
    border-collapse: collapse !important;
}

#datatable thead th {
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    padding: 18px 20px !important;
    text-align: center !important;
}

.modern-business-row td {
    padding: 18px 20px !important;
    vertical-align: middle !important;
    color: #334155 !important;
    background: transparent !important;
    font-size: 14px;
    text-align: center !important;
}

/* Red Expiry Date */
.expiry-date-red {
    color: #ff4757 !important;
    font-weight: 800 !important;
}

/* Creative & Modern Add Button */
.add-order-btn {
    background: linear-gradient(135deg, #ff4757 0%, #ee5253 100%) !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 16px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-family: 'Tajawal', sans-serif !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none !important;
    box-shadow: 0 10px 25px -5px rgba(255, 71, 87, 0.4) !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.add-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.add-order-btn:hover::before {
    left: 100%;
}

.add-order-btn:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 20px 35px -8px rgba(99, 102, 241, 0.5) !important;
    color: white !important;
}

.add-order-btn i {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Modern Status & Plan Labels - Restored & Enhanced */
.plan-label {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

/* Status Active - Glowing LED */
.status-active {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.status-active::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: statusPulseGlow 2s infinite;
}

/* Status Suspended - Muted LED */
.status-suspended {
    background: #fff1f2;
    color: #e11d48;
    border-color: #fecdd3;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.08);
}

.status-suspended::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #f43f5e;
    border-radius: 50%;
    opacity: 0.5;
}

@keyframes statusPulseGlow {
    0% {
        transform: scale(0.9);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        transform: scale(1.1);
        opacity: 0.8;
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.9);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}