/* ═══ STAGE QUEUE — Main Stylesheet (Light Theme) ═══ */
:root {
    --bg: #f5f7fa; --bg2: #ffffff; --card: #ffffff;
    --brd: #e0e3ea; --gold: #c8872e; --gdim: rgba(200,135,46,0.08);
    --rose: #e74c5e; --teal: #0d9668; --blue: #3b82f6;
    --navy: #1e2a4a; --txt: #2d3348; --dim: #5a5f72; --mut: #9299a8;
    --fd: 'Kanit', sans-serif; --fb: 'Kanit', sans-serif;
    --radius: 14px; --shadow: 0 2px 12px rgba(0,0,0,0.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--fb); background: var(--bg); color: var(--txt); min-height: 100vh; line-height: 1.7; font-size: 16px; }
a { color: var(--gold); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5 { font-family: var(--fd); color: var(--navy); line-height: 1.3; }
h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 600; }
h5 { font-size: 15px; font-weight: 600; }

/* ═══ BUTTONS ═══ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 12px;
    font-family: var(--fd); font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: all 0.2s; }
.btn-gold { background: linear-gradient(135deg, #d4943a, #c07a28); color: #fff; box-shadow: 0 3px 12px rgba(200,135,46,0.25); }
.btn-outline { background: transparent; border: 2px solid rgba(200,135,46,0.4); color: var(--gold); }
.btn-ghost { background: #f0f1f5; border: 1px solid var(--brd); color: var(--dim); }
.btn-teal { background: rgba(13,150,104,0.08); border: 1px solid rgba(13,150,104,0.3); color: var(--teal); }
.btn-rose { background: rgba(231,76,94,0.08); border: 1px solid rgba(231,76,94,0.3); color: var(--rose); }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-family: var(--fd); font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 13px 16px; background: #fff; border: 1.5px solid var(--brd);
    border-radius: 12px; color: var(--txt); font-family: var(--fb); font-size: 15px; outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,135,46,0.1); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-error { color: var(--rose); font-size: 13px; margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
select option { background: #fff; color: var(--txt); }

/* ═══ CARDS ═══ */
.card { background: #fff; border: 1.5px solid var(--brd); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-title { font-family: var(--fd); font-weight: 700; font-size: 20px; color: var(--navy); }

/* ═══ STATS ═══ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1.5px solid var(--brd); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.stat-card[data-color="gold"] { border-top: 3px solid var(--gold); }
.stat-card[data-color="teal"] { border-top: 3px solid var(--teal); }
.stat-card[data-color="rose"] { border-top: 3px solid var(--rose); }
.stat-card[data-color="blue"] { border-top: 3px solid var(--blue); }
.stat-label { font-size: 13px; color: var(--dim); margin-bottom: 6px; font-weight: 500; }
.stat-value { font-family: var(--fd); font-weight: 800; font-size: 24px; }
.stat-card[data-color="gold"] .stat-value { color: var(--gold); }
.stat-card[data-color="teal"] .stat-value { color: var(--teal); }
.stat-card[data-color="rose"] .stat-value { color: var(--rose); }
.stat-card[data-color="blue"] .stat-value { color: var(--blue); }

/* ═══ STATUS BADGES ═══ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.badge-confirmed { background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.3); color: #34d399; }
.badge-pending { background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.3); color: #fbbf24; }
.badge-negotiating { background: rgba(96,165,250,0.1); border-color: rgba(96,165,250,0.3); color: #60a5fa; }
.badge-completed { background: rgba(148,163,184,0.1); border-color: rgba(148,163,184,0.3); color: #94a3b8; }
.badge-cancelled { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.3); color: #f87171; }
.badge-available { background: rgba(52,211,153,0.15); color: #34d399; border-color: rgba(52,211,153,0.3); }
.badge-unavailable { background: rgba(248,113,113,0.15); color: #f87171; border-color: rgba(248,113,113,0.3); }
.badge-booked { background: rgba(251,191,36,0.15); color: #fbbf24; border-color: rgba(251,191,36,0.3); }

/* ═══ GENRE TAGS ═══ */
.tag { display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 13px; background: var(--gdim); color: var(--gold); }
.tag-btn { cursor: pointer; border: 1.5px solid var(--brd); background: #f5f6f8; color: var(--dim); transition: all 0.2s; }
.tag-btn.active { background: var(--gdim); border-color: var(--gold); color: var(--gold); }

/* ═══ LAYOUT ═══ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page-header { padding: 24px 0; border-bottom: 1.5px solid var(--brd); margin-bottom: 28px; }
.page-title { font-family: var(--fd); font-weight: 800; font-size: 28px; color: var(--navy); }

/* ═══ NAVBAR ═══ */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px;
    border-bottom: 1.5px solid var(--brd); background: #fff;
    position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-brand-icon { font-size: 24px; }
.navbar-brand-text { font-family: var(--fd); font-weight: 800; font-size: 20px; color: var(--navy); }
.navbar-user { display: flex; align-items: center; gap: 14px; }
.navbar-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gdim); display: flex;
    align-items: center; justify-content: center; font-size: 20px; border: 2px solid rgba(200,135,46,0.3); }
