/* ─── ShowCue - Global Styles ─── */

:root {
    --bg-primary: #060e16;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-input: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #bcbcbc;
    --text-muted: #666666;
    --accent: #00ffd2;
    --accent-hover: #00e6bd;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #5cb3ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    min-height: 100vh;
    font-size: 12px;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at top right, rgba(0, 255, 210, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(0, 255, 210, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ─── Navbar ─── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    border-bottom: 1px solid var(--border);
}
.logo {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}
.logo-icon { height: 25px; width: auto; vertical-align: middle; margin-right: 6px; position: relative; top: -2px; }
.logo span { color: var(--accent); }
.logo span.logo-live { color: var(--danger); font-weight: 600; }
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text-secondary); }
.nav-link-muted { font-size: 12px; }
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}
.zoom-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s;
}
.zoom-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}
.zoom-level {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 40px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}
.zoom-level:hover {
    color: var(--text-primary);
}
.nav-avatar-wrap {
    position: relative;
}
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
    overflow: hidden;
}
.nav-avatar:hover {
    border-color: var(--accent);
}
.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-avatar span {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}
.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 170px;
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s ease;
    z-index: 100;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.nav-avatar-wrap.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.15s;
}
.nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}
.nav-dropdown a i {
    width: 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}
.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 3px 0;
}
.btn-nav {
    padding: 6px 16px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 255, 210, 0.2);
}

/* ─── Container ─── */
.container {
    width: 100%;
    padding: 16px 24px;
}

.container-fluid {
    width: 100%;
    padding: 16px 24px;
}

/* ─── Auth Layout ─── */
.auth-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 56px);
    padding: 16px;
    padding-top: calc((100vh - 56px) * 0.12);
}
.auth-wrapper.auth-fullpage {
    min-height: 100vh;
    padding-top: 48px;
}
.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 24px;
}
.auth-logo .logo-icon {
    height: 64px;
    width: auto;
    margin: 0 0 8px 0;
}
.auth-logo-text { color: var(--text-primary); }
.auth-logo-text span { color: var(--accent); }
.auth-logo-text .logo-live { color: var(--danger); font-weight: 600; }
.auth-card {
    width: 100%;
    max-width: 400px;
}
.auth-card h2 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: center;
}
.auth-card .auth-subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

/* ─── Cards ─── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}
.card-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.card-header h3 {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}
.card-header i { color: var(--accent); font-size: 13px; }
.card-body { padding: 12px 16px; }

/* ─── Forms ─── */
.form-group { margin-bottom: 8px; }
.form-label {
    display: block;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 255, 210, 0.05);
}
.form-control::placeholder { color: #555; }
.form-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}
.form-text a { color: var(--accent); text-decoration: none; }
.form-text a:hover { text-decoration: underline; }
textarea.form-control { resize: vertical; min-height: 60px; }
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}
select.form-control option {
    background: #0d1821;
    color: #fff;
}

/* ─── Buttons ─── */
.btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 255, 210, 0.2);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 10px 22px; font-size: 14px; font-weight: 600; }
.btn-google {
    background: #fff;
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}
.btn-google:hover {
    background: #f1f1f1;
    color: #333;
}

/* ─── Auth Divider ─── */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 14px 0;
    color: var(--text-muted);
    font-size: 11px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    padding: 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── Alerts ─── */
.alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-success {
    background: rgba(0, 255, 210, 0.1);
    border: 1px solid rgba(0, 255, 210, 0.3);
    color: var(--accent);
}
.alert-danger {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff6b6b;
}
.alert-info {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    color: var(--info);
}
.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: var(--warning);
}

/* ─── Grid ─── */
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.col-6 { flex: 1; min-width: 180px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* ─── Page header ─── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}
.page-header h1 i {
    color: var(--accent);
    margin-right: 8px;
}

/* ─── Divider ─── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 12px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border);
}

/* ─── Admin Layout ─── */
.admin-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
}
.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.admin-menu-item:hover {
    color: var(--text-secondary);
    background: var(--bg-input);
}
.admin-menu-item.active {
    color: var(--accent);
    background: rgba(0, 255, 210, 0.08);
}
.admin-menu-item i { width: 18px; text-align: center; }
@media (max-width: 768px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { flex-direction: row; overflow-x: auto; }
}

/* ─── Tables ─── */
.table-wrapper {
    overflow-x: auto;
}
table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
table.table th {
    text-align: left;
    padding: 8px 12px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
table.table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
table.table tr:hover td {
    background: var(--bg-input);
}
table.table .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success { background: rgba(0, 255, 210, 0.15); color: var(--accent); }
.badge-warning { background: rgba(255, 193, 7, 0.15); color: var(--warning); }
.badge-danger { background: rgba(220, 53, 69, 0.15); color: #ff6b6b; }
.badge-info { background: rgba(92, 179, 255, 0.15); color: var(--info); }

/* ─── Toggle Switch ─── */
.toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    transition: 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle input:checked + .toggle-slider {
    background: var(--accent);
}
.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ─── Small buttons ─── */
.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
}
.btn-danger:hover { background: #c82333; }
.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── Landing Page ─── */
.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 16px;
}
.landing-logo { width: 120px; height: 120px; }
.landing-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}
.landing-title span { color: var(--accent); }
.landing-title .logo-live { color: var(--danger); font-weight: 600; }

/* ─── Modal ─── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-header h3 i { color: var(--accent); font-size: 13px; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 16px; }
