﻿/* تنسيقات مخصصة لنظام إدارة السجون */

/* تنسيق عام */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* تنسيق البطاقات */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card-header {
    border-bottom: 1px solid #e3e6f0;
    background-color: #fff;
}

/* تنسيق الأزرار */
.btn {
    border-radius: 0.35rem;
    font-weight: 500;
}

/* تنسيق الجداول */
.table {
    border-radius: 0.35rem;
    overflow: hidden;
}

    .table th {
        background-color: #4e73df;
        color: white;
        font-weight: 600;
        border: none;
    }

/* تنسيق التنبيهات */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* تنسيق الإحصائيات */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

/* تنسيق الأيقونات */
.bi {
    line-height: 1;
}

/* تنسيق متجاوب للجدول */
.table-responsive {
    border-radius: 0.35rem;
}

/* تنسيق الشريط العلوي */
.navbar-brand {
    font-size: 1.5rem;
}

/* تنسيق للأجهزة الصغيرة */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card-body {
        padding: 1rem;
    }

    .btn-block {
        width: 100%;
    }
}

/* تنسيق للوضع الداكن (يمكن إضافته لاحقاً) */
@media (prefers-color-scheme: dark) {
    /* سيتم إضافة التنسيقات لاحقاً */
}

/* تنسيق حقل كلمة المرور */
.password-toggle {
    cursor: pointer;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
}

/* تنسيق الحقول في النماذج */
.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}
/* تنسيقات خاصة بصفحة السجون */

/* بطاقات الإحصائيات */
.border-start-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-start-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-start-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-start-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

/* أزرار بأيقونات */
.btn-icon-split {
    padding: 0;
    overflow: hidden;
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
}

    .btn-icon-split .icon {
        background: rgba(0, 0, 0, 0.15);
        display: inline-block;
        padding: 0.375rem 0.75rem;
    }

    .btn-icon-split .text {
        display: inline-block;
        padding: 0.375rem 0.75rem;
    }

/* تنسيق الجداول */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.table th {
    border-bottom: 2px solid #4e73df;
    font-weight: 600;
}

/* شريط التقدم */
.progress {
    border-radius: 10px;
    background-color: #eaecf4;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* حالة فارغة */
.empty-state {
    padding: 3rem 1rem;
}

    .empty-state .display-1 {
        font-size: 5rem;
    }

/* تنسيق الترقيم */
.pagination .page-item.active .page-link {
    background-color: #4e73df;
    border-color: #4e73df;
}

.pagination .page-link {
    color: #4e73df;
    border: 1px solid #ddd;
}

    .pagination .page-link:hover {
        background-color: #e9ecef;
        border-color: #ddd;
    }

/* تنسيق البطاقات */
.card {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: 1px solid #e3e6f0;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* تنسيق الأزرار في الجداول */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
}

/* تنسيق للأجهزة الصغيرة */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-group-sm > .btn {
        padding: 0.2rem 0.4rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* تأثيرات hover للبطاقات */
.card:hover {
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
    transition: all 0.3s ease;
}

/* تنسيق الحقول في النماذج */
.form-control:focus, .form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* تنسيق البادجات */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}
/* تنسيقات خاصة بصفحة الإضافة */

/* تنسيق النموذج */
.needs-validation .form-control:valid,
.needs-validation .form-select:valid {
    border-color: #1cc88a;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%231cc88a' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.needs-validation .form-control:invalid,
.needs-validation .form-select:invalid {
    border-color: #e74a3b;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e74a3b'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v2'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* تنسيق المفتاح التبديل */
.form-switch .form-check-input:checked {
    background-color: #1cc88a;
    border-color: #1cc88a;
}

.form-switch .form-check-input:focus {
    border-color: #1cc88a;
    box-shadow: 0 0 0 0.2rem rgba(28, 200, 138, 0.25);
}

/* تنسيق البطاقات الإضافية */
.card.bg-light {
    background-color: #f8f9fc !important;
}

/* تنسيق الحقول مع الأيقونات */
.form-label i {
    width: 20px;
}

/* تأثيرات hover للبطاقات */
.card:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* تنسيق مربعات المعلومات */
.border.rounded {
    transition: all 0.3s ease;
}

    .border.rounded:hover {
        background-color: #f8f9fa !important;
        border-color: #4e73df !important;
    }

/* تنسيق النصائح */
.list-unstyled li {
    transition: all 0.3s ease;
}

    .list-unstyled li:hover {
        transform: translateX(5px);
    }

/* تنسيق الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 1rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

        .d-flex.justify-content-between .btn {
            width: 100%;
        }
}

/* تنسيق خاص لعناصر النموذج */
.input-group-text {
    background-color: #eaecf4;
    border-color: #d1d3e2;
}

.form-text {
    font-size: 0.8rem;
    color: #6e707e;
}

/* تنسيق الحقول عند التركيز */
.form-control:focus,
.form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* تنسيق البادجات في النموذج */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}
/* تنسيقات خاصة بصفحة التعديل */

/* تخطيط الجدول الزمني */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    top: 0;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
}

.timeline-content {
    margin-right: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.35rem;
    border: 1px solid #e3e6f0;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 2px;
    bottom: 0;
    width: 2px;
    background: #e3e6f0;
}

/* تنسيقات خاصة بصفحة التعديل */
.card-header .badge {
    font-size: 0.7em;
}

/* تنسيقات للتحذيرات */
.alert-warning {
    border-right: 4px solid #f6c23e;
}

.alert-info {
    border-right: 4px solid #36b9cc;
}

/* تنسيقات للأزرار في حالة التعديل */
.btn-warning {
    background-color: #f6c23e;
    border-color: #f6c23e;
    color: #fff;
}

    .btn-warning:hover {
        background-color: #f4b619;
        border-color: #f4b619;
        color: #fff;
    }

/* تنسيقات للبطاقات الإحصائية */
.bg-white {
    transition: all 0.3s ease;
}

    .bg-white:hover {
        transform: translateY(-2px);
        box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    }

/* تنسيقات للشريط الجانبي */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
    border-left: 0.25rem solid #e74a3b !important;
}