.navbar-links { display: flex; gap: 6px; padding: 14px 28px; border-bottom: 1.5px solid var(--brd); overflow-x: auto; background: #fff; }
.nav-tab { padding: 10px 20px; border-radius: 10px; font-family: var(--fd); font-size: 14px; color: var(--dim);
    border: 1.5px solid transparent; white-space: nowrap; transition: all 0.2s; text-decoration: none; font-weight: 500; }
.nav-tab:hover { color: var(--gold); background: var(--gdim); }
.nav-tab.active { background: var(--gdim); border-color: rgba(200,135,46,0.3); color: var(--gold); font-weight: 600; }
.notif-badge { background: var(--rose); color: white; border-radius: 10px; padding: 2px 8px; font-size: 11px; font-weight: 700; }

/* ═══ GIG LIST ═══ */
.gig-item { background: #fff; border: 1.5px solid var(--brd); border-radius: 14px; margin-bottom: 12px;
    overflow: hidden; transition: all 0.3s; box-shadow: var(--shadow); }
.gig-item:hover { border-color: rgba(200,135,46,0.3); }
.gig-row { padding: 16px 20px; display: grid; grid-template-columns: 1fr auto auto; align-items: center;
    gap: 16px; cursor: pointer; }
.gig-title { font-family: var(--fd); font-weight: 600; font-size: 16px; }
.gig-meta { font-size: 14px; color: var(--dim); margin-top: 4px; }
.gig-date { font-size: 15px; font-weight: 600; color: var(--gold); text-align: right; }
.gig-countdown { font-size: 13px; }
.gig-countdown.urgent { color: var(--rose); }
.gig-countdown.soon { color: #fbbf24; }
.gig-countdown.normal { color: var(--teal); }
.gig-countdown.past { color: var(--mut); }
.gig-fee { background: var(--gdim); border-radius: 10px; padding: 8px 14px; text-align: right; }
.gig-fee-amount { font-family: var(--fd); font-weight: 600; font-size: 14px; color: var(--gold); }
.gig-detail { padding: 0 18px 16px; border-top: 1px solid var(--brd); padding-top: 14px; }
.gig-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* ═══ CALENDAR ═══ */
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-month { font-family: var(--fd); font-weight: 500; font-size: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-day-label { text-align: center; padding: 6px; font-size: 11px; color: var(--mut); font-weight: 600; font-family: var(--fd); }
.cal-cell { min-height: 68px; padding: 6px; border-radius: 10px; background: var(--card); border: 1px solid var(--brd); transition: all 0.15s; position: relative; }
.cal-cell.empty { background: transparent; border: none; }
.cal-cell.today { border: 2px solid var(--gold); }
.cal-cell.past { opacity: 0.35; }
.cal-cell.clickable { cursor: pointer; }
.cal-cell.clickable:hover { border-color: rgba(52,211,153,0.4); }
.cal-cell.available { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.25); }
.cal-cell.unavailable { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.25); }
.cal-cell.booked { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.25); }
.cal-num { font-size: 12px; color: var(--dim); }
.cal-cell.today .cal-num { color: var(--gold); font-weight: 700; }
.cal-status { font-size: 9px; font-weight: 500; font-family: var(--fd); margin-top: 4px; }
.cal-gig { margin-top: 2px; font-size: 8px; padding: 1px 4px; border-radius: 4px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }
.cal-legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.cal-legend-item { display: flex; align-items: center; gap: 5px; font-size: 12px; padding: 5px 12px;
    border-radius: 8px; border: 1px solid var(--brd); }
.cal-legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.cal-quick-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ═══ SINGER CARD (Browse) ═══ */
.singer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.singer-card { background: var(--card); border: 1px solid var(--brd); border-radius: 16px; padding: 20px;
    cursor: pointer; transition: all 0.3s; }
.singer-card:hover, .singer-card.selected { border-color: rgba(232,179,81,0.3); background: rgba(232,179,81,0.04); }
.singer-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.singer-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gdim); display: flex;
    align-items: center; justify-content: center; font-size: 26px; border: 2px solid rgba(232,179,81,0.3); flex-shrink: 0; }
