/* ============================================
   MODAL OVERLAY SYSTEM
   Base styles for modal overlays
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--opacity-heavy));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(255, 255, 255, var(--opacity-light));
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, var(--opacity-medium));
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 var(--space-2xl) var(--space-4xl) rgba(0, 0, 0, var(--opacity-medium));
    position: relative;
}

.modal-content.modal-small {
    max-width: 600px;
}

.modal-header {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: white;
}

.modal-body {
    color: white;
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-2xl);
    cursor: pointer;
    color: white;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    opacity: 1;
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: var(--space-lg);
}

/* Form actions inside modals */
.modal .form-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: var(--space-lg);
}

/* Reset username display */
.reset-username {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, var(--opacity-subtle));
    border-radius: var(--radius-md);
}

.reset-username strong {
    color: var(--color-primary);
}