/* تنسيقات للاستجابة */
@media (max-width: 768px) {
    .timeline-content {
        margin-right: 1rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

        .d-flex.justify-content-between > div {
            width: 100%;
        }

        .d-flex.justify-content-between .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }
}

/* تنسيقات للحالة الديناميكية */
.form-control:disabled {
    background-color: #eaecf4;
    opacity: 1;
}

/* تنسيقات للرسائل الديناميكية */
.dynamic-message {
    padding: 0.75rem;
    border-radius: 0.35rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيقات خاصة بحقل السعة */
.capacity-warning {
    border-color: #e74a3b !important;
    background-color: #fdf2f2 !important;
}

.capacity-info {
    border-color: #36b9cc !important;
    background-color: #f0f9fb !important;
}

/* تنسيقات خاصة بصفحة التفاصيل */

/* تنسيق عناصر المعلومات */
.info-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eaecf4;
}

    .info-item:last-child {
        border-bottom: none;
    }

    .info-item label {
        font-size: 0.9rem;
        color: #6e707e;
    }

    .info-item p {
        font-size: 1.1rem;
        color: #5a5c69;
    }

/* تنسيق بطاقات الإحصائيات */
.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
}

/* تنسيق شريط التقدم التفصيلي */
.progress-info .progress {
    border-radius: 10px;
    background: linear-gradient(90deg, #1cc88a 0%, #f6c23e 60%, #e74a3b 85%, #e74a3b 100%);
    background-size: 100% 100%;
}

.progress-info .progress-bar {
    border-radius: 10px;
    position: relative;
    overflow: visible;
    font-weight: bold;
    font-size: 0.8rem;
}

.progress-labels {
    position: relative;
}

    .progress-labels .col {
        position: relative;
    }

        .progress-labels .col::before {
            content: '';
            position: absolute;
            top: -8px;
            right: 50%;
            width: 2px;
            height: 8px;
            background: #d1d3e2;
        }

/* تنسيق مؤشرات الحالة */
.status-indicators .status-item {
    padding: 0.75rem;
    border-radius: 0.35rem;
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* تنسيق أزرار الإجراءات */
.action-buttons .btn {
    padding: 0.75rem 1rem;
    text-align: right;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

    .action-buttons .btn:hover {
        transform: translateX(-5px);
    }

/* تنسيق معلومات الاتصال */
.contact-info .contact-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eaecf4;
    display: flex;
    align-items: center;
}

    .contact-info .contact-item:last-child {
        border-bottom: none;
    }

    .contact-info .contact-item i {
        width: 20px;
        text-align: center;
    }

/* تنسيق صورة النزيل */
.inmate-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* تنسيق الجدول في التفاصيل */
.table tbody tr {
    transition: all 0.3s ease;
}

    .table tbody tr:hover {
        background-color: rgba(78, 115, 223, 0.05);
        transform: translateX(-2px);
    }

/* تنسيق النافذة المنبثقة */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    border-bottom: 1px solid #e3e6f0;
    background-color: #f8f9fc;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-footer {
    border-top: 1px solid #e3e6f0;
    background-color: #f8f9fc;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* تنسيق للطباعة */
@media print {
    .btn, .action-buttons, .modal {
        display: none !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }

    .text-primary {
        color: #000 !important;
    }
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .stat-card {
        padding: 1rem 0.5rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .info-item p {
        font-size: 1rem;
    }

    .action-buttons .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* تنسيقات للرسوم المتحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

    .card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .card:nth-child(3) {
        animation-delay: 0.4s;
    }

/* تنسيقات خاصة للشريط الجانبي */
.bg-light {
    background-color: #f8f9fc !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

/* تنسيقات للنصوص */
.fw-bold {
    font-weight: 700 !important;
}

.text-muted {
    color: #6e707e !important;
}

/* تنسيقات للبادجات */
.badge {
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.35em 0.65em;
}

/* تنسيقات خاصة بصفحة النزلاء */

/* تنسيق صورة النزيل */
.inmate-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* تنسيق بطاقات الإحصائيات */
.border-start-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-start-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-start-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-start-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

/* تنسيق الجدول */
.table tbody tr {
    transition: all 0.3s ease;
}

    .table tbody tr:hover {
        background-color: rgba(78, 115, 223, 0.05);
        transform: translateX(-2px);
    }

/* تنسيق الحالة */
.badge.bg-success {
    background-color: #1cc88a !important;
}

.badge.bg-secondary {
    background-color: #858796 !important;
}

.badge.bg-info {
    background-color: #36b9cc !important;
}

.badge.bg-dark {
    background-color: #5a5c69 !important;
}

/* تنسيق الأزرار */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
}

.btn-release {
    background-color: #1cc88a;
    border-color: #1cc88a;
}

    .btn-release:hover {
        background-color: #17a673;
        border-color: #17a673;
    }

/* تنسيق البحث الفوري */
.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* تنسيق الحقول المميزة */
code {
    background-color: #f8f9fc;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    color: #e74a3b;
}

/* تنسيق للحالة الفارغة */
.empty-state {
    padding: 3rem 1rem;
}

    .empty-state .display-1 {
        font-size: 5rem;
    }

/* تنسيق الترقيم */
.pagination .page-item.active .page-link {
    background-color: #4e73df;
    border-color: #4e73df;
}

.pagination .page-link {
    color: #4e73df;
    border: 1px solid #ddd;
}

    .pagination .page-link:hover {
        background-color: #e9ecef;
        border-color: #ddd;
    }

/* تنسيق للاستجابة */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-group-sm > .btn {
        padding: 0.2rem 0.4rem;
    }

    .inmate-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* تنسيقات للرسوم المتحركة */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.table tbody tr {
    animation: slideIn 0.5s ease-out;
}

    .table tbody tr:nth-child(odd) {
        animation-delay: 0.1s;
    }

    .table tbody tr:nth-child(even) {
        animation-delay: 0.2s;
    }

/* تنسيقات خاصة للبحث */
.search-highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 0.2rem;
}

/* تنسيقات للتصدير */
.export-options {
    position: absolute;
    background: white;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    padding: 0.5rem;
    z-index: 1000;
    display: none;
}

    .export-options.show {
        display: block;
    }

    .export-options .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.25rem;
        text-align: right;
    }

        .export-options .btn:last-child {
            margin-bottom: 0;
        }

/* تنسيقات خاصة بصفحة إضافة النزلاء */

/* تنسيق منطقة رفع الملفات */
.border-dashed {
    border: 2px dashed #d1d3e2 !important;
    border-radius: 0.5rem;
}

    .border-dashed:hover {
        border-color: #4e73df !important;
        background-color: #f8f9fc;
    }

/* تنسيق معاينة الصورة */
.img-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* تنسيق الحقول مع الأيقونات */
.form-label i {
    width: 20px;
    text-align: center;
}

/* تنسيق البطاقات الإضافية */
.bg-light {
    background-color: #f8f9fc !important;
}

/* تأثيرات hover للبطاقات */
.card:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* تنسيق مربعات المعلومات */
.border.rounded {
    transition: all 0.3s ease;
}

    .border.rounded:hover {
        background-color: #f8f9fa !important;
        border-color: #4e73df !important;
    }

/* تنسيق للاستجابة */
@media (max-width: 768px) {
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 1rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

        .d-flex.justify-content-between .btn {
            width: 100%;
        }
}

/* تنسيق خاص لعناصر النموذج */
.input-group-text {
    background-color: #eaecf4;
    border-color: #d1d3e2;
}

.form-text {
    font-size: 0.8rem;
    color: #6e707e;
}

/* تنسيق الحقول عند التركيز */
.form-control:focus,
.form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* تنسيق للرسائل الديناميكية */
#ageDisplay {
    font-weight: 500;
    color: #4e73df;
}

/* تنسيق سحب وإفلات الملفات */
.drag-over {
    background-color: #e3f2fd !important;
    border-color: #2196f3 !important;
}
/* تنسيقات خاصة بصفحة تفاصيل النزلاء */

/* تنسيق الصورة الشخصية الكبيرة */
.inmate-avatar-lg {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

    .inmate-avatar-lg.bg-primary {
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* تنسيق الملف الشخصي */
.inmate-profile {
    padding: 1rem 0;
}

.inmate-info h3 {
    color: #2e59d9;
    font-weight: 700;
}

.info-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid #eaecf4;
}

    .info-item:last-child {
        border-bottom: none;
    }

/* تنسيق البطاقات السريعة */
.quick-stats .stat-card {
    transition: all 0.3s ease;
}

    .quick-stats .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

/* تنسيق الجدول الزمني */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    top: 0;
    right: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #fff;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content {
    margin-right: 3rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e3e6f0;
    box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.1);
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 24px;
    right: 0;
    bottom: 0;
    width: 2px;
    background: #e3e6f0;
    z-index: 1;
}

