/* Core Design System for EduSaaS */

:root {
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
    margin: 0; padding: 0;
}

body {
    background: var(--dark-bg);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

/* 🖋️ نظام الخطوط الذكي (يدعم النصوص ويحمي الأيقونات) */
body, input, select, textarea, button, .master-input, .sidebar-menu a, .btn-action {
    font-family: 'Cairo', 'Outfit', sans-serif;
}

/* 🛡️ حماية أيقونات FontAwesome من التداخل */
[class*="fa-"], .fas, .far, .fab, .fa, .fa-solid, .fa-regular, .fa-brands {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.fa-brands { font-family: "Font Awesome 6 Brands" !important; }
.fa-regular { font-weight: 400 !important; }

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    right: 0; top: 0;
    border-left: 1px solid var(--glass-border);
    z-index: 2500;
    box-shadow: -10px 0 50px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.sidebar-header {
    font-size: 1.8em; font-weight: 800; color: #fff;
    text-align: center; 
    padding: 35px 20px 20px; /* Top and side padding */
    margin-bottom: 5px;
    font-family: 'Outfit';
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.sidebar-menu-wrapper {
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 10px 0 160px 0; /* Final safe padding booster */
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* 💎 Premium Glowing Sidebar Scrollbar */
.sidebar-menu-wrapper::-webkit-scrollbar {
    width: 6px;
}
.sidebar-menu-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.sidebar-menu-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-color), #4834d4);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}
.sidebar-menu-wrapper:hover::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
}

.sidebar-menu { 
    list-style: none; 
    padding: 10px 15px; 
    margin: 0; 
}

.sidebar-menu a {
    display: flex; 
    align-items: center; 
    gap: 12px;
    padding: 14px 20px; 
    color: rgba(255, 255, 255, 0.6) !important; 
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
    border-radius: 15px !important;
    border: 1px solid transparent !important;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    padding-right: 25px !important;
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(72, 52, 212, 0.4) 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3) !important;
    border: 1px solid var(--glass-border) !important;
    padding-right: 25px !important;
}

/* Top Navbar - Floating Glassmorphism Style */
.top-navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: calc(var(--sidebar-width) + 20px);
    height: 70px;
    background: var(--glass-card);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 2100; /* Higher than sidebar */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-left-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    display: none; /* Hidden on Desktop */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.sidebar-toggle-btn:hover {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.navbar-title {
    margin: 0;
    font-weight: 700;
    color: #fff !important;
    font-size: 1.1rem;
}

.navbar-user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 5px 5px 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
}

.btn-logout-premium {
    background: rgba(231, 76, 60, 0.1);
    color: #ff7675 !important;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(231, 76, 60, 0.2);
    transition: 0.3s;
}

.btn-logout-premium:hover {
    background: #e74c3c;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.main-content {
    margin-right: var(--sidebar-width);
    padding: 130px 30px 30px 30px;
    min-height: 100vh;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 📱 Elite Responsive Engine v4.0 (Hyper-Fluid) */
@media (max-width: 1200px) {
    :root { --sidebar-width: 250px; }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
    }

    body.sidebar-active .sidebar {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Overlay */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(5px);
        z-index: 2400;
        opacity: 0;
        visibility: hidden;
        transition: 0.4s;
    }

    body.sidebar-active .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    .top-navbar {
        right: 15px !important;
        left: 15px !important;
        width: calc(100% - 30px) !important;
        height: 65px;
    }

    .sidebar-toggle-btn {
        display: flex;
    }

    .main-content {
        margin-right: 0 !important;
        padding: 110px 15px 30px 15px !important;
    }

    .user-info-badge span { display: none; }
    .btn-logout-premium span { display: none; }
}

@media (max-width: 576px) {
    .top-navbar {
        padding: 0 10px;
        gap: 5px;
    }

    .navbar-title {
        font-size: 0.9rem;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .theme-selector {
        display: none; /* Hide on very small screens to save space */
    }

    .master-page-header-premium {
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .premium-gradient-text {
        font-size: 1.3rem !important;
    }

    .header-icon-box {
        width: 45px; height: 45px;
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .master-page-header-premium {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        padding: 20px !important;
    }

    .header-actions-section {
        width: 100%;
        justify-content: center !important;
        flex-wrap: wrap;
        padding-bottom: 8px;
        gap: 10px !important;
    }

    .btn-royal {
        padding: 10px 18px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    .premium-gradient-text {
        font-size: 1.5rem !important;
    }

    .master-form-section {
        padding: 25px 15px !important;
        border-radius: 18px !important;
    }

    .form-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .btn-submit-master {
        padding: 18px !important;
        font-size: 1rem !important;
    }
}

.form-group-master {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-label-master {
    color: #94a3b8 !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 5px;
    font-family: 'Outfit', sans-serif;
}

/* Icon Integration */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    right: 20px; /* Aligned to the edge for centered text support */
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    opacity: 0.9; 
    pointer-events: none;
    font-size: 1.4rem; 
    transition: 0.3s;
    z-index: 10;
}

.master-input:focus + .input-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* 🚀 Hyper-Professional Submit Button (Elite v3.0) */
.master-input, input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    border-radius: 18px !important;
    padding: 15px 20px !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 12px rgba(0,0,0,0.3) !important;
    display: block;
    margin: 0;
}

/* Padding adjustment for items with icons - RTL Friendly */
.input-with-icon input, .input-with-icon select {
    padding-right: 60px !important;
    padding-left: 20px !important;
}

select option {
    background-color: #0f172a !important; /* Dark Royal solid background to prevent transparency rendering issues */
    color: #f8fafc !important;
}

.master-input:focus, input:focus, select:focus, textarea:focus {
    background: rgba(0, 0, 0, 0.45) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15), inset 0 2px 4px rgba(0,0,0,0.2) !important;
    outline: none !important;
}

.btn-submit-master {
    background: var(--accent-color) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 22px 30px !important;
    border-radius: 16px !important;
    font-family: 'Cairo', sans-serif;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    width: 100%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(108, 92, 231, 0.4) !important;
}

.btn-submit-master:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.6) !important;
    background: #5b4ae2 !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-primary {
    background: var(--btn-primary) !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 25px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* 👑 Global Royal Button System (Glass Premium v2.0) */
.btn-royal {
    background: rgba(var(--accent-rgb), 0.12) !important;
    color: var(--accent-color) !important;
    padding: 12px 25px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(var(--accent-rgb), 0.25) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    font-family: 'Cairo', sans-serif !important;
    backdrop-filter: blur(10px) !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.btn-royal:hover {
    transform: translateY(-4px) !important;
    background: rgba(var(--accent-rgb), 0.2) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.3) !important;
    color: #fff !important; /* Glow effect on hover */
}

.btn-royal i {
    font-size: 1.1em;
    filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.5));
}

