/* ═══ CONVERTED TO LIGHT WARM THEME + 1.2x FONTS ═══ */
/* ══════════════════════════════════════════════════════════
   M3 Guest AI — CSS (Ezibee.AI.Web/wwwroot/css/ai-guest.css)
   Copy of HTML design variables, prefixed mt-modal for modals
   ══════════════════════════════════════════════════════════ */

:root {
    --bg: var(--ez-bg, #0b1120);   /* ② Nền trang — cấu hình giao diện; fallback = màu hôm nay */
    --card: #fffefa;
    --card-border: rgba(0,0,0,.06);
    --card-hover: rgba(0,0,0,.06);
    --text: #e2e8f0;
    --text2: #94a3b8;
    --text3: #64748b;
    --accent: #3b82f6;
    --accent2: rgba(59,130,246,.18);
    --green: #22c55e;
    --green-bg: rgba(34,197,94,.12);
    --red: #ef4444;
    --red-bg: rgba(239,68,68,.12);
    --orange: #f59e0b;
    --orange-bg: rgba(245,158,11,.12);
    --purple: #7c3aed;
    --purple-bg: rgba(124,58,237,.08);
    --cyan: #06b6d4;
    --cyan-bg: rgba(6,182,212,.12);
    --yellow: #eab308;
    --yellow-bg: rgba(234,179,8,.12);
    --pink: #ec4899;
    --pink-bg: rgba(236,72,153,.12);
    --gold: #d97706;
    --gold-bg: rgba(217,119,6,.12);
    --gray: #475569;
    --glass: linear-gradient(180deg,#fffefa,rgba(8,14,31,.95));
    --radius: 14px;
    --radius-sm: 10px;
}

/* ═══ TOPBAR ═══ */
.gt-topbar {
    background: var(--glass);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px 22px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap
}

.gt-brand {
    display: flex;
    align-items: center;
    gap: 10px
}

.gt-logo {
    font-size: 31.2px
}

.gt-title {
    font-size: 20.4px;
    font-weight: 800;
    color: #2d2d42
}

.gt-sub {
    font-size: 13.2px;
    color: var(--text2)
}

    .gt-sub .dot {
        color: var(--accent);
        margin: 0 5px
    }

.gt-tabs {
    display: flex;
    gap: 3px
}

.gt-tab {
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 14.4px;
    font-weight: 600;
    color: var(--text2);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: .2s
}

    .gt-tab:hover {
        background: rgba(0,0,0,.03);
        color: #2d2d42
    }

    .gt-tab.active {
        background: var(--accent2);
        color: var(--accent)
    }

.gt-actions {
    display: flex;
    gap: 8px
}

/* ═══ KPI ═══ */
.gt-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 10px;
    margin-bottom: 14px
}

.gt-kpi {
    background: linear-gradient(135deg,#fffefa,rgba(20,32,58,.9));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center
}

.gt-kpi-value {
    font-size: 31.2px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2
}

.gt-kpi-label {
    font-size: 12px;
    color: var(--text2);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: .5px
}

.gt-kpi-sub {
    font-size: 10.8px;
    color: var(--text3);
    margin-top: 2px
}

/* ═══ AI SUGGEST ═══ */
.gt-ai-suggest {
    background: var(--accent2);
    border: 1px solid rgba(59,130,246,.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 14.4px;
    color: var(--accent);
    line-height: 1.6
}

/* ═══ FILTER BAR ═══ */
.gt-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: center
}

.gt-select {
    appearance: none;
    background: rgba(0,0,0,.03);
    border: 1px solid #e0ddd6;
    color: #2d2d42;
    padding: 6px 24px 6px 10px;
    border-radius: 7px;
    font-size: 13.2px;
    cursor: pointer
}

/* ═══ GUEST LAYOUT ═══ */
.gt-layout {
    display: flex;
    gap: 14px;
    align-items: flex-start
}

.gt-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px
}

.gt-detail {
    min-width: 400px;
    max-width: 440px;
    position: sticky;
    top: 20px
}

/* ═══ GUEST CARD ═══ */
.gt-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    transition: .2s
}

    .gt-card:hover {
        border-color: var(--card-hover)
    }

    .gt-card.selected {
        border-color: var(--accent);
        box-shadow: 0 0 16px rgba(59,130,246,.2)
    }

    .gt-card.vip {
        border-left: 4px solid var(--gold)
    }

    .gt-card.returning {
        border-left: 4px solid var(--purple)
    }

    .gt-card.new-guest {
        border-left: 4px solid var(--cyan)
    }

    .gt-card.checkout-today {
        border-left: 4px solid var(--orange)
    }

    .gt-card.checkin-today {
        border-left: 4px solid var(--green)
    }

