/* ============================================================
   APNA LIBRARY — Global Stylesheet
   Reference: Dark mountain landscape, glass morphism UI
   ============================================================ */

:root {
    --cyan:      #00bcd4;
    --cyan-dark: #0097a7;
    --green:     #4caf50;
    --orange:    #ff9800;
    --red:       #f44336;
    --dark-bg:   rgba(8, 14, 30, 0.75);
    --card-bg:   rgba(12, 20, 42, 0.55);
    --input-bg:  rgba(15, 25, 55, 0.60);
    --border:    rgba(0, 188, 212, 0.22);
    --text:      #dce8f5;
    --text-muted:#7a99bb;
}

/* ── Body — Mountain Background ────────────────────────────── */
html, body {
    margin: 0; padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

body {
    /* Layered gradient — dark mountain lake atmosphere */
    background:
        /* Top sky — deep dark blue */
        radial-gradient(ellipse at 70% 0%,   rgba(20, 40, 90, 0.95) 0%, transparent 60%),
        /* Horizon glow — amber/orange sunset */
        radial-gradient(ellipse at 50% 38%,  rgba(160, 80, 20, 0.55) 0%, transparent 55%),
        /* Mountain peaks — deep teal */
        radial-gradient(ellipse at 25% 55%,  rgba(10, 40, 80, 0.80) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 52%,  rgba(15, 35, 70, 0.80) 0%, transparent 50%),
        /* Water reflection — dark navy */
        radial-gradient(ellipse at 50% 85%,  rgba(5,  15, 40, 0.95) 0%, transparent 70%),
        /* Base — very dark blue-black */
        linear-gradient(180deg,
            #040810 0%,
            #070e1e 15%,
            #0b1530 30%,
            #0f1c3d 45%,
            #0a1228 55%,
            #060d20 70%,
            #030810 85%,
            #020509 100%
        );
    background-attachment: fixed;
    background-size: cover;
    position: relative;
}

/* Mountain silhouette overlay via pseudo element */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        /* Left mountain peak */
        radial-gradient(ellipse 35% 45% at 18% 62%, rgba(12,30,60,0.9) 0%, transparent 100%),
        /* Right mountain peak */
        radial-gradient(ellipse 30% 40% at 82% 58%, rgba(10,25,55,0.9) 0%, transparent 100%),
        /* Center mountain */
        radial-gradient(ellipse 25% 35% at 50% 60%, rgba(8,20,45,0.85) 0%, transparent 100%),
        /* Mist/fog band */
        linear-gradient(180deg, transparent 40%, rgba(5,12,30,0.3) 55%, transparent 65%),
        /* Ground/water at bottom */
        linear-gradient(180deg, transparent 65%, rgba(3,8,20,0.7) 80%, rgba(2,5,15,0.95) 100%);
}

/* Subtle orange/amber glow at horizon — like sunset behind mountains */
body::after {
    content: '';
    position: fixed;
    top: 28%; left: 50%;
    transform: translateX(-50%);
    width: 80vw; height: 20vh;
    background: radial-gradient(ellipse, rgba(200,100,20,0.18) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(8px);
}

#app-wrapper { position: relative; z-index: 1; }

/* ── Header ─────────────────────────────────────────────────── */
.apl-header {
    background: rgba(4, 8, 22, 0.88);
    border-bottom: 1px solid rgba(0,188,212,0.18);
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.apl-header .brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 1.5px;
    flex: 1;
    text-shadow: 0 0 20px rgba(0,188,212,0.4);
}
.apl-header .header-icons a {
    color: var(--text-muted);
    font-size: 1rem;
    margin-left: 14px;
    transition: color .2s;
    text-decoration: none;
}
.apl-header .header-icons a:hover { color: var(--cyan); }
.btn-hamburger {
    background: none; border: none;
    color: var(--cyan); font-size: 1.35rem;
    cursor: pointer; padding: 0 6px; line-height: 1;
}

/* ── Drawer Sidebar ─────────────────────────────────────────── */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 1099; display: none;
    backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: block; }