/* تنسيق أزرار الإجراءات */
.action-buttons .btn {
    padding: 0.75rem 1rem;
    text-align: right;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .action-buttons .btn:hover {
        transform: translateX(-5px);
    }

/* تنسيق مؤشرات الحالة */
.status-indicators .status-item {
    padding: 0.75rem;
    border-radius: 0.35rem;
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0;
    transition: all 0.3s ease;
}

    .status-indicators .status-item:hover {
        background-color: #e3f2fd;
        border-color: #4e73df;
    }

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* تنسيق معلومات الاتصال */
.contact-info .contact-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eaecf4;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

    .contact-info .contact-item:hover {
        background-color: #f8f9fc;
        padding-right: 0.5rem;
        border-radius: 0.25rem;
    }

    .contact-info .contact-item:last-child {
        border-bottom: none;
    }

    .contact-info .contact-item i {
        width: 20px;
        text-align: center;
        font-size: 1.1rem;
    }

/* تنسيق للطباعة */
@media print {
    .btn, .action-buttons, .modal, .card-header .badge {
        display: none !important;
    }

    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        margin-bottom: 1rem !important;
    }

    .text-primary {
        color: #000 !important;
    }

    .timeline-content {
        background: #fff !important;
        border: 1px solid #000 !important;
    }
}

