#login {
    background-color: var(--divColor);
    margin-left: 5%; 
    margin-right: 5%;
    padding: 1.25rem 2.5rem;
    border-radius: 0.75vw;
    overflow: hidden;
    height: 100%;
    text-align: center;
}

#login h1 {
    margin-bottom: 4rem;
}

#login label {
    font-size: 1.25rem; 
}


#login input {
    width: 14rem;
    height: 2.2rem;
    margin: 0.3rem calc(50% - 7rem) 1.5rem;
    padding: 0.3rem 0.5rem;
    font-size: 1.25rem;
    border: 2px #666 solid;
    border-radius: 0.3vw;
}

#login input:focus {
    border: 2px #000 solid;
    outline: none;
}

#login button {
    background-color: var(--mainColor);
    color: white;
    font-size: 1.25rem;
    width: 14rem;
    height: 2.2rem;
    margin: 0.7rem calc(50% - 7rem) 1rem;
    border-radius: 0.3vw;
    border: none;
    cursor: pointer;
}

#login button:hover {
    background-color: var(--mainHoverColor);
}

#login a {
    color: black;
    font-style: italic;
    text-decoration: none;
}

#login .helptext {
    display: none;
}

#login ul {
    list-style-type: none;
    padding: 0;
}

#login li {
    font-family: 1rem;
}

/* Dashboard */
/* Modal background */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Hidden by default */
.hidden {
    display: none;
}

/* Modal box */
.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 350px;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Close button */
.closeModal {
    margin-top: 10px;
    background: #ccc;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

.closeModal:hover {
    background: #bbb;
}

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

/* Fix Add User button */
.add-btn {
    width: 2.2rem !important;
    height: 2.2rem !important;
    min-width: 2.2rem !important;
    min-height: 2.2rem !important;
    max-width: 2.2rem !important;
    max-height: 2.2rem !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    background: var(--mainColor) !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

/* Icon inside Add button */
.add-btn img {
    width: 1.3rem !important;
    height: 1.3rem !important;
    object-fit: contain !important;
    pointer-events: none;
}

/* Hover */
.add-btn:hover {
    background: var(--mainHoverColor) !important;
}

/* Table */
.users-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--divColor);
    border-radius: 10px;
    overflow: hidden;
}

.users-table th {
    background: var(--mainColor);
    color: white;
    padding: 12px;
    text-align: left;
}

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

.users-table tr:hover {
    background: rgba(0,0,0,0.05);
}

/* Group tags */
.group-tag {
    background: #e0e0e0;
    padding: 3px 8px;
    border-radius: 6px;
    margin-right: 4px;
    font-size: 0.85rem;
}

.group-tag.none {
    background: #f5c6cb;
    color: #721c24;
}

/* Actions */
.actions-col {
    width: 220px;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Icon action buttons */
.action-btn {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: var(--divColor);
    transition: 0.15s;
}

.action-btn img {
    width: 1.4rem;
    height: 1.4rem;
    object-fit: contain;
    pointer-events: none;
}

/* Edit button color */
.action-btn.edit {
    background: #3498db;
}

.action-btn.edit:hover {
    background: #2980b9;
}

/* Delete button color */
.action-btn.delete {
    background: #e74c3c;
}

.action-btn.delete:hover {
    background: #c0392b;
}

/* Toggle button stays text-based */
.toggle-btn {
    padding: 6px 10px;
    background: #f1c40f;
    color: black;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap; /* <<< prevents line breaks */
}

.toggle-btn:hover {
    background: #d4ac0d;
}


/* Modal improvements */
.modal-content {
    border-radius: 12px;
    padding: 25px;
}

.modal-content input {
    width: 100%;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.modal-content button {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;   /* <<< prevents wrapping */
}
