:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fc;
}

/* تخصيص الشريط العلوي */
.navbar {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* بطاقات الإحصائيات */
.stat-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.stat-card .icon {
    font-size: 2.5rem;
    opacity: 0.7;
}

/* الأزرار */
.btn {
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #224abe);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #17a673);
    border: none;
}

/* الجداول */
.table thead th {
    background-color: #f8f9fc;
    border-bottom: 2px solid #e3e6f0;
    color: #4e73df;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

/* النماذج */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d1d3e2;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* صفحة تسجيل الدخول */
.login-page {
    background: linear-gradient(135deg, var(--primary-color), #224abe);
    min-height: 100vh;
}

.login-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.login-card .card-header {
    background: transparent;
    border-bottom: none;
    text-align: center;
    padding-top: 2rem;
}

.login-card .card-header h3 {
    color: var(--primary-color);
    font-weight: 700;
}

/* حالة المهام */
.status-badge {
    padding: 0.35rem 0.65rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-in_progress {
    background-color: #cce5ff;
    color: #004085;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* البحث المتقدم */
.search-box {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* الطباعة */
@media print {
    .no-print, .navbar, .btn, .datatable-controls {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* تأثيرات حركية */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تخصيص scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #224abe;
}