@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --sidebar-bg: #2c3e50;
    --card-hover: translateY(-5px);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fc;
    overflow-x: hidden;
}

/* تحسين القائمة الجانبية */
.sidebar {
    min-height: 100vh;
    background: var(--sidebar-bg);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: bold;
    border-right: 4px solid #fff;
}
.sidebar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 20px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

/* تحسين البطاقات */
.stat-card {
    border: none;
    border-radius: 15px;
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.15);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}
.stat-card:hover {
    transform: var(--card-hover);
}
.stat-card h3 { font-weight: 700; margin-top: 10px; }
.stat-card .icon-bg {
    position: absolute;
    left: 10px;
    bottom: 10px;
    font-size: 4rem;
    opacity: 0.2;
}

/* ألوان البطاقات المخصصة (Gradients) */
.bg-gradient-primary { background: linear-gradient(45deg, #4e73df, #224abe); }
.bg-gradient-success { background: linear-gradient(45deg, #1cc88a, #13855c); }
.bg-gradient-info    { background: linear-gradient(45deg, #36b9cc, #258391); }
.bg-gradient-warning { background: linear-gradient(45deg, #f6c23e, #dda20a); color: #333; }
.bg-gradient-danger  { background: linear-gradient(45deg, #e74a3b, #be2617); }
.bg-gradient-dark    { background: linear-gradient(45deg, #5a5c69, #373840); }

/* تحسين الجداول */
.table-custom thead {
    background-color: var(--sidebar-bg);
    color: white;
}
.table-custom { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 0 15px rgba(0,0,0,0.05); }