
/* User Management Styles */
.form-check-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 10px;
}

.badge {
    font-size: 0.75em;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

/* Advanced modal styling */
.modal-xl {
    max-width: 90%;
}

.modal-body h6 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.modal-body hr {
    margin: 20px 0;
    border-top: 1px solid #dee2e6;
}

.form-check-label .badge {
    font-size: 0.9em;
    padding: 5px 8px;
}

.text-danger h6 {
    border-bottom-color: #dc3545 !important;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* User management table styles */
.table .badge {
    font-size: 0.75em;
}

.user-actions .btn-group-sm .btn {
    margin-right: 2px;
}

.user-status-badge {
    font-size: 0.7em;
    padding: 2px 6px;
}

/* Modal enhancements */
.modal-header.bg-primary {
    background-color: var(--primary-color) !important;
}

.modal-header.bg-warning {
    background-color: #ffc107 !important;
}

.modal-header.bg-info {
    background-color: #17a2b8 !important;
}

.modal-header.bg-danger {
    background-color: #dc3545 !important;
}

/* Form styling improvements */
.form-group label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-xl {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .col-md-3 {
        margin-bottom: 10px;
    }
    
    .btn-group-sm .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* User menu dropdown styles */
.user-menu {
    position: relative;
    cursor: pointer;
}

.user-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Advanced edit form sections */
.advanced-section {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

.advanced-section h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Permission checkboxes styling */
.permission-group {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.permission-group .form-check {
    margin-bottom: 0.25rem;
}

/* Danger zone styling */
.danger-zone {
    border: 2px solid #dc3545;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #f8d7da;
}

.danger-zone h6 {
    color: #721c24;
    border-bottom-color: #dc3545;
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
