@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@mdi/font@7.2.96/css/materialdesignicons.min.css');

:root {
    /* iOS 26 Dark Mode Palette */
    --ios-primary: #007AFF; /* System Blue (Accent Color) */
    --ios-secondary: #34C759; /* System Green */
    
    /* Deep Dark Palette (True Dark Mode Black) */
    --dark-bg-deep: #121212; /* خلفية سوداء عميقة */
    --dark-bg-medium: #1C1C1E; /* خلفية البطاقات/الشريط الجانبي */
    --dark-bg-light: #2C2C2E; /* لون الإدخالات */

    /* Ultra-Blur Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.08); /* شفافية فاتحة جداً */
    --glass-border: 1px solid rgba(255, 255, 255, 0.15); /* حدود ناعمة */
    /* 3D Shadow - Layered for depth (ظل أعمق وأكثر تحديداً) */
    --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;

    /* Text */
    --text-primary: #FFFFFF; /* نص رئيسي أبيض نقي */
    --text-secondary: #A0A0A0; /* نص ثانوي رمادي فاتح */
    --sidebar-width: 300px;

    /* Subtle iOS Glow/Shadow */
    --ios-shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.2);
    --ios-accent-shadow: 0 5px 20px rgba(0, 122, 255, 0.5); /* ظل ناعم للون الأزرق */
    
    /* Status Colors (Using iOS System Colors) */
    --success-color: #34C759; 
    --danger-color: #FF3B30; 
    --warning-color: #FFCC00; 
    --info-color: #5856D6; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    /* خلفية داكنة موحدة بسيطة */
    background: var(--dark-bg-deep); 
    min-height: 100vh;
    color: var(--text-primary);
    direction: rtl;
    overflow-x: hidden;
    /* 3D Container setup for perspective */
    perspective: 1000px;
}

/* Glass Effect - Ultra-Blur (Frosted Glass) */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(30px); /* تمويه قوي جداً */
    -webkit-backdrop-filter: blur(30px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 18px; /* حواف مستديرة كبيرة */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Sidebar - iOS Style */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--dark-bg-medium);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    transform: translateX(calc(100% - 80px));
}

.sidebar.collapsed .sidebar-header h2,
.sidebar.collapsed .nav-item span {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sidebar.collapsed .nav-item {
    padding: 1rem;
    justify-content: center;
    width: 80px;
}

.sidebar.collapsed .nav-item i {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-primary);
    opacity: 1;
}

.sidebar.collapsed .nav-item:hover i {
    transform: scale(1.1);
    color: var(--ios-primary);
}

.sidebar.collapsed .nav-item.active i {
    color: var(--ios-primary);
}

