/* ============================================================================
   Modal — generic overlay modal with head/body/foot structure.
   Used by: ChangePasswordDialog, future confirm dialogs.
   Inspired by quickjump.css but centered with a 3-zone card layout.
   ============================================================================ */

.wt-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    animation: wt-modal-fade-in 0.12s ease-out;
}

@keyframes wt-modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.wt-modal-card {
    background: var(--wt-card);
    border: 1px solid var(--wt-border);
    border-radius: var(--wt-r-lg);
    box-shadow: var(--wt-shadow-lg);
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--wt-font);
    color: var(--wt-fg);
}

.wt-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--wt-border);
}

.wt-modal-head h2 {
    margin: 0;
    font-family: var(--wt-font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--wt-fg);
}

.wt-modal-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.wt-modal-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid var(--wt-border);
    background: var(--wt-bg-2);
}
