:root {
    --primary-color: #0d6efd;
    --sidebar-width: 280px;
    --sidebar-bg: #1c2331;
    --body-bg: #f4f6f9;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--body-bg);
}

/* Sidebar Styling */
.sidebar-wrapper {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg) !important;
    transition: all 0.3s;
    z-index: 1040;
    overflow-y: auto;
    overflow-x: hidden;
}

.dashboard-nav .nav-link {
    border-radius: 8px;
    padding: 10px 15px;
    opacity: 0.85;
    transition: all 0.2s;
}

.dashboard-nav .nav-link:hover, .dashboard-nav .nav-link.active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.dashboard-nav .nav-link.active {
    border-right: 4px solid var(--primary-color);
}

/* Content Area */
.content-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Responsive Overrides */
@media (min-width: 768px) {
    .sidebar-wrapper {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0; /* RTL right */
        height: 100vh;
        overflow-y: auto !important;
    }
    .content-wrapper {
        margin-right: var(--sidebar-width); /* Push content to left */
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .content-wrapper {
        margin-top: 56px; /* Space for mobile navbar */
    }
}

/* Generic Card Enhancements */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid var(--body-bg);
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
}