/* تنسيقات للرسوم المتحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.timeline-item {
    animation: fadeInUp 0.8s ease-out;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .inmate-profile .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .inmate-avatar-lg {
        margin: 0 auto 1rem auto;
    }

    .timeline-content {
        margin-right: 1.5rem;
        padding: 1rem;
    }

    .timeline-marker {
        right: -8px;
        width: 16px;
        height: 16px;
    }

    .action-buttons .btn {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
}

/* تنسيقات خاصة للبطاقات */
.bg-light {
    background-color: #f8f9fc !important;
}

.border-dashed {
    border: 2px dashed #d1d3e2 !important;
}

/* تنسيقات للنصوص */
.fw-bold {
    font-weight: 700 !important;
}

.text-muted {
    color: #6e707e !important;
}

/* تنسيقات للبادجات */
.badge {
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.35em 0.65em;
}
/* تنسيقات خاصة بصفحة المستخدمين */

/* تنسيق صورة المستخدم */
.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* تنسيق بطاقات الإحصائيات */
.border-start-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-start-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-start-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-start-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

/* تنسيق البادجات لأنواع المستخدمين */
.bg-danger {
    background-color: #e74a3b !important;
}

.bg-warning {
    background-color: #f6c23e !important;
}

.bg-success {
    background-color: #1cc88a !important;
}

/* تنسيق الجدول */
.table tbody tr {
    transition: all 0.3s ease;
}

    .table tbody tr:hover {
        background-color: rgba(78, 115, 223, 0.05);
        transform: translateX(-2px);
    }

/* تنسيق الأزرار */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
}

/* تنسيق للحالة الفارغة */
.empty-state {
    padding: 3rem 1rem;
}

    .empty-state .display-1 {
        font-size: 5rem;
    }

/* تنسيق الترقيم */
.pagination .page-item.active .page-link {
    background-color: #4e73df;
    border-color: #4e73df;
}

.pagination .page-link {
    color: #4e73df;
    border: 1px solid #ddd;
}

    .pagination .page-link:hover {
        background-color: #e9ecef;
        border-color: #ddd;
    }

/* تنسيق للاستجابة */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-group-sm > .btn {
        padding: 0.2rem 0.4rem;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* تنسيقات للرسوم المتحركة */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.table tbody tr {
    animation: slideIn 0.5s ease-out;
}

    .table tbody tr:nth-child(odd) {
        animation-delay: 0.1s;
    }

    .table tbody tr:nth-child(even) {
        animation-delay: 0.2s;
    }