/* Manage All Users Dialog Stylesheet */

/* Modal overlay - unique class to avoid conflicts with other dialogs */
.mau-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.mau-modal-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.mau-modal-dialog-small {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
}

/* Users table container */
.users-table-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Users table */
.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.users-table thead {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
}

.users-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.users-table th:first-child {
    width: 40px;
    text-align: center;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.users-table td:first-child {
    text-align: center;
}

.users-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.users-table tbody tr:hover {
    background-color: #f8f9fa;
}

.users-table tbody tr.selected {
    background-color: #e3f2fd;
}

.users-table tbody tr.selected:hover {
    background-color: #d1e9fc;
}

/* Radio button styling */
.users-table input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* Delete dialog content */
.delete-dialog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.delete-message {
    font-size: 1rem;
    color: #555;
    text-align: center;
    line-height: 1.6;
}

.delete-user-name {
    font-weight: 700;
    color: #d32f2f;
}

/* Responsive styles */
@media (max-width: 768px) {
    .mau-modal-dialog {
        max-width: 95%;
        max-height: 85vh;
    }

    .mau-modal-dialog-small {
        max-width: 95%;
    }

    .users-table-container {
        max-height: 250px;
    }

    .users-table th,
    .users-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .delete-dialog-content {
        padding: 20px;
    }

    .delete-message {
        font-size: 0.95rem;
    }
}
