/* ============================================================
   PSYCON 2026 — Indian Psychiatric Society (WB Chapter)
   Purple #4A0080 / Gold #BB9059 / Light #FAF5FF
   Managed by Qubix Events & Conferences Pvt. Ltd.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --ps-purple:      #4A0080;
    --ps-purple-mid:  #6B21A8;
    --ps-purple-light:#9333EA;
    --ps-gold:        #BB9059;
    --ps-gold-light:  #D4A96A;
    --ps-bg:          #FAF5FF;
    --ps-bg-card:     #FFFFFF;
    --ps-text:        #1A0030;
    --ps-muted:       #6B5B7B;
    --ps-border:      rgba(74,0,128,0.15);
    --ps-success:     #15803D;
    --ps-danger:      #B91C1C;
    --ps-info:        #1D4ED8;
    --ps-warning:     #B45309;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--ps-bg);
    color: var(--ps-text);
    display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }

/* ── Typography ── */
h1,h2,h3 { font-family: 'Playfair Display', serif; color: var(--ps-purple); }

/* ── Navbar ── */
.ps-navbar {
    background: linear-gradient(135deg, var(--ps-purple) 0%, #2D0050 100%);
    border-bottom: 3px solid var(--ps-gold);
    box-shadow: 0 2px 20px rgba(74,0,128,0.35);
    padding: 0.6rem 1rem;
}
.ps-navbar .navbar-brand {
    font-weight: 800; color: #fff !important;
    font-size: 1.1rem; letter-spacing: 0.5px;
}
.ps-navbar .navbar-brand span { color: var(--ps-gold); }
.ps-navbar .nav-link { color: rgba(255,255,255,0.85) !important; font-size: 0.875rem; }
.ps-navbar .nav-link:hover { color: var(--ps-gold-light) !important; }
.ps-navbar .badge { background: var(--ps-gold) !important; color: #1A0030 !important; font-weight: 700; }

/* ── Footer ── */
.ps-footer {
    background: linear-gradient(135deg, #1A0030 0%, var(--ps-purple) 100%);
    border-top: 3px solid var(--ps-gold);
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem; padding: 1rem;
    text-align: center;
}
.ps-footer .qubix-brand { color: var(--ps-gold); font-weight: 600; }

/* ── Buttons ── */
.btn-ps-primary {
    background: linear-gradient(135deg, var(--ps-purple), #2D0050);
    border: none; color: #fff !important;
    box-shadow: 0 4px 14px rgba(74,0,128,0.4);
    transition: all 0.25s;
}
.btn-ps-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(74,0,128,0.5); color: #fff !important; }

.btn-ps-gold {
    background: linear-gradient(135deg, var(--ps-gold), #8B5E2A);
    border: none; color: #fff !important;
    box-shadow: 0 4px 12px rgba(187,144,89,0.4);
}
.btn-ps-gold:hover { transform: translateY(-2px); color: #fff !important; }

.btn-ps-success { background: linear-gradient(135deg, #15803D, #166534); color: #fff !important; border: none; }
.btn-ps-danger  { background: linear-gradient(135deg, #B91C1C, #991B1B); color: #fff !important; border: none; }
.btn-ps-info    { background: linear-gradient(135deg, #1D4ED8, #1e40af); color: #fff !important; border: none; }
.btn-ps-warning { background: linear-gradient(135deg, #B45309, #92400E); color: #fff !important; border: none; }

/* ── Cards ── */
.ps-card {
    background: var(--ps-bg-card);
    border-radius: 16px;
    border: 1px solid var(--ps-border);
    box-shadow: 0 4px 16px rgba(74,0,128,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.ps-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(74,0,128,0.15); }
.ps-card-header {
    background: linear-gradient(135deg, var(--ps-purple), var(--ps-purple-mid));
    color: #fff; padding: 1rem 1.25rem;
    border-bottom: 3px solid var(--ps-gold);
}
.ps-card-header h4,.ps-card-header h5,.ps-card-header h6 { color: #fff !important; margin: 0; font-family: 'Inter', sans-serif; font-weight: 700; }

/* ── Stat Cards ── */
.ps-stat {
    background: #fff; border-radius: 14px;
    border-left: 5px solid var(--ps-purple);
    box-shadow: 0 2px 12px rgba(74,0,128,0.08);
    padding: 1rem 1.25rem;
    transition: transform 0.2s;
}
.ps-stat:hover { transform: translateY(-2px); }
.ps-stat.gold   { border-left-color: var(--ps-gold); }
.ps-stat.green  { border-left-color: var(--ps-success); }
.ps-stat.red    { border-left-color: var(--ps-danger); }
.ps-stat.blue   { border-left-color: var(--ps-info); }
.ps-stat.orange { border-left-color: var(--ps-warning); }
.ps-stat-value  { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: var(--ps-purple); line-height: 1; }
.ps-stat-label  { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ps-muted); font-weight: 600; margin-top: 4px; }

/* ── Hero ── */
.ps-hero {
    background: linear-gradient(135deg, var(--ps-purple) 0%, #2D0050 60%, #1A0030 100%);
    color: #fff; position: relative; overflow: hidden;
}
.ps-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(187,144,89,0.15) 0, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(147,51,234,0.2) 0, transparent 50%);
}
.ps-hero .ps-content { position: relative; z-index: 2; }
.ps-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.ps-hero .ps-subtitle { color: rgba(255,255,255,0.85); }

.ps-meta-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(187,144,89,0.4);
    border-radius: 50px; padding: 0.4rem 1rem; margin: 0.2rem;
    font-size: 0.875rem; backdrop-filter: blur(6px);
}
.ps-meta-pill i { color: var(--ps-gold); }

/* ── Service Buttons ── */
.ps-service-btn {
    border-radius: 10px; padding: 0.6rem 1rem;
    font-size: 0.85rem; font-weight: 600;
    border: 2px solid transparent; transition: all 0.2s;
    cursor: pointer; width: 100%;
}
.ps-service-btn.unmarked {
    background: #f8f0ff; border-color: var(--ps-purple);
    color: var(--ps-purple);
}
.ps-service-btn.marked {
    background: var(--ps-purple); color: #fff;
    border-color: var(--ps-purple);
}
.ps-service-btn.locked {
    background: #e8d5ff; color: #6B21A8;
    border-color: #C084FC; cursor: default; opacity: 0.75;
}

/* ── Scanner ── */
.ps-scanner-card {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(74,0,128,0.2);
    border: 2px solid var(--ps-border);
}
.ps-scanner-header {
    background: linear-gradient(135deg, var(--ps-purple), var(--ps-purple-mid));
    padding: 1.25rem; text-align: center; color: #fff;
}
.ps-guest-result {
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Hotel module ── */
.ps-hotel-badge {
    background: linear-gradient(135deg, var(--ps-gold), #8B5E2A);
    color: #fff; border-radius: 8px; padding: 0.35rem 0.75rem;
    font-size: 0.8rem; font-weight: 600; display: inline-block;
}
.ps-checkin-tag  { background: #D1FAE5; color: #065F46; border-radius: 6px; padding: 2px 8px; font-size: 0.75rem; font-weight: 600; }
.ps-checkout-tag { background: #FEE2E2; color: #991B1B; border-radius: 6px; padding: 2px 8px; font-size: 0.75rem; font-weight: 600; }

/* ── Travel module ── */
.ps-car-badge {
    background: linear-gradient(135deg, #1D4ED8, #1e40af);
    color: #fff; border-radius: 8px; padding: 0.35rem 0.75rem;
    font-size: 0.8rem; font-weight: 600; display: inline-block;
}

/* ── Day tabs ── */
.ps-day-tab {
    border-bottom: 3px solid transparent;
    color: var(--ps-muted); font-weight: 600;
    padding: 0.5rem 1rem; cursor: pointer;
    transition: all 0.2s;
}
.ps-day-tab.active {
    border-bottom-color: var(--ps-gold);
    color: var(--ps-purple);
}

/* ── Live bar ── */
.ps-live-bar {
    background: linear-gradient(90deg, #1A0030, var(--ps-purple));
    color: #fff; text-align: center;
    padding: 0.4rem 1rem; font-size: 0.8rem;
    font-weight: 600; letter-spacing: 0.5px;
}
.ps-live-bar .ps-live-dot {
    display: inline-block; width: 8px; height: 8px;
    background: #4ADE80; border-radius: 50%;
    margin-right: 6px; animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* ── Table ── */
.ps-table thead th {
    background: linear-gradient(135deg, var(--ps-purple), var(--ps-purple-mid)) !important;
    color: #fff !important; font-weight: 600; border: none;
}
.ps-table tbody tr:hover { background: var(--ps-bg) !important; }

/* ── Login ── */
.ps-login-wrap {
    min-height: 80vh; display: flex; align-items: center;
    justify-content: center; padding: 2rem 1rem;
}
.ps-login-card { width: 100%; max-width: 420px; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 48px rgba(74,0,128,0.25); }
.ps-login-header {
    background: linear-gradient(135deg, var(--ps-purple), var(--ps-purple-mid));
    padding: 2rem; text-align: center;
}
.ps-login-logo { font-size: 2.5rem; font-weight: 800; color: #fff; font-family: 'Playfair Display', serif; }
.ps-login-sub  { color: var(--ps-gold); font-weight: 600; font-size: 0.85rem; letter-spacing: 2px; }

/* ── Badge type pills ── */
.badge-DELEGATE    { background: #7C3AED !important; }
.badge-PGT_STUDENT { background: #2563EB !important; }
.badge-ACCOMPANYING{ background: #D97706 !important; }
.badge-FACULTY     { background: #059669 !important; }
.badge-ORGANISER   { background: #DC2626 !important; }
.badge-CORPORATE   { background: #0891B2 !important; }
.badge-STAFF       { background: #6B7280 !important; }

/* ── Qubix branding ── */
.qubix-powered {
    font-size: 0.7rem; color: var(--ps-muted);
    text-align: center; padding: 0.25rem;
}
.qubix-powered a { color: var(--ps-gold); text-decoration: none; font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .ps-hero { padding: 2rem 1rem 3rem; }
    .ps-stat  { padding: 0.75rem 1rem; }
    .ps-stat-value { font-size: 1.5rem; }
}

/* ── Form controls ── */
.form-control:focus, .form-select:focus {
    border-color: var(--ps-purple);
    box-shadow: 0 0 0 3px rgba(74,0,128,0.2);
}

/* ── Wave divider ── */
.ps-wave svg { width: 100%; height: 50px; display: block; }
