/* ═══════════════════════════════════════════════════════════════
   CALLEGO ADMIN — Modals, form fields, buttons, and toast
   Extracted from admin.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Modal ─────────────────────────────────────────────────────── */
.adm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.adm-modal {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    width: 480px;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.adm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--adm-border);
}

.adm-modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.adm-modal-close {
    background: none;
    border: none;
    color: var(--adm-text3);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.adm-modal-close:hover {
    color: var(--adm-text);
}

.adm-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.adm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--adm-border);
}

.adm-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--adm-text2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.adm-field input,
.adm-field select {
    width: 100%;
    background: var(--adm-surface2);
    border: 1px solid var(--adm-border);
    color: var(--adm-text);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.adm-field input:focus,
.adm-field select:focus {
    border-color: var(--adm-accent);
}

.adm-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.adm-btn.primary {
    background: var(--adm-accent);
    color: #fff;
}

.adm-btn.primary:hover {
    background: #7b73ff;
}

.adm-btn.secondary {
    background: var(--adm-surface2);
    color: var(--adm-text2);
    border: 1px solid var(--adm-border);
}

.adm-btn.secondary:hover {
    color: var(--adm-text);
    border-color: var(--adm-text3);
}

/* ── Toast ─────────────────────────────────────────────────────── */
.adm-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--adm-green);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: toastIn 0.3s ease;
}

.adm-toast.error {
    background: var(--adm-red);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}