.drawer {
    position: fixed;
    top: 0; left: -260px;
    width: 230px; height: 100vh;
    background: rgba(4, 8, 22, 0.96);
    border-right: 1px solid rgba(0,188,212,0.15);
    z-index: 1100;
    transition: left .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    padding-bottom: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.drawer.open { left: 0; }
.drawer-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,188,212,0.12);
    font-size: .95rem; font-weight: 700;
    color: var(--cyan); letter-spacing: 1.5px;
}
.drawer-close {
    background: none; border: none;
    color: var(--text-muted); font-size: 1.1rem; cursor: pointer;
}
.drawer-section { border-bottom: 1px solid rgba(0,188,212,0.08); }
.drawer-section-title {
    padding: 9px 14px 6px; font-size: .7rem;
    font-weight: 700; color: var(--text-muted);
    letter-spacing: 1.8px; text-transform: uppercase;
    display: flex; justify-content: space-between;
    cursor: pointer; user-select: none;
}
.drawer-section-title:hover { color: var(--cyan); }
.drawer-items { display: none; padding: 3px 0 8px; }
.drawer-items.open { display: block; }
.drawer-item {
    display: block; padding: 7px 22px;
    color: var(--text-muted); text-decoration: none;
    font-size: .86rem; border-radius: 4px;
    margin: 1px 6px; transition: background .15s, color .15s;
}
.drawer-item:hover, .drawer-item.active {
    background: rgba(0,188,212,0.12); color: var(--cyan);
}

/* ── Main Content ────────────────────────────────────────────── */
.apl-content { padding: 20px 16px; min-height: calc(100vh - 52px); }

/* ── Glass Cards ─────────────────────────────────────────────── */
.stat-card {
    background: rgba(10, 18, 40, 0.55);
    border: 1px solid rgba(0,188,212,0.2);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: transform .2s, border-color .2s, background .2s;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,188,212,0.45);
    background: rgba(12, 22, 50, 0.65);
}
.stat-card .stat-icon { font-size: 2.1rem; margin-bottom: 8px; }
.stat-card .stat-label { font-size: .8rem; color: var(--text-muted); margin-bottom: 4px; }
.stat-card .stat-value { font-size: 1.7rem; font-weight: 700; color: var(--cyan); }
.stat-card.orange .stat-value { color: var(--orange); }
.stat-card.green  .stat-value { color: var(--green);  }

