/* =====================================================
   Buttons (Global), Form Inputs, Scrollbar
===================================================== */

/* ═══════════════════════════════════════════════════════════════
   BUTTONS (Global Utility)
═══════════════════════════════════════════════════════════════ */
.btn-primary {
    background: var(--blue);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, .35);
    transition: all .15s;
}

.btn-primary:hover {
    background: var(--blue-dark);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: white;
    color: var(--text);
    padding: 8px 16px;
    border: 1px solid var(--border-2);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .15s;
}

.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--border-2);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn .15s ease;
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    min-width: 420px;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: popIn .2s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.92) translateY(8px);
    }

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

.modal-wide {
    min-width: 660px;
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.modal-close {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.modal-close:hover {
    background: #fee2e2;
    color: #e11d48;
    border-color: #fca5a5;
}

.modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #f8fafc;
}