.gt-card-inner {
    display: flex
}

.gt-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19.2px;
    font-weight: 800;
    color: #2d2d42;
    margin-right: 10px;
    flex-shrink: 0
}

.avatar-vip {
    background: linear-gradient(135deg,#d97706,#f59e0b)
}

.avatar-return {
    background: linear-gradient(135deg,#7c3aed,#a78bfa)
}

.avatar-new {
    background: linear-gradient(135deg,#06b6d4,#22d3ee)
}

.avatar-default {
    background: linear-gradient(135deg,#475569,#64748b)
}

.gt-card-body {
    flex: 1;
    min-width: 0
}

.gt-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start
}

.gt-name {
    font-size: 18px;
    font-weight: 700;
    color: #2d2d42
}

.gt-badges {
    display: flex;
    gap: 4px;
    margin-top: 3px;
    flex-wrap: wrap
}

.gt-badge {
    font-size: 9.6px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px
}

.gt-badge-vip {
    background: var(--gold-bg);
    color: var(--gold)
}

.gt-badge-vip-plat {
    background: rgba(124,58,237,.08);
    color: var(--purple)
}

.gt-badge-returning {
    background: var(--purple-bg);
    color: var(--purple)
}

.gt-badge-new {
    background: var(--cyan-bg);
    color: var(--cyan)
}

.gt-badge-instay {
    background: var(--accent2);
    color: var(--accent)
}

.gt-badge-country {
    background: rgba(0,0,0,.03);
    color: var(--text2)
}

.gt-badge-checkout {
    background: var(--orange-bg);
    color: var(--orange)
}

.gt-badge-checkin {
    background: var(--green-bg);
    color: var(--green)
}

.gt-room {
    font-size: 26.4px;
    font-weight: 800;
    color: #2d2d42;
    text-align: right
}

.gt-room-type {
    font-size: 12px;
    color: var(--text3)
}

.gt-info {
    font-size: 13.2px;
    color: var(--text2);
    line-height: 1.6;
    margin-top: 8px
}

.gt-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,.03)
}

.gt-dates {
    font-size: 12px;
    color: var(--text3)
}

.gt-satisfaction {
    font-size: 12px;
    font-weight: 700
}

/* ═══ DETAIL PANEL ═══ */
.gt-panel {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 18px
}

.gt-section {
    margin-top: 14px
}

.gt-section-title {
    font-size: 13.2px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px
}

.gt-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,.01);
    font-size: 14.4px;
    color: var(--text2)
}

    .gt-row:last-child {
        border-bottom: none
    }

    .gt-row span:last-child {
        color: #2d2d42;
        font-weight: 600
    }

/* Preference tags */
.gt-pref-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px
}

.gt-pref-tag {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px
}

.gt-pref-like {
    background: var(--green-bg);
    color: var(--green)
}

.gt-pref-dislike {
    background: var(--red-bg);
    color: var(--red)
}

.gt-pref-note {
    background: rgba(0,0,0,.03);
    color: var(--text2)
}

.gt-pref-energy {
    background: var(--orange-bg);
    color: var(--orange)
}

/* Stay history */
.gt-stay-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,.01);
    font-size: 13.2px
}

    .gt-stay-item:last-child {
        border-bottom: none
    }

.gt-stay-date {
    color: var(--text3);
    min-width: 60px
}

