/* تنسيقات عامة */
@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
}

/* ترويسة الصفحة */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* البطاقات */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: calc(0.5rem - 1px) calc(0.5rem - 1px) 0 0;
    font-weight: bold;
}

/* النماذج */
.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #8bbafe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* الأزرار */
.btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* أنماط لصفحة تفاصيل التذاكر */
.comment {
    transition: all 0.3s ease;
}

.comment:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* أنماط للوحة التحكم */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* أنماط للجداول */
.table {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* أنماط للشارات */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* أنماط لعنصر التحميل */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* أنماط للتذييل */
footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    background-color: #343a40;
    color: #fff;
}

/* أنماط التنقل */
.pagination .page-link {
    color: #0d6efd;
    background-color: #fff;
    border: 1px solid #dee2e6;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* أنماط للتنبيهات */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* أنماط للقائمة المنسدلة */
.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* أنماط للشاشات الصغيرة */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* أنماط للإشعارات */
.notification-dropdown {
    max-width: 300px;
}

.notification-dropdown .dropdown-item {
    white-space: normal;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
}

.notification-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.notification-dropdown .unread {
    background-color: rgba(13, 110, 253, 0.1);
}

/* الاتجاه من اليمين إلى اليسار */
.rtl {
    direction: rtl;
    text-align: right;
}

/* تخصيص الفئات */
.category-badge {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

/* أنماط قفل الشاشة */
#screen-lock-overlay .lock-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
}

#screen-lock-overlay .lock-icon {
    margin-bottom: 20px;
}

#screen-lock-overlay .pin-input-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#screen-lock-overlay #pin-input {
    padding: 10px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 5px;
    border-radius: 5px;
    border: none;
}

#screen-lock-overlay #unlock-btn {
    padding: 10px;
}
