﻿/* ============================================================
   MasFlow — modal.css
   Genel modal/popup stilleri (table info, dialog vb.)
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

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

    .modal-overlay > .modal {
        background: #1a2332;
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 14px;
        padding: 22px 22px 18px;
        min-width: 320px;
        max-width: 90vw;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        position: relative;
    }

/* ── Başlık ─────────────────────────────────────── */
.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-right: 4px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    flex: 1;
    line-height: 1.3;
}

/* ── Kapa Butonu (tablet uyumlu, büyük) ────────── */
.modal-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .modal-close:active {
        background: rgba(255, 255, 255, 0.22);
        transform: scale(0.95);
    }

/* ── Body ───────────────────────────────────────── */
.modal-body {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* ── Footer ─────────────────────────────────────── */
.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

    .modal-footer .btn {
        min-height: 44px;
        padding: 0 18px;
        font-size: 14px;
    }

/* ── Mobil/Tablet ───────────────────────────────── */
@media (max-width: 600px) {
    .modal-overlay > .modal {
        min-width: 280px;
        padding: 18px;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

        .modal-footer .btn {
            width: 100%;
        }
}