.gt-stay-room {
    color: #2d2d42;
    font-weight: 700;
    min-width: 40px
}

.gt-stay-nights {
    color: var(--text2)
}

.gt-stay-score {
    font-weight: 700;
    margin-left: auto
}

/* Energy pattern */
.gt-energy-pattern {
    display: grid;
    grid-template-columns: repeat(24,1fr);
    gap: 1px;
    margin-top: 6px
}

.gt-energy-hour {
    height: 20px;
    border-radius: 2px;
    position: relative;
    cursor: pointer
}

.gt-eh-low {
    background: rgba(34,197,94,.2)
}

.gt-eh-med {
    background: rgba(245,158,11,.3)
}

.gt-eh-high {
    background: rgba(239,68,68,.4)
}

.gt-eh-off {
    background: rgba(0,0,0,.01)
}

/* Request list */
.gt-request-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(0,0,0,.03);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13.2px
}

.gt-request-icon {
    font-size: 16.8px;
    width: 24px;
    text-align: center
}

.gt-request-text {
    flex: 1;
    color: var(--text2)
}

.gt-request-time {
    font-size: 10.8px;
    color: var(--text3)
}

.gt-request-status {
    font-size: 10.8px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600
}

/* ═══ ARRIVING TAB ═══ */
.gt-arriving-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(340px,1fr));
    gap: 12px;
    margin-bottom: 16px
}

.gt-arriving-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 16px
}

.gt-arriving-room {
    font-size: 33.6px;
    font-weight: 800;
    color: #2d2d42
}

.gt-arriving-time {
    font-size: 13.2px;
    color: var(--green);
    font-weight: 700
}

.gt-arriving-guest {
    font-size: 16.8px;
    font-weight: 700;
    color: #2d2d42;
    margin-top: 4px
}

.gt-arriving-meta {
    font-size: 13.2px;
    color: var(--text2);
    line-height: 1.5;
    margin-top: 4px
}

.gt-prep-checklist {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.gt-prep-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.2px;
    color: var(--text2)
}

.gt-prep-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px
}

.gt-prep-done {
    background: var(--green-bg);
    color: var(--green)
}

.gt-prep-pending {
    background: rgba(0,0,0,.03);
    color: var(--text3)
}

/* ═══ INSIGHTS ═══ */
.gt-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
    gap: 14px;
    margin-bottom: 16px
}

.gt-insight-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 16px
}

.gt-insight-title {
    font-size: 15.6px;
    font-weight: 700;
    color: #2d2d42;
    margin-bottom: 10px
}

.gt-insight-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,.01);
    font-size: 14.4px
}

    .gt-insight-bar:last-child {
        border-bottom: none
    }

.gt-insight-label {
    min-width: 120px;
    color: var(--text2)
}

.gt-insight-fill-wrap {
    flex: 1;
    height: 6px;
    background: rgba(0,0,0,.03);
    border-radius: 3px;
    overflow: hidden
}

.gt-insight-fill {
    height: 100%;
    border-radius: 3px
}

.gt-insight-pct {
    min-width: 35px;
    text-align: right;
    font-weight: 700;
    color: #2d2d42
}

/* ═══ CONFIG ═══ */
.gt-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(320px,1fr));
    gap: 14px
}

.gt-config-section {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 16px
}

.gt-config-title {
    font-size: 14.4px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px
}

.gt-config-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0,0,0,.01);
    font-size: 14.4px;
    color: var(--text2)
}

    .gt-config-row:last-child {
        border-bottom: none
    }

.gt-config-input {
    background: rgba(0,0,0,.03);
    border: 1px solid #e0ddd6;
    color: #2d2d42;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 14.4px;
    width: 65px;
    text-align: right
}

/* ═══ BUTTONS (scoped) ═══ */
.gt-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 14.4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: .2s;
    color: #2d2d42
}

.gt-btn-primary {
    background: var(--accent)
}

.gt-btn-success {
    background: var(--green)
}

.gt-btn-danger {
    background: var(--red)
}

.gt-btn-warning {
    background: var(--orange)
}

.gt-btn-purple {
    background: var(--purple)
}

