/* Auth & Admin Styles */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-panel);
    padding: 2rem;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    text-align: center;
    border: 1px solid var(--border);
    color: var(--text);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-header);
    font-weight: 500;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form input {
    padding: 0.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
    outline: none;
}

.auth-form input:focus {
    border-color: var(--accent);
}

.auth-form input::placeholder {
    color: var(--text-muted);
}

.auth-form button {
    padding: 0.8rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.auth-form button:hover {
    filter: brightness(1.1);
}

.auth-toggle {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-toggle a {
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
}

.auth-status {
    margin: 0.75rem 0 1rem 0;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.35);
    color: #9be59f;
    font-size: 0.9rem;
}

.auth-resend {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-resend button {
    padding: 0.5rem 0.8rem;
    background: var(--bg-dark);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.auth-resend button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Admin Panel */
#admin-panel {
    width: 800px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
}

#user-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    text-align: left;
}

#user-list th,
#user-list td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

#user-list th {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-actions button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.hidden {
    display: none !important;
}

/* Removed fixed button styles as they are now in top-bar flex container */
