﻿/* تنسيقات عامة */
.user-permissions-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* بطاقات */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
}

/* أزرار */
.btn {
    transition: all 0.3s;
    font-weight: 500;
}

.btn-success {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

    .btn-success:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

    .btn-success:hover {
        background-color: #218838;
        border-color: #1e7e34;
    }

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* حقول الاختيار */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px;
    }

/* الجداول */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

    .table th, .table td {
        padding: 0.75rem;
        vertical-align: middle;
        border-top: 1px solid #dee2e6;
    }

/* المودال */
.modal-header {
    background-color: #28a745;
    color: white;
}

.modal-body {
    padding: 20px;
}

/* الصلاحيات المختارة */
.selected-permissions {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
    min-height: 100px;
}

/* عناصر الصلاحيات */
.permission-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
}

    .permission-item:hover {
        background-color: #f8f9fa;
    }

/* رسائل التحميل والخطأ */
.loading-message, .error-message {
    text-align: center;
    padding: 20px;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}
