/* ===================================
   تنسيقات قسم الحوكمة
   Governance Section Styling
   =================================== */

/* تأثيرات الانتقال */
.transition {
    transition: all 0.3s ease-in-out;
}

/* تأثير الظل عند المرور */
.hover-shadow {
    transition: box-shadow 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-3px);
}

/* تنسيق البطاقات الرئيسية */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* تنسيق الروابط في القوائم */
.list-group-item-action {
    transition: all 0.2s ease-in-out;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    padding-right: 1.5rem;
}

/* تنسيق الشارات */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.badge.rounded-pill {
    padding: 0.5em 1em;
}

/* تنسيق الأيقونات */
.bi {
    vertical-align: middle;
}

/* تنسيق الأزرار */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb000 100%);
    border: none;
}

/* تنسيق عناوين الصفحات */
.display-5, .display-6 {
    font-weight: 700;
    color: #212529;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* تنسيق الحاويات الفارغة */
.text-center .bi-inbox {
    opacity: 0.3;
    font-size: 4rem !important;
}

/* تنسيق أيقونات الملفات */
.bi-file-earmark-pdf {
    color: #dc3545 !important;
}

.bi-file-earmark-word {
    color: #0d6efd !important;
}

.bi-file-earmark-excel {
    color: #198754 !important;
}

.bi-file-earmark-image {
    color: #0dcaf0 !important;
}

/* تنسيق قوائم المرفقات */
.list-group-item {
    border-color: #e9ecef;
}

.list-group-flush .list-group-item:hover {
    background-color: #f8f9fa;
}

/* تنسيق النصوص */
.text-muted {
    color: #6c757d !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* تنسيق الروابط */
a {
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0a58ca;
}

/* تنسيق الفواصل */
.card-header {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
}

/* استجابة للأجهزة الصغيرة */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hover-shadow:hover {
        transform: none;
    }
}

/* تنسيق نموذج الشكاوى */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* تنسيق الرسائل */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* تنسيق محادثات التذاكر */
.bg-light {
    background-color: #f8f9fa !important;
}

/* تأثيرات التمرير */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* تحسين المسافات */
.p-4 {
    padding: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* تنسيق بطاقات الإحصائيات */
.row.g-3 .card {
    transition: all 0.3s ease;
}

.row.g-3 .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* تنسيق Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
}

.breadcrumb-item a:hover {
    color: #ffffff;
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "‹";
    font-size: 1.2em;
    color: #ffffff;
    opacity: 0.6;
}

/* تنسيق إشعارات النجاح */
.alert i.bi {
    font-size: 1.5rem;
}

/* تنسيق حقول الإدخال في عرض التذكرة */
input[readonly].form-control {
    background-color: #f8f9fa;
    cursor: pointer;
}

input[readonly].form-control:focus {
    background-color: #e9ecef;
}

/* تحسين قائمة الرسائل في التذاكر */
.card-body .border.rounded {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* تحسين الدوائر في الإصدارات */
.bg-primary.rounded-circle {
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* تحسين أيقونات الملفات الكبيرة */
.bi.fs-2 {
    transition: transform 0.2s ease;
}

.list-group-item:hover .bi.fs-2 {
    transform: scale(1.1);
}

/* تحسين الأزرار في المرفقات */
.btn-primary, .btn-success {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* تنسيق إضافي للعناوين */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

/* تحسين النصوص العربية */
body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.8;
}

/* تنسيق خاص للرسائل الفارغة */
.text-center .opacity-50 {
    opacity: 0.25 !important;
}

