.user-list-container {
    padding: 20px;
    color: #edf2f7;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-list-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-list-table th, .user-list-table td {
    border: 1px solid #4a5568;
    padding: 15px;
    text-align: left;
    background-color: #2d3748;
    color: #edf2f7;
}

.user-list-table th {
    background-color: #3182ce;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

.user-list-table tr:hover {
    background-color: #3b4754;
    transition: background-color 0.3s ease;
}

.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.spinner {
    width: 80px;
    height: 80px;
    position: relative;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #3182ce;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #3182ce transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.error {
    text-align: center;
    color: #e53e3e;
    margin-top: 20px;
    font-weight: bold;
}

.btn-create {
    background-color: #38a169;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-create:hover {
    background-color: #2f855a;
}

.btn-edit, .btn-password, .btn-role, .btn-delete {
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.btn-edit {
    background-color: #3182ce;
}

.btn-edit:hover {
    background-color: #5e97d0;
}

.btn-password {
    background-color: #ed8936;
}

.btn-password:hover {
    background-color: #dd6b20;
}

.btn-role {
    background-color: #805ad5; /* Distinct color for role management */
}

.btn-role:hover {
    background-color: #6b46c1;
}

.btn-delete {
    background-color: #e53e3e;
}

.btn-delete:hover {
    background-color: #c53030;
}

.edit-user-window, .edit-password-window, .edit-roles-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a202c;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
}

.edit-user-content, .edit-password-content, .edit-roles-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edit-user-actions, .edit-password-actions, .edit-roles-actions {
    display: flex;
    justify-content: space-between;
}

.btn-save {
    background-color: #38a169;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-save:hover {
    background-color: #2f855a;
}

.btn-cancel {
    background-color: #e53e3e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-cancel:hover {
    background-color: #c53030;
}

.form-control {
    padding: 10px;
    border: 1px solid #4a5568;
    border-radius: 5px;
    background-color: #2d3748;
    color: #edf2f7;
    outline: none;
    max-width: 100%;
}

.form-control:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.5);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination-button {
    background-color: #3182ce;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-button:disabled {
    background-color: #4a5568;
    cursor: not-allowed;
}

.pagination-button:hover:not(:disabled) {
    background-color: #5e97d0;
}

.page-info {
    font-size: 1rem;
    color: #edf2f7;
}

.available-roles {
    margin-bottom: 10px;
}

.assigned-roles ul {
    list-style: none;
    padding: 0;
}

.assigned-roles ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: #2d3748;
    border-radius: 5px;
    margin-bottom: 5px;
}

.btn-remove-role {
    background-color: #e53e3e;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-remove-role:hover {
    background-color: #c53030;
}

.role-search-container {
    position: relative;
}

.role-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 5px;
    z-index: 1000;
}

.role-dropdown-item {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.role-dropdown-item:hover {
    background-color: #4a5568;
}

.role-list {
    max-height: 150px;
    overflow-y: auto;
}

.role-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.role-dropdown-item:hover {
    background-color: #4a5568;
}

.assigned-roles {
    max-height: 150px;
    overflow-y: auto;
}

.btn-remove-role {
    margin-left: 10px;
    background-color: #e53e3e;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-remove-role:hover {
    background-color: #c53030;
}

.success-message {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #38a169;
    color: #fff;
    border-radius: 5px;
    text-align: center;
}
.delete-user-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a202c;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.delete-user-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    color: #edf2f7;
}

.delete-user-actions {
    display: flex;
    gap: 15px;
}
