@import url('https://fonts.maateen.me/solaiman-lipi/font.css');

:root {
    --sm-primary: #006a4e;        /* বাংলাদেশ গ্রিন */
    --sm-primary-hover: #00523d;
    --sm-accent: #f42a41;         /* লাল একসেন্ট */
    --sm-bg-card: #f8fafc;
    --sm-text-dark: #0f172a;
    --sm-text-muted: #64748b;
    --sm-border: #cbd5e1;
    --sm-radius: 12px;
}

/* ফন্ট সেটআপ ও ইউনিভার্সাল বক্স সাইজিং */
.seat-modal-overlay, 
.seat-modal-overlay *,
.seat-modal-trigger-btn {
    font-family: 'SolaimanLipi', Arial, sans-serif !important;
    box-sizing: border-box;
}

/* ব্যাকগ্রাউন্ড ব্লার ওভারলে */
.seat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.seat-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* মডাল বক্স (সম্পূর্ণ রেস্পন্সিভ) */
.seat-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 680px;
    height: 88vh;
    max-height: 700px;
    border-radius: var(--sm-radius);
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.seat-modal-overlay.active .seat-modal-box {
    transform: scale(1) translateY(0);
}

/* ক্লোজ বাটন */
.seat-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 22px;
    color: var(--sm-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.seat-close-btn:hover {
    background: #fee2e2;
    color: var(--sm-accent);
    transform: rotate(90deg);
}

/* হেডার সেকশন */
.seat-modal-header {
    margin-bottom: 16px;
    padding-right: 40px;
}

.seat-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--sm-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.seat-modal-header p {
    margin: 4px 0 0 0;
    font-size: 15px;
    color: var(--sm-text-muted);
}

/* গ্রিড ফিল্টার (বিভাগ ও জেলা) */
.seat-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.seat-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seat-select-wrapper label {
    font-size: 14px;
    font-weight: 600;
    color: var(--sm-text-dark);
}

.seat-select-control {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--sm-border);
    border-radius: 8px;
    font-size: 16px;
    color: var(--sm-text-dark);
    background-color: #ffffff;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
}

.seat-select-control:focus {
    border-color: var(--sm-primary);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.15);
}

.seat-select-control:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.7;
}

/* লাইভ সার্চ বক্স */
.seat-search-wrapper {
    margin-bottom: 14px;
    display: none;
}

.seat-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--sm-border);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    background: #f8fafc;
    transition: all 0.2s;
}

.seat-search-input:focus {
    background: #ffffff;
    border-color: var(--sm-primary);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.15);
}

/* আসন তালিকা স্ক্রল কনটেইনার */
.seats-result-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* কাস্টম স্ক্রলবার */
.seats-result-container::-webkit-scrollbar {
    width: 6px;
}
.seats-result-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}
.seats-result-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

/* প্রতিটি আসন কার্ডের স্টাইল */
.seat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--sm-primary);
    border-radius: 8px;
    padding: 14px 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.seat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left-color: var(--sm-accent);
}

.seat-badge {
    display: inline-block;
    background: rgba(0, 106, 78, 0.08);
    color: var(--sm-primary);
    font-weight: 700;
    font-size: 17px;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.seat-card-area {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
}

.seat-card-area strong {
    color: #0f172a;
}

.empty-message {
    text-align: center;
    color: var(--sm-text-muted);
    padding: 40px 10px;
    font-size: 16px;
    margin: auto 0;
}

/* মডাল বাটন স্টাইল */
.seat-modal-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sm-primary);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.seat-modal-trigger-btn:hover {
    background: var(--sm-primary-hover);
}

.seat-modal-trigger-btn:active {
    transform: scale(0.98);
}

/* মোবাইল রেস্পন্সিভনেস (Media Queries) */
@media (max-width: 576px) {
    .seat-modal-box {
        padding: 16px;
        height: 92vh;
        max-height: none;
        border-radius: 10px;
    }

    .seat-modal-header h2 {
        font-size: 19px;
    }

    .seat-modal-header p {
        font-size: 13px;
    }

    .seat-filter-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .seat-select-control, .seat-search-input {
        padding: 8px 10px;
        font-size: 15px;
    }

    .seat-badge {
        font-size: 15px;
        padding: 2px 10px;
    }

    .seat-card-area {
        font-size: 14px;
    }
}