/* DataTables */
.dataTables_wrapper label, .dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate, .dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: var(--text-muted) !important;
}

/* Master Table Design (Glass Row Style) */
.master-table-container {
    background: var(--glass-card);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    overflow: hidden;
    width: 100% !important;
}

.master-table, .master-table * {
    border: none !important;
    border-collapse: separate !important;
}

.master-table thead th {
    background: transparent !important;
    color: var(--text-muted) !important;
    font-size: 0.85em !important;
    text-transform: uppercase;
    padding: 15px 20px !important;
}

.master-table {
    border-spacing: 0 15px !important; /* Elegant Vertical Row Gap */
}

.master-table tbody tr {
    background: transparent !important;
    transition: all 0.4s ease;
}

.master-table tbody td {
    background: rgba(255, 255, 255, 0.05) !important; /* Unified Background for all cells */
    padding: 20px !important;
    color: var(--text-main);
    vertical-align: middle;
}

.master-table tbody td:first-child { 
    border-radius: 0 18px 18px 0 !important; /* Rounded Right Side (Start of RTL row) */
}

.master-table tbody td:last-child { 
    border-radius: 18px 0 0 18px !important; /* Rounded Left Side (End of RTL row) */
}

.master-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.1) !important; /* Highlight whole row */
}

.master-table tbody tr:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* 🚀 Ultimate Glowing Master Icons System (High Visibility v1.4) */
.action-btn-group {
    display: flex !important;
    gap: 15px !important; /* Premium wide spacing as requested */
    justify-content: center !important;
    align-items: center !important;
    padding: 12px 0;
    min-width: 140px;
}

.btn-action {
    padding: 10px 20px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.4s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    white-space: nowrap !important;
    font-weight: 600;
    gap: 10px;
}

.btn-action:hover {
    transform: translateY(-6px) scale(1.18); /* Extreme scale for maximum interaction feedback */
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 30px var(--accent-color) !important; /* MASSIVE SLOW LIGHT UP EFFECT */
    color: #fff !important;
    z-index: 100;
}

.btn-action:active {
    transform: translateY(-2px) scale(0.95);
}

