

/* Logout Button */
.etn-logout-btn {
    background-color: #e53e3e;
    color: white;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border: none;
    border-radius: 0.375rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

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



/*
 * ---------------------------------------------
 * User Modal
 * ---------------------------------------------
 */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal box */
.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}
.modal-close:hover {
    color: #555;
}

/* User info layout */
.modal-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #eee;
}

.modal-userinfo p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.modal-userinfo .name {
    font-weight: bold;
    color: #222;
}

/* Admin label */
.admin-status {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #f2f2f2;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.admin-status span {
    font-weight: bold;
}

/* Buttons */
.modal-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.promote {
    background-color: #28a745;
    color: #fff;
}
.promote:hover {
    background-color: #218838;
}

.demote {
    background-color: #ffc107;
    color: #000;
}
.demote:hover {
    background-color: #e0a800;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}






