/* =========================================================================
   GroomChat Regie / Control Panel Styles
   Aufbauend auf ../assets/css/streamtools-brand.css
   ========================================================================= */

body {
    background-color: var(--canvas-bg);
    color: var(--text-main);
    font-family: 'Outfit', 'RTLUnitedText', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Navbar Status Pills */
.nav-center-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.live-pill.on-air {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
}

.live-pill.off-air {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.35);
}

.live-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.phase-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.phase-pill.phase-coc {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.38);
}

.phase-pill.phase-wa {
    background: rgba(0, 168, 132, 0.2);
    color: #2dd4bf;
    border: 1px solid rgba(0, 168, 132, 0.42);
}

.step-counter-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
}

.sync-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
}

.sync-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    transition: transform 0.2s, background 0.2s;
}

.sync-indicator.syncing .sync-dot {
    background: var(--accent);
    transform: scale(1.35);
}

/* =========================================================================
   MAIN LAYOUT GRID
   ========================================================================= */
.regie-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
    padding: 20px 24px 28px;
    max-width: 1760px;
    width: 100%;
    margin: 0 auto;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.control-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
}

/* =========================================================================
   PRIMARY TRIGGER CARD
   ========================================================================= */
.main-trigger-card {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.eyebrow-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 3px;
}

.card-header-row h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.shortcut-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.shortcut-hint kbd {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-family: inherit;
    color: #fff;
}

/* Now / Next Boxes */
.now-next-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.state-box {
    background: rgba(10, 14, 22, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 112px;
}

.state-box.current-box {
    border-color: rgba(255, 90, 0, 0.4);
    background: linear-gradient(160deg, rgba(255, 90, 0, 0.09) 0%, rgba(10, 14, 22, 0.65) 100%);
}

.state-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.state-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
}

.state-tag.live {
    background: rgba(255, 90, 0, 0.25);
    color: #ff985c;
}

.state-tag.up-next {
    background: rgba(59, 130, 246, 0.22);
    color: #93c5fd;
}

.state-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
}

.state-sender {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.state-text {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Big Prev / Next Buttons */
.primary-actions-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
}

.btn-step-prev {
    height: 70px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
}

.btn-step-next {
    height: 70px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-shadow: 0 8px 26px rgba(255, 90, 0, 0.3);
}

.btn-next-main {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.18rem;
    font-weight: 700;
}

.btn-next-sub {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.88;
}

.btn-step-prev:disabled,
.btn-step-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Quick Jump Bar */
.quick-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--glass-border);
}

.quick-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.glass-btn.small {
    padding: 8px 13px;
    font-size: 0.84rem;
    border-radius: 8px;
}

.glass-btn.tiny {
    padding: 5px 10px;
    font-size: 0.78rem;
    border-radius: 6px;
}

/* =========================================================================
   LOWER CARDS: SETTINGS & LIVE MONITOR
   ========================================================================= */
.lower-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    flex: 1;
    min-height: 280px;
}

.settings-card,
.preview-card {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel-title-sm {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-main);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.panel-title-sm i {
    color: var(--accent);
    font-size: 1.15rem;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.setting-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.setting-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.volume-control-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

#slider-volume {
    width: 105px;
    accent-color: var(--accent);
    cursor: pointer;
}

.compact-select {
    width: auto;
    min-width: 195px;
    padding: 7px 32px 7px 11px;
    font-size: 0.82rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.14);
    transition: 0.25s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--accent);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* Live Stream 16:9 Simulation Monitor */
.stream-Simulation-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 30% 50%, #161f30 0%, #090d14 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    margin-bottom: auto;
}

.stream-camera-area {
    position: absolute;
    top: 0;
    right: 0;
    width: 61.5%;
    height: 100%;
    border-left: 1px dashed rgba(255, 255, 255, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    pointer-events: none;
}

.stream-cam-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 3px 9px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stream-cam-hint {
    font-size: 0.74rem;
    color: var(--text-dim);
    max-width: 210px;
    line-height: 1.35;
}

#overlay-preview-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    border: none;
    transform: scale(0.333333);
    transform-origin: top left;
    pointer-events: none;
}

/* =========================================================================
   RIGHT COLUMN: TIMELINE / PLAYLIST
   ========================================================================= */
.timeline-column {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.timeline-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.timeline-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.timeline-filter-tabs {
    display: flex;
    gap: 6px;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.filter-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.filter-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.timeline-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 4px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    color: inherit;
    font-family: inherit;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.timeline-item.is-shown {
    opacity: 0.62;
}

.timeline-item.is-active {
    opacity: 1;
    background: rgba(255, 90, 0, 0.16);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.35);
}

.timeline-item.is-next {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.08);
}

.step-num-badge {
    min-width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-item.is-active .step-num-badge {
    background: var(--accent);
    color: #fff;
}

.timeline-item.is-next .step-num-badge {
    background: #3b82f6;
    color: #fff;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.timeline-sender {
    font-size: 0.84rem;
    font-weight: 700;
    color: #f8fafc;
}

.timeline-sender.sender-queen {
    color: #fbbf24;
}

.timeline-sender.sender-racer {
    color: #34d399;
}

.timeline-sender.sender-narr {
    color: #fb923c;
}

.timeline-badges {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mini-section-pill {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.mini-section-pill.coc {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.mini-section-pill.whatsapp {
    background: rgba(0, 168, 132, 0.22);
    color: #2dd4bf;
}

.timeline-text {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.35;
    word-break: break-word;
}

@media (max-width: 1180px) {
    .regie-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    .timeline-column {
        max-height: 600px;
    }
}