.sidebar-toggle {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-toggle:hover {
    transform: rotate(180deg) scale(1.1);
}

.sidebar-header {
    padding: 0 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 2rem; /* عنوان ضخم (Large Title Style) */
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px; /* تباعد سلبي لتحسين القراءة */
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 2.5rem;
    margin: 0.5rem 1rem;
    border-radius: 12px; /* استدارة داخلية */
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.05rem;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    /* تم تعزيز شفافية الزجاج الداخلي للتماشي مع الثيم */
    background: rgba(0, 122, 255, 0.10); 
    color: var(--ios-primary);
    font-weight: 700;
    /* 3D Highlight for Active Item - Enhanced */
    box-shadow: inset 0 0 8px rgba(0, 122, 255, 0.4);
}

.nav-item i {
    font-size: 1.6rem;
    margin-left: 1.2rem;
    width: 30px;
    text-align: center;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-item.active i {
    color: var(--ios-primary);
}

/* Main Content */
.main-content {
    margin-right: var(--sidebar-width);
    padding: 3rem;
}

/* Dashboard Stats - Clean Look */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    padding: 1.8rem;
    display: flex;
    align-items: center;
    /* Added perspective for individual card 3D effect */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.stat-icon {
    background: rgba(0, 122, 255, 0.15);
    width: 60px; 
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    border-radius: inherit;
}

.stat-icon i {
    font-size: 2.2rem;
    color: var(--ios-primary);
    text-shadow: 0 0 10px rgba(0, 122, 255, 0.8);
    z-index: 1;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(0, 122, 255, 0.8);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 15px rgba(0, 122, 255, 1);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(0, 122, 255, 0.8);
    }
}

.stat-info h3 {
    font-size: 0.9rem; 
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.stat-info p {
    font-size: 2.2rem; /* قيمة جريئة */
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

/* Forms - Clean Input */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--dark-bg-light);
    border: 1px solid var(--dark-bg-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    background: var(--dark-bg-medium);
    border-color: var(--ios-primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3), 0 0 10px rgba(0, 122, 255, 0.1);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.payment-details {
    margin: 1.5rem 0;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-row label {
    width: 120px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-row span {
    flex: 1;
    color: var(--text-primary);
}

.detail-row .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.detail-row .status-badge i {
    font-size: 1.1em;
}

.detail-row .status-badge.pending {
    background: rgba(255, 204, 0, 0.2);
    color: var(--warning-color);
}

.detail-row .status-badge.completed {
    background: rgba(52, 199, 89, 0.2);
    color: var(--success-color);
}

.detail-row .status-badge.failed {
    background: rgba(255, 59, 48, 0.2);
    color: var(--danger-color);
}

/* Toast Notifications */
.notifications-container {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: var(--dark-bg-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    pointer-events: all;
    min-width: 300px;
    backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-right: 4px solid var(--success-color);
}

.toast.error {
    border-right: 4px solid var(--danger-color);
}

.toast i {
    font-size: 1.5rem;
}

.toast.success i {
    color: var(--success-color);
}

.toast.error i {
    color: var(--danger-color);
}

.toast span {
    color: var(--text-primary);
    font-weight: 500;
}

.toast i {
    font-size: 1.5rem;
}

/* Buttons - System Blue (Slight 3D Press Effect) */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: 'Tajawal', sans-serif;
}

.btn i {
    margin-left: 0.75rem;
    font-size: 1.1em;
}

.btn-primary {
    background: var(--ios-primary);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 4px 0 #0053B3; /* ظل سفلي محدد */
    transform: translateY(0);
}

.btn-primary:hover {
    background: #006EDC; /* أغمق قليلاً عند التحويم */
    transform: translateY(-2px); /* ارتفاع بسيط */
    box-shadow: 0 6px 0 #0053B3, 0 8px 15px rgba(0, 122, 255, 0.5); /* ظل مرتفع وأكثر انتشاراً */
}

.btn-primary:active {
    transform: translateY(4px); /* انخفاض عند الضغط لمحاكاة الضغط 3D */
    box-shadow: 0 0 0 #0053B3;
}

/* Tables - Clean and Minimal */
.table-container {
    border-radius: 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: var(--glass-border);
    margin: 1rem 0;
}

.table-responsive {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    border-radius: inherit;
}

.table-fixed {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.table-fixed thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--dark-bg-medium);
}

.table-fixed th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1rem;
}

.table-fixed td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    overflow: visible; /* تغيير overflow لدعم القوائم المنسدلة */
}

.table-fixed td.text-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* تنسيق حاوية المعرف وزر النسخ */
.id-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.user-id-wrapper {
    position: relative;
    cursor: pointer;
}

.user-id {
    font-family: monospace;
    color: var(--text-secondary);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
}

.user-id-wrapper:hover .user-id {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.id-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--dark-bg-medium);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    white-space: nowrap;
    z-index: 100;
    font-family: monospace;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-id-wrapper:hover .id-tooltip {
    display: flex;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* تحسين عرض القائمة المنسدلة */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.actions-menu {
    position: absolute;
    left: 0;
    top: 100%;
    background: var(--dark-bg-medium);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.actions-dropdown.show .actions-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.actions-menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.actions-menu a i {
    margin-left: 0.8rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.actions-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.actions-menu .divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.table-fixed tbody tr {
    transition: background-color 0.2s ease;
}

.table-fixed tbody tr:hover {
    background: rgba(0, 122, 255, 0.05);
}

/* Actions Dropdown Styling */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.actions-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 200px;
    background: var(--dark-bg-medium);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0.5rem 0;
}

.actions-dropdown.show .actions-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

.actions-menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.actions-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.actions-menu a i {
    margin-left: 0.8rem;
    font-size: 1.1rem;
}

.actions-menu .divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.text-center {
    text-align: center;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Badges - System Colors */
.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 8px; /* حواف أكثر نظامية */
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.badge i {
    margin-left: 0.5rem;
    font-size: 1.1em;
}

.badge-success {
    background: rgba(52, 199, 89, 0.2);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(255, 204, 0, 0.2);
    color: var(--warning-color);
}

.badge-danger {
    background: rgba(255, 59, 48, 0.2);
    color: var(--danger-color);
}

/* Page Headers - Large Title */
.page-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    font-size: 2.8rem; /* عنوان كبير جداً */
    font-weight: 900;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    letter-spacing: -1.5px;
}

.page-title i {
    margin-left: 1.2rem;
    font-size: 3rem;
    color: var(--ios-primary);
}

/* Search Form */
.search-form {
    position: relative;
    max-width: 350px;
}

.search-form input {
    padding-right: 3rem;
}

.search-form i {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-content {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        padding: 1.5rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
}

/* Custom Scrollbar - System Look */
::-webkit-scrollbar {
    width: 8px; /* أنحف */
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg-medium);
}

::-webkit-scrollbar-thumb {
    background: var(--ios-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #006EDC;
}

/* =======================
   تحسين عرض جدول المستخدمين
   ======================= */

.main-content {
    margin-right: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
    background: var(--dark-bg-deep);
}

.table-container {
    width: 100%;
    border-radius: 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    margin: 2rem 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.table th, 
.table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.table thead {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-secondary);
}

.table tbody tr:hover {
    background: rgba(0, 122, 255, 0.08);
    transition: background 0.3s ease;
}

/* Selected row highlight for orders table */
.selected-row {
    background: rgba(0, 122, 255, 0.14) !important;
    box-shadow: inset 0 0 0 1px rgba(0,122,255,0.08);
}

/* Toolbar above table for bulk actions */
.table-toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.table-toolbar .select {
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    background: var(--dark-bg-light);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.03);
}

/* Custom radio button styling */
.custom-radio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 2px;
}

.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    background: var(--dark-bg-light);
}

.custom-radio:hover .radio-mark {
    border-color: var(--ios-primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.custom-radio input[type="radio"]:checked + .radio-mark {
    border-color: var(--ios-primary);
    background: var(--dark-bg-light);
}

.custom-radio input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ios-primary);
    animation: radioScale 0.2s ease;
}

@keyframes radioScale {
    0% { transform: translate(-50%, -50%) scale(0); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* تحسين التوافق مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .main-content {
        margin-right: 0;
        padding: 1rem;
    }
}

/* Status picker (floating) */
.status-picker {
    border-radius: 12px;
    padding: 0.75rem;
    min-width: 260px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-picker .sp-title {
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.status-picker .sp-actions {
    display: flex;
    gap: 0.5rem;
}

.status-picker .sp-btn {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-picker .sp-accept {
    background: linear-gradient(180deg, rgba(52,199,89,0.9), rgba(34,150,66,0.95));
    color: #fff;
}

.status-picker .sp-wait {
    background: linear-gradient(180deg, rgba(255,204,0,0.95), rgba(230,180,0,0.95));
    color: #0a0a0a;
}

.status-picker .sp-reject {
    background: linear-gradient(180deg, rgba(255,59,48,0.95), rgba(200,40,30,0.95));
    color: #fff;
}

.status-picker .sp-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}
*** End Patch