/* ── Glass Table Wrapper ─────────────────────────────────────── */
.apl-table-wrap {
    background: rgba(8, 15, 35, 0.52);
    border: 1px solid rgba(0,188,212,0.18);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 4px 32px rgba(0,0,0,0.35);
}
.apl-table { width: 100%; border-collapse: collapse; }
.apl-table thead th {
    padding: 11px 14px; font-size: .75rem;
    font-weight: 600; letter-spacing: .8px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0,188,212,0.12);
    white-space: nowrap; color: var(--cyan);
    background: rgba(0,0,0,0.15);
}
.apl-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0,188,212,0.06);
    font-size: .87rem; color: var(--text);
    vertical-align: middle;
}
.apl-table tbody tr:last-child td { border-bottom: none; }
.apl-table tbody tr:hover td { background: rgba(0,188,212,0.06); }
.apl-table .action-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.apl-table .action-btns button {
    background: none; border: none; cursor: pointer;
    font-size: .95rem; padding: 3px 5px; border-radius: 4px;
    transition: background .15s;
}
.apl-table .action-btns button:hover { background: rgba(255,255,255,0.08); }
.btn-view    { color: var(--cyan)   !important; }
.btn-edit    { color: var(--green)  !important; }
.btn-inactive{ color: var(--orange) !important; }
.btn-delete  { color: var(--red)    !important; }
.btn-pay     { color: #7ecb20       !important; }
.btn-hist    { color: #9c27b0       !important; }
.btn-restore { color: var(--cyan)   !important; }

/* ── Tab Navigation ─────────────────────────────────────────── */
.apl-tabs {
    display: flex; gap: 0;
    border-bottom: 1px solid rgba(0,188,212,0.15);
    margin-bottom: 16px;
}
.apl-tab {
    padding: 8px 20px; font-size: .88rem;
    color: var(--text-muted); text-decoration: none;
    border-bottom: 2px solid transparent;
    cursor: pointer; transition: color .2s, border-color .2s;
    background: none; border-top: none; border-left: none; border-right: none;
}
.apl-tab:hover { color: var(--cyan); }
.apl-tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ── Glass Inputs ────────────────────────────────────────────── */
.apl-form-group { position: relative; margin-bottom: 20px; }

.apl-input {
    width: 100%;
    background: rgba(8, 18, 45, 0.55);
    border: 1px solid rgba(0,188,212,0.25);
    border-radius: 8px;
    padding: 9px 14px;
    color: var(--text);
    font-size: .88rem;
    transition: border-color .2s, background .2s;
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.apl-input:focus {
    border-color: rgba(0,188,212,0.7);
    background: rgba(10, 22, 55, 0.65);
    box-shadow: 0 0 0 3px rgba(0,188,212,0.08);
}
.apl-input::placeholder { color: rgba(122,153,187,0.7); }
.apl-input option { background: #0d1830; color: var(--text); }
select.apl-input { cursor: pointer; }

.apl-label {
    font-size: .73rem; color: var(--cyan);
    margin-bottom: 4px; display: block; letter-spacing: .5px;
}
.char-counter {
    position: absolute; right: 10px; bottom: -18px;
    font-size: .7rem; color: var(--text-muted);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-apl {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #000; border: none; border-radius: 20px;
    padding: 8px 24px; font-size: .87rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
    box-shadow: 0 3px 12px rgba(0,188,212,0.25);
    text-decoration: none; display: inline-block;
}
.btn-apl:hover {
    background: linear-gradient(135deg, #0097a7, #006064);
    box-shadow: 0 5px 18px rgba(0,188,212,0.35);
    transform: translateY(-1px);
    color: #fff;
}
.btn-apl:active { transform: scale(.97); }
.btn-apl.green  { background: linear-gradient(135deg, #4caf50, #388e3c); color: #fff; box-shadow: 0 3px 12px rgba(76,175,80,.25); }
.btn-apl.orange { background: linear-gradient(135deg, #ff9800, #e65100); color: #fff; }
.btn-apl.red    { background: linear-gradient(135deg, #f44336, #c62828); color: #fff; }
.btn-apl.purple { background: linear-gradient(135deg, #9c27b0, #6a1b9a); color: #fff; }
.btn-apl.outline {
    background: transparent;
    border: 1px solid rgba(0,188,212,0.5);
    color: var(--cyan);
    box-shadow: none;
}
.btn-apl.outline:hover { background: rgba(0,188,212,0.1); color: var(--cyan); }
.btn-apl.sm { padding: 5px 14px; font-size: .8rem; }

/* ── Glass Modals ────────────────────────────────────────────── */
.apl-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1200; display: none;
    align-items: center; justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.apl-modal-overlay.open { display: flex; }

.apl-modal {
    background: rgba(8, 15, 38, 0.88);
    border: 1px solid rgba(0,188,212,0.22);
    border-radius: 14px;
    width: 100%; max-width: 600px;
    max-height: 90vh; overflow-y: auto;
    padding: 24px; position: relative;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
.apl-modal-title {
    font-size: .95rem; font-weight: 700;
    color: var(--cyan); margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,188,212,0.15);
}
.modal-divider {
    height: 2px;
    background: linear-gradient(90deg, rgba(255,152,0,.7), rgba(255,152,0,0));
    margin: 16px 0; border-radius: 2px;
}
.modal-field-label {
    font-size: .68rem; color: var(--cyan);
    display: block; margin-bottom: 2px; letter-spacing: .5px;
}
.modal-field-value {
    background: rgba(8, 18, 45, 0.5);
    border: 1px solid rgba(0,188,212,0.18);
    border-radius: 6px; padding: 7px 10px;
    font-size: .85rem; color: var(--text); width: 100%;
    box-sizing: border-box;
}
.modal-field-value.green-text  { color: var(--green);  font-weight: 600; }
.modal-field-value.orange-text { color: var(--orange); font-weight: 600; }

/* ── Photo Upload ────────────────────────────────────────────── */
.photo-upload-area {
    width: 120px; height: 140px;
    border: 2px dashed rgba(0,188,212,0.35);
    border-radius: 8px;
    background: rgba(8,18,45,0.5);
    display: flex; align-items: center;
    justify-content: center; overflow: hidden; cursor: pointer;
    transition: border-color .2s;
}
.photo-upload-area:hover { border-color: rgba(0,188,212,0.7); }
.photo-upload-area img { width:100%; height:100%; object-fit:cover; }
.photo-btns { display: flex; gap: 6px; margin-top: 8px; }
.photo-btns button {
    flex: 1;
    background: rgba(0,188,212,0.1);
    border: 1px solid rgba(0,188,212,0.35);
    color: var(--cyan); border-radius: 6px;
    padding: 5px 0; font-size: .78rem; cursor: pointer;
    transition: background .2s;
}
.photo-btns button:hover { background: rgba(0,188,212,0.25); }

/* ── Seat Map ────────────────────────────────────────────────── */
.seat-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px; }
.seat-btn {
    width: 56px; height: 42px; border-radius: 8px;
    border: none; font-size: .8rem; font-weight: 700;
    cursor: pointer; transition: transform .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.seat-btn:hover { transform: scale(1.1); box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.seat-btn.available { background: linear-gradient(135deg,#4caf50,#388e3c); color:#fff; }
.seat-btn.occupied  { background: linear-gradient(135deg,#ff9800,#e65100); color:#fff; }
.seat-btn.inactive  { background: #1e2a3a; color: #4a6080; cursor:not-allowed; }

/* ── Pagination ──────────────────────────────────────────────── */
.apl-pagination {
    display: flex; align-items: center;
    justify-content: center; gap: 16px;
    padding: 14px; color: var(--text-muted); font-size: .85rem;
}
.apl-pagination a, .apl-pagination button {
    color: var(--cyan); background: none; border: none;
    font-size: 1.1rem; cursor: pointer; padding: 4px 8px;
    border-radius: 4px; transition: background .15s; text-decoration: none;
}
.apl-pagination a:hover, .apl-pagination button:hover {
    background: rgba(0,188,212,0.12);
}
.apl-pagination a.disabled { color: var(--text-muted); pointer-events: none; }

/* ── Success/Done Modal ──────────────────────────────────────── */
.done-modal {
    background: rgba(8, 15, 38, 0.92);
    border: 1px solid rgba(0,188,212,0.25);
    border-radius: 14px; padding: 28px 32px;
    text-align: center; min-width: 300px; max-width: 420px;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.done-modal .done-title  { color: var(--green); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.done-modal .done-msg    { color: var(--text-muted); font-size: .88rem; margin-bottom: 20px; }
.done-modal .done-divider{ border: none; border-top: 1px solid rgba(0,188,212,0.15); margin: 14px 0; }
.done-modal .done-btns   { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.done-modal .done-btns button {
    padding: 7px 18px; border-radius: 6px;
    border: 1px solid rgba(0,188,212,0.25);
    background: rgba(0,188,212,0.08);
    color: var(--text); cursor: pointer; font-size: .85rem;
    transition: background .15s;
}
.done-modal .done-btns button:hover {
    background: rgba(0,188,212,0.2); color: var(--cyan);
}

/* ── Search Bar ──────────────────────────────────────────────── */
.search-bar-wrap { display: flex; gap: 10px; margin-bottom: 16px; }
.search-bar-wrap input {
    flex: 1;
    background: rgba(8, 18, 45, 0.55);
    border: 1px solid rgba(0,188,212,0.25);
    border-radius: 8px; padding: 9px 14px;
    color: var(--text); font-size: .88rem; outline: none;
    backdrop-filter: blur(8px);
}
.search-bar-wrap input:focus { border-color: rgba(0,188,212,0.7); }

/* ── Bottom Bar ──────────────────────────────────────────────── */
.bottom-bar {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 16px;
    background: rgba(4, 8, 22, 0.7);
    border-top: 1px solid rgba(0,188,212,0.12);
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}
.bottom-bar label { color: var(--text-muted); font-size: .85rem; cursor: pointer; }
.bottom-bar input[type=checkbox] { cursor: pointer; accent-color: var(--cyan); }

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
}
.auth-card {
    background: rgba(6, 12, 32, 0.72);
    border: 1px solid rgba(0,188,212,0.2);
    border-radius: 18px; padding: 36px 32px;
    width: 100%; max-width: 420px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.auth-title {
    text-align: center; font-size: 1.4rem;
    font-weight: 700; color: var(--text); margin-bottom: 4px;
}
.auth-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,152,0,0.8), transparent);
    margin: 10px 0 24px;
}
.auth-link { text-align: center; margin-top: 18px; font-size: .85rem; color: var(--text-muted); }
.auth-link a { color: var(--cyan); text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .apl-input { padding-left: 36px; }
.input-icon-wrap .icon-left {
    position: absolute; left: 11px; top: 50%;
    transform: translateY(-50%); color: var(--text-muted); font-size: .88rem;
}
.input-icon-wrap .icon-right {
    position: absolute; right: 11px; top: 50%;
    transform: translateY(-50%); color: var(--text-muted);
    font-size: .88rem; cursor: pointer;
}
.validation-msg { color: var(--red); font-size: .78rem; margin-top: 4px; }
.alert-box {
    background: rgba(244,67,54,0.12);
    border: 1px solid rgba(244,67,54,0.35);
    border-radius: 6px; padding: 8px 12px;
    margin-bottom: 16px; color: #ff8a80; font-size: .85rem;
}

/* ── Config Tab Styles ───────────────────────────────────────── */
.cfg-tabs { display: flex; border-bottom: 1px solid rgba(0,188,212,0.15); margin-bottom: 24px; }
.cfg-tab {
    background: none; border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted); padding: 9px 22px;
    font-size: .88rem; cursor: pointer;
    transition: color .2s, border-color .2s;
}
.cfg-tab:hover { color: var(--cyan); }
.cfg-tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.cfg-tab-content { }

.cfg-input {
    background: rgba(8, 18, 45, 0.55);
    border: 1px solid rgba(0,188,212,0.25);
    border-radius: 8px; padding: 8px 14px;
    color: var(--text); font-size: .87rem; outline: none;
    backdrop-filter: blur(8px); transition: border-color .2s;
}
.cfg-input:focus { border-color: rgba(0,188,212,0.7); }
.cfg-input::placeholder { color: rgba(122,153,187,0.6); }

.cfg-select {
    background: rgba(8, 18, 45, 0.55);
    border: 1px solid rgba(0,188,212,0.25);
    border-radius: 8px; padding: 8px 10px;
    color: var(--text); font-size: .85rem; outline: none; cursor: pointer;
}

.btn-cfg-cyan {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #000; border: none; border-radius: 20px;
    padding: 7px 22px; font-size: .84rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.btn-cfg-cyan:hover { background: linear-gradient(135deg,#0097a7,#006064); color:#fff; }
.btn-cfg-link {
    background: none; border: none;
    color: var(--cyan); font-size: .84rem; cursor: pointer; padding: 4px 2px;
}
.btn-cfg-link:hover { text-decoration: underline; }
.btn-cfg-red {
    background: linear-gradient(135deg,#f44336,#c62828);
    color: #fff; border: none; border-radius: 20px;
    padding: 7px 22px; font-size: .84rem; font-weight: 600; cursor: pointer;
}

.cfg-table-wrap {
    background: rgba(6, 12, 32, 0.55);
    border: 1px solid rgba(0,188,212,0.15);
    border-radius: 10px; overflow: hidden;
    backdrop-filter: blur(16px);
}
.cfg-table { width: 100%; border-collapse: collapse; }
.cfg-table thead th {
    padding: 9px 14px; font-size: .75rem;
    font-weight: 600; letter-spacing: .6px;
    border-bottom: 1px solid rgba(0,188,212,0.12);
    background: rgba(0,0,0,0.15);
}
.cfg-table thead th:nth-child(1) { color: #4caf50; }
.cfg-table thead th:nth-child(2) { color: var(--cyan); }
.cfg-table thead th:nth-child(3) { color: var(--orange); }
.cfg-table thead th:nth-child(4) { color: var(--text-muted); }
.cfg-table tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(0,188,212,0.05);
    font-size: .87rem; color: var(--text); vertical-align: middle;
}
.cfg-table tbody tr:last-child td { border-bottom: none; }
.cfg-table tbody tr:hover td { background: rgba(0,188,212,0.04); }
.cfg-action-edit { background:none; border:none; color:var(--green); font-size:.95rem; cursor:pointer; padding:3px 5px; }
.cfg-action-del  { background:none; border:none; color:var(--red);   font-size:.95rem; cursor:pointer; padding:3px 5px; }

/* ── WhatsApp Tab ────────────────────────────────────────────── */
.wa-section-title { font-size:.82rem; color:var(--text); font-weight:600; margin-bottom:5px; }
.wa-textarea {
    width:100%;
    background: rgba(6,14,38,0.6);
    border: 1px solid rgba(0,188,212,0.2);
    border-radius:8px; color:var(--text-muted);
    padding:10px 12px; font-size:.8rem; resize:vertical; outline:none;
    box-sizing:border-box; backdrop-filter:blur(8px);
}
.wa-textarea:focus { border-color: rgba(0,188,212,.6); }
.wa-placeholder-box {
    background: rgba(6,14,38,0.55);
    border: 1px solid rgba(0,188,212,0.12);
    border-radius:10px; padding:14px; backdrop-filter:blur(12px);
}
.wa-ph-row { display:flex; gap:6px; margin-bottom:5px; font-size:.78rem; align-items:baseline; }
.wa-ph-key   { color:var(--cyan); min-width:158px; font-family:monospace; }
.wa-ph-arrow { color:var(--text-muted); }
.wa-ph-val   { color:var(--text-muted); }
.wa-ph-divider{ height:1px; background:rgba(0,188,212,.1); margin:7px 0; }
.wa-toggle-box {
    background: rgba(6,14,38,0.55);
    border: 1px solid rgba(0,188,212,0.12);
    border-radius:10px; padding:14px 16px;
    display:flex; flex-direction:column; gap:10px; backdrop-filter:blur(12px);
}
.wa-toggle-row { display:flex; align-items:center; gap:10px; font-size:.85rem; color:var(--text-muted); cursor:pointer; }
.wa-chk { accent-color:var(--cyan); width:16px; height:16px; cursor:pointer; }
.wa-status-dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:4px; }
.wa-status-dot.not-login { background:var(--red); }
.wa-status-dot.logged-in { background:var(--green); }

/* ── Lodge Room Cards ────────────────────────────────────────── */
.lodge-room-card {
    background: rgba(8,15,38,0.55);
    border: 1px solid rgba(0,188,212,0.18);
    border-radius: 12px; padding: 16px;
    transition: transform .2s, border-color .2s, background .2s;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.lodge-room-card:hover { transform: translateY(-3px); background: rgba(10,20,48,0.65); }
.room-card-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:6px; }
.room-number { font-size:1.05rem; font-weight:700; color:var(--text); }
.room-floor  { font-size:.7rem; color:var(--text-muted); display:block; margin-top:1px; }
.room-status-badge { font-size:.68rem; font-weight:700; padding:3px 10px; border-radius:12px; color:#fff; }
.room-type-badge {
    font-size:.7rem;
    background: rgba(0,188,212,0.1);
    color:var(--cyan); border:1px solid rgba(0,188,212,0.2);
    border-radius:10px; padding:2px 10px;
}
.room-bed-info { display:flex; justify-content:space-between; font-size:.78rem; margin:10px 0 4px; color:var(--text-muted); }
.room-progress-bar { height:5px; background:rgba(255,255,255,0.08); border-radius:4px; margin-bottom:8px; overflow:hidden; }
.room-rent { font-size:1rem; font-weight:700; color:var(--cyan); margin-top:6px; }
.room-card-actions { display:flex; gap:8px; margin-top:12px; }

/* ── Utility Classes ─────────────────────────────────────────── */
.text-cyan   { color: var(--cyan)   !important; }
.text-green  { color: var(--green)  !important; }
.text-orange { color: var(--orange) !important; }
.text-red    { color: var(--red)    !important; }
.text-muted  { color: var(--text-muted) !important; }
.fw-700      { font-weight: 700; }
.mt-16       { margin-top: 16px; }
.mb-16       { margin-bottom: 16px; }
.gap-10      { gap: 10px; }

/* ── Custom Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,188,212,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,188,212,0.6); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .apl-table thead { display: none; }
    .apl-table td {
        display: block; text-align: right;
        padding-left: 50%; position: relative;
    }
    .apl-table td::before {
        content: attr(data-label);
        position: absolute; left: 12px;
        font-size: .72rem; color: var(--cyan); font-weight: 600;
    }
    .apl-modal { padding: 16px; }
    .auth-card { padding: 24px 18px; }
    .seat-btn { width: 44px; height: 36px; font-size: .72rem; }
    .done-modal { min-width: unset; width: 100%; }
}

/* ── Selection highlight ─────────────────────────────────────── */
::selection { background: rgba(0,188,212,0.25); color: #fff; }