.singer-name { font-family: var(--fd); font-weight: 600; font-size: 16px; color: var(--gold); }
.singer-realname { font-size: 12px; color: var(--dim); }
.singer-avail-badge { margin-left: auto; background: rgba(52,211,153,0.12); border-radius: 8px; padding: 4px 10px;
    font-size: 11px; color: #34d399; font-weight: 600; font-family: var(--fd); flex-shrink: 0; }
.singer-genres { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.singer-bio { font-size: 12px; color: var(--dim); margin-bottom: 8px; line-height: 1.5; }
.singer-fee { font-size: 12px; color: var(--gold); margin-bottom: 8px; }
.singer-footer { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut);
    border-top: 1px solid var(--brd); padding-top: 10px; }

/* ═══ MESSAGES ═══ */
.msg-list { max-height: 400px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg-bubble { max-width: 75%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.msg-mine { align-self: flex-end; background: var(--gdim); color: var(--txt); border-bottom-right-radius: 4px; }
.msg-theirs { align-self: flex-start; background: #f5f5f7; border-bottom-left-radius: 4px; }
.msg-time { font-size: 10px; color: var(--mut); margin-top: 4px; }
.msg-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--brd); }

/* ═══ TABLE ═══ */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 14px 18px; text-align: left; font-size: 13px; color: var(--dim); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--brd); font-family: var(--fd); }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--brd); font-size: 15px; }
.data-table tr:hover td { background: #f8f9fb; }

/* ═══ MODAL ═══ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: linear-gradient(145deg, #1a1825, #12111a); border: 1px solid rgba(232,179,81,0.2);
    border-radius: 20px; padding: 28px; width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

/* ═══ NOTIFICATION DROPDOWN ═══ */
.notif-dropdown { position: absolute; top: 100%; right: 0; width: 360px; background: var(--bg2);
    border: 1px solid var(--brd); border-radius: 12px; box-shadow: var(--shadow); z-index: 150;
    max-height: 400px; overflow-y: auto; display: none; }
.notif-dropdown.open { display: block; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--brd); font-size: 13px; transition: background 0.2s; }
.notif-item:hover { background: #f0f0f2; }
.notif-item.unread { border-left: 3px solid var(--gold); }

/* ═══ LANDING ═══ */
.landing { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px; text-align: center; position: relative; }
.landing-bg { position: fixed; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; }
.orb-1 { top: -15%; left: 10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(232,179,81,0.05), transparent 70%); }
.orb-2 { bottom: -10%; right: 5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(232,81,122,0.04), transparent 70%); }
.landing-content { position: relative; z-index: 1; animation: slideUp 0.8s ease; }
.landing-icon { font-size: 64px; margin-bottom: 16px; }
.landing-title { font-family: var(--fd); font-weight: 800; font-size: clamp(36px, 6vw, 56px); line-height: 1.1; margin-bottom: 12px;
    background: linear-gradient(135deg, #e8b351, #e8517a, #e8b351); background-size: 200% auto;
    animation: shimmer 4s linear infinite; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.landing-subtitle { color: var(--dim); font-size: 16px; font-weight: 300; max-width: 460px; margin: 0 auto 32px; line-height: 1.7; }
.landing-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
    max-width: 700px; margin: 0 auto 36px; }
.feature-card { background: var(--card); border: 1px solid var(--brd); border-radius: 14px; padding: 20px; text-align: center; cursor: pointer; transition: all 0.2s; display: block; }
a.feature-card { text-decoration: none; color: inherit; }
.feature-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(232,179,81,0.15); }
.feature-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.feature-card h3 { font-family: var(--fd); font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.feature-card p { font-size: 12px; color: var(--dim); line-height: 1.5; }
.landing-actions { display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin: 0 auto 16px; }
.landing-links { margin-top: 8px; }
.landing-links a { color: var(--dim); font-size: 13px; }
.landing-footer { position: absolute; bottom: 20px; color: var(--mut); font-size: 12px; }

/* ═══ AUTH PAGES ═══ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { max-width: 440px; width: 100%; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-icon { font-size: 40px; margin-bottom: 8px; }
.auth-title { font-family: var(--fd); font-weight: 700; font-size: 22px; color: var(--gold); }
.steps { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.step-bar { width: 80px; height: 4px; border-radius: 2px; background: var(--brd); transition: background 0.3s; }
.step-bar.active { background: var(--gold); }

/* ═══ ALERT ═══ */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; }
.alert-error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #f87171; }
.alert-success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.3); color: #34d399; }

/* ═══ PAGINATION ═══ */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; font-size: 13px; border: 1px solid var(--brd); color: var(--dim); }
.pagination .active { background: var(--gdim); border-color: var(--gold); color: var(--gold); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .gig-row { grid-template-columns: 1fr; gap: 8px; }
    .singer-grid { grid-template-columns: 1fr; }
    .landing-features { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .navbar { padding: 12px 16px; }
    .container { padding: 0 12px; }
}

/* ═══ ANIMATIONS ═══ */
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.animate-in { animation: slideUp 0.5s ease both; }

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--gdim); border-radius: 4px; }

/* ═══ EMPTY STATE ═══ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--dim); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-text { font-family: var(--fd); font-size: 16px; }
