:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --sidebar-width: 260px;
    --sidebar-bg: #1e293b;
}

body {
    font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
    color: #334155;
    background-color: #f8fafc;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--sidebar-bg) !important;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar .nav-link {
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 500;
    transition: all 0.2s;
    color: #cbd5e1 !important;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.sidebar .nav-link.active {
    background-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.main-content {
    background-color: #f1f5f9;
    min-width: 0;
}

.card {
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.stat-card {
    border-left: 4px solid var(--primary);
}
body.rtl .stat-card {
    border-left: none;
    border-right: 4px solid var(--primary);
}

.btn {
    border-radius: 8px;
}

.badge {
    border-radius: 6px;
    padding: 5px 8px;
    font-weight: 600;
}

/* Anti-Screenshot, Anti-Copy & Content Protection */
body, .main-content, .card, table, p, span, h1, h2, h3, h4, h5, h6, img, a {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

input, textarea, select {
    -webkit-user-select: auto !important;
    user-select: auto !important;
}

/* Hide Everything on Print */
@media print {
    html, body, .wrapper, .main-content, .card {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Privacy Blur Shield on Screen Capture / App Switch */
body.screen-protected .main-content,
body.screen-protected .auth-wrapper {
    filter: blur(30px) grayscale(1) !important;
    opacity: 0.2 !important;
    pointer-events: none !important;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
    }
    body.rtl .sidebar {
        left: auto;
        right: -100%;
    }
    .sidebar.show {
        left: 0;
    }
    body.rtl .sidebar.show {
        right: 0;
    }
}