.gt-btn-cyan {
    background: var(--cyan)
}

.gt-btn-gold {
    background: var(--gold)
}

.gt-btn-pink {
    background: var(--pink)
}

.gt-btn-ghost {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text2)
}

    .gt-btn-ghost:hover {
        border-color: var(--accent);
        color: var(--accent)
    }

.gt-btn-sm {
    padding: 5px 10px;
    font-size: 13.2px
}

/* ═══ MODALS — prefix mt-modal ═══ */
.mt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.03);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100
}

.mt-modal {
    background: #fffefa;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto
}

.mt-modal-title {
    font-size: 19.2px;
    font-weight: 800;
    color: #2d2d42;
    margin-bottom: 12px
}

.mt-modal-body {
    font-size: 15.6px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 16px
}

.mt-modal-input {
    width: 100%;
    background: rgba(0,0,0,.03);
    border: 1px solid #e0ddd6;
    color: #2d2d42;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15.6px;
    margin-bottom: 8px
}

    .mt-modal-input:focus {
        border-color: var(--accent);
        outline: none
    }

    .mt-modal-input::placeholder {
        color: var(--text3)
    }

.mt-modal-textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(0,0,0,.03);
    border: 1px solid #e0ddd6;
    color: #2d2d42;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15.6px;
    margin-bottom: 8px;
    resize: vertical;
    font-family: inherit
}

    .mt-modal-textarea:focus {
        border-color: var(--accent);
        outline: none
    }

    .mt-modal-textarea::placeholder {
        color: var(--text3)
    }

.mt-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end
}

.mt-modal-label {
    font-size: 13.2px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 4px;
    display: block
}

.mt-modal-group {
    margin-bottom: 12px
}

.mt-modal-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13.2px;
    cursor: pointer;
    margin: 3px;
    transition: .2s;
    font-weight: 600
}

    .mt-modal-tag:hover {
        filter: brightness(1.2)
    }

    .mt-modal-tag.selected {
        box-shadow: 0 0 0 2px #fff
    }

.mt-modal-hint {
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 12px;
    line-height: 1.5
}

/* ═══ PLACEHOLDER ═══ */
.gt-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text3);
    font-size: 16.8px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-top: 20px
}

.gt-error {
    background: var(--red-bg);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--red);
    font-size: 14.4px;
    margin-bottom: 14px
}

.gt-loading {
    text-align: center;
    padding: 40px;
    color: var(--text2);
    font-size: 15.6px
}

/* ═══ RESPONSIVE ═══ */
@media(max-width:1400px) {
    .gt-list {
        grid-template-columns: 1fr
    }
}

@media(max-width:1100px) {
    .gt-layout {
        flex-direction: column
    }

    .gt-detail {
        min-width: 100%;
        max-width: 100%;
        position: static
    }
}

@media(max-width:768px) {
    .gt-kpi-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .gt-arriving-grid {
        grid-template-columns: 1fr
    }

    .gt-insight-grid {
        grid-template-columns: 1fr
    }

    .gt-config-grid {
        grid-template-columns: 1fr
    }
}

/* ══════════════════════════════════════════════════════════════
   DARK THEME: Select / Option / OptGroup
   Fix dropdown trắng khi mở trên Chrome/Edge
   ══════════════════════════════════════════════════════════════ */
select,
.als-wrap select {
    background-color: #fffefa !important;
    color: #2d2d42 !important;
}

    select option {
        background-color: #fffefa;
        color: #2d2d42;
        padding: 4px 8px;
    }

        select option:checked {
            background-color: rgba(184,137,46,.08);
            color: #2d2d42;
        }

    select optgroup {
        background-color: #f4f1ec;
        color: #9e9eb0;
        font-weight: 700;
    }

        select optgroup option {
            background-color: #fffefa;
            color: #2d2d42;
            font-weight: 400;
        }

.gt-select option {
    background-color: #fffefa;
    color: #2d2d42;
}

.gt-select optgroup {
    background-color: #f4f1ec;
    color: #9e9eb0;
}
