/* نمط عام للنظام */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding-bottom: 70px; /* مساحة للتذييل */
}

/* ألوان العلامات والأزرار */
.badge {
    font-size: 0.8rem;
    padding: 0.4em 0.6em;
}

/* تخصيص الجداول */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* تخصيص البطاقات */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* أيقونات البطاقات */
.card-icon {
    font-size: 2.5rem;
    color: #007bff;
}

/* أنماط لوحة المعلومات */
.dashboard-stat {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.dashboard-stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.dashboard-stat p {
    font-size: 1rem;
    margin-top: 5px;
    opacity: 0.8;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.bg-success-gradient {
    background: linear-gradient(135deg, #28a745 0%, #208838 100%);
}

.bg-warning-gradient {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%);
}

.bg-danger-gradient {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}

/* تخصيص النموذج */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* قائمة التنقل الجانبية */
.sidebar {
    height: 100%;
    min-height: calc(100vh - 60px);
    padding: 20px 0;
    background-color: #343a40;
}

.sidebar .nav-link {
    color: #f8f9fa;
    padding: 10px 20px;
    margin-bottom: 5px;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    background-color: #007bff;
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

/* أنماط الصفحة الشخصية */
.profile-header {
    background-color: #007bff;
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
}

.profile-details {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
}

/* أنماط جدول الحضور */
.attendance-calendar .table th, .attendance-calendar .table td {
    text-align: center;
    vertical-align: middle;
}

.attendance-present {
    background-color: rgba(40, 167, 69, 0.2);
}

.attendance-absent {
    background-color: rgba(220, 53, 69, 0.2);
}

.attendance-leave {
    background-color: rgba(255, 193, 7, 0.2);
}

.attendance-holiday {
    background-color: rgba(108, 117, 125, 0.2);
}

/* ناقلة الإشعارات */
.notification-dropdown {
    min-width: 300px;
    padding: 0;
}

.notification-dropdown .dropdown-item {
    white-space: normal;
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
}

.notification-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

/* أزرار الإجراءات */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* توافق الجوال */
@media (max-width: 768px) {
    .profile-header {
        text-align: center;
    }
    
    .profile-img {
        margin-bottom: 20px;
    }
    
    .dashboard-stat {
        margin-bottom: 15px;
    }
}