/* Specific Action Colors (Glass Tint) */
.btn-action-view   { color: #60a5fa !important; border-color: rgba(96, 165, 250, 0.2) !important; }
.btn-action-edit   { color: #fbbf24 !important; border-color: rgba(251, 191, 36, 0.2) !important; }
.btn-action-delete { color: #f87171 !important; border-color: rgba(248, 113, 113, 0.2) !important; }
.btn-action-eval   { color: #34e7e4 !important; border-color: rgba(52, 231, 228, 0.2) !important; }

.btn-action-view:hover   { background: #3b82f6 !important; box-shadow: 0 8px 15px rgba(59, 130, 246, 0.4); }
.btn-action-edit:hover   { background: #f59e0b !important; box-shadow: 0 8px 15px rgba(245, 158, 11, 0.4); }
.btn-action-delete:hover { background: #ef4444 !important; box-shadow: 0 8px 15px rgba(239, 68, 68, 0.4); }
.btn-action-eval:hover   { background: #00d8d6 !important; box-shadow: 0 8px 15px rgba(0, 216, 214, 0.4); }

/* Master Header Style */
.master-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.master-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.master-title-icon {
    width: 60px; height: 60px;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5em;
    color: var(--accent-color);
}

/* Theme Switcher Styles */
.theme-selector {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.theme-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

/* Badges & Data Highlights */
.id-badge {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-main) !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    font-family: 'Outfit', monospace !important;
    border: 1px solid var(--glass-border) !important;
    display: inline-block;
}

.username-code {
    color: var(--text-muted) !important;
    opacity: 0.8;
    font-size: 0.9em;
    font-family: 'Outfit';
}

/* Profile Pages & Universal Alignment */
.profile-avatar {
    width: 100px; height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
    border: 3px solid var(--accent-color);
    box-shadow: var(--accent-glow);
}

.profile-label {
    display: block;
    color: var(--text-muted) !important;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: 600;
}

.profile-value {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-main) !important;
}

.note-box {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 15px;
}

/* Attendance Specific Styling */
.att-col-present { background: rgba(46, 204, 113, 0.05) !important; }
.att-col-absent  { background: rgba(231, 76, 60, 0.05) !important; }
.att-col-late    { background: rgba(241, 196, 15, 0.05) !important; }
.att-col-excused { background: rgba(52, 152, 219, 0.05) !important; }

.toggle-group {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 12px;
    display: flex;
    gap: 5px;
    border: 1px solid var(--glass-border);
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
}

.toggle-btn.active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: var(--accent-glow);
}
/* 🌟 Premium Utility Components (Elite v3.5) */
.glass-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: 0.3s;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.glass-checkbox-wrapper:hover {
    background: rgba(var(--accent-rgb), 0.05);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.glass-checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.premium-alert-minimal {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border-right: 3px solid #ef4444;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.4s ease;
}

.section-premium-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.breadcrumb-icon {
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Scrollbar Styling for Glass Containers */
.selection-grid-container::-webkit-scrollbar {
    width: 6px;
}
.selection-grid-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.selection-grid-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.selection-grid-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* 📱 Ultra-Responsive Table-to-Card System (Elite v5.0) */
.table-responsive-wrapper {
    width: 100%;
    margin-bottom: 20px;
    overflow-x: auto;
    border-radius: 25px;
    background: transparent;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for the table wrapper */
.table-responsive-wrapper::-webkit-scrollbar {
    height: 6px;
}
.table-responsive-wrapper::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb), 0.2);
    border-radius: 10px;
}

@media screen and (max-width: 991px) {
    .master-table-premium, .master-table {
        display: block;
        width: 100% !important;
        border-spacing: 0 !important;
    }
    
    .master-table-premium thead, .master-table thead {
        display: none; /* Hide header on mobile */
    }
    
    .master-table-premium tbody, .master-table tbody,
    .master-table-premium tr, .master-table tr,
    .master-table-premium td, .master-table td {
        display: block;
        width: 100%;
    }
    
    .master-table-premium tr, .master-table tr {
        margin-bottom: 25px;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 25px !important;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        transform: none !important; /* Disable hover lift on mobile to keep it stable */
    }
    
    .master-table-premium td, .master-table td {
        text-align: left !important; /* Re-align for label:value pattern */
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 0 !important;
        min-height: 50px;
        background: transparent !important;
    }
    
    .master-table-premium td:last-child, .master-table td:last-child {
        border-bottom: none !important;
    }
    
    /* Injecting the label using data-label attribute */
    .master-table-premium td[data-label]::before, .master-table td[data-label]::before {
        content: attr(data-label);
        font-weight: 800;
        color: var(--accent-color);
        font-size: 0.85rem;
        text-transform: uppercase;
        margin-left: 15px; /* Spacing for RTL */
        flex-shrink: 0;
    }
    
    /* Action group adjustment for mobile */
    .action-btn-group {
        width: 100%;
        justify-content: flex-end !important;
        padding-top: 10px;
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .btn-action {
        padding: 8px 15px !important;
        font-size: 0.8rem !important;
    }
}
