/* Auto-extracted template styles. Keep selectors scoped or migrate into app CSS when editing. */

/* Extracted from templates/ai/generate.html */
.ai-response { background: #f8f9fa; border-left: 4px solid #8b5cf6; padding: 1rem; border-radius: .5rem; white-space: pre-wrap; font-size: .9rem; max-height: 400px; overflow-y: auto; }

/* Extracted from templates/auth/login.html */
/* ── Reset topbar space ──────────────────────────────────────────── */
.login-page-wrapper {
    margin-top: -56px;
    min-height: 100vh;
    display: flex;
}

/* ── Left panel — tactical branding ─────────────────────────────── */
.login-left {
    flex: 1 1 55%;
    background: #0b1120;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3.5rem;
    color: #e2e8f0;
}

/* Dot-grid background */
.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(52, 152, 219, 0.18) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Glowing sweep line */
.login-left::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52,152,219,0.07), transparent);
    animation: sweep 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sweep {
    0%   { left: -60%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}

/* Radar rings */
.radar-ring {
    position: absolute;
    bottom: -120px;
    right: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1.5px solid rgba(52,152,219,0.12);
    pointer-events: none;
}
.radar-ring::before,
.radar-ring::after {
    content: '';
    position: absolute;
    inset: 60px;
    border-radius: 50%;
    border: 1px solid rgba(52,152,219,0.10);
}
.radar-ring::after { inset: 140px; }

.radar-pulse {
    position: absolute;
    bottom: 30px; right: 30px;
    width: 260px; height: 260px;
    border-radius: 50%;
    border: 1.5px solid rgba(52,152,219,0.25);
    animation: radarPulse 3.5s ease-out infinite;
    pointer-events: none;
}
@keyframes radarPulse {
    0%   { transform: scale(0.3); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

.login-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}
.login-brand-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3498db, #1d6fa4);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: white;
    box-shadow: 0 4px 16px rgba(52,152,219,.45);
}
.login-brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.5px;
    color: #f1f5f9;
}
.login-brand-name span { color: #3498db; }

.login-tagline {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: #f1f5f9;
}
.login-tagline em {
    font-style: normal;
    color: #3498db;
}

.login-desc {
    font-size: .9rem;
    color: #94a3b8;
    max-width: 400px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Status chip */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(16, 185, 129, .12);
    border: 1px solid rgba(16, 185, 129, .25);
    color: #34d399;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}
.status-chip .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.2;} }

/* Feature list */
.feature-list {
    list-style: none;
    padding: 0; margin: 0;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem 1.5rem;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    color: #94a3b8;
}
.feature-list li i {
    color: #3498db;
    font-size: .8rem;
    width: 14px;
    flex-shrink: 0;
}

.login-version {
    position: absolute;
    bottom: 1.5rem; left: 3.5rem;
    font-size: .7rem;
    color: #475569;
    z-index: 1;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* ── Right panel — form ──────────────────────────────────────────── */
.login-right {
    flex: 0 0 420px;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    border-left: 1px solid rgba(52,152,219,.12);
    position: relative;
}

.login-right-header { margin-bottom: 2rem; }
.login-right-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: .35rem;
}
.login-right-header p {
    font-size: .82rem;
    color: #64748b;
    margin: 0;
}

/* Inputs */
.lf-group { margin-bottom: 1.15rem; }
.lf-group label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #64748b;
    margin-bottom: .45rem;
}
.lf-group label i { font-size: .7rem; }

.lf-input {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: .7rem 1rem;
    color: #f1f5f9;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.lf-input::placeholder { color: #475569; }
.lf-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,.18);
}
.lf-input.is-invalid { border-color: #ef4444; }
.lf-input.is-valid   { border-color: #10b981; }

.lf-pw-wrap { position: relative; }
.lf-pw-wrap .lf-input { padding-right: 2.8rem; }
.lf-pw-toggle {
    position: absolute;
    right: .9rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: #475569; cursor: pointer;
    padding: 0; font-size: .85rem;
    transition: color .2s;
}
.lf-pw-toggle:hover { color: #94a3b8; }

/* Remember */
.lf-remember {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}
.lf-remember input[type="checkbox"] {
    accent-color: #3498db;
    width: 14px; height: 14px;
}

/* Submit */
.btn-login-submit {
    width: 100%;
    background: linear-gradient(135deg, #3498db, #1d6fa4);
    border: none;
    border-radius: 8px;
    padding: .8rem 1rem;
    color: white;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: filter .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 18px rgba(52,152,219,.35);
    position: relative;
    overflow: hidden;
}
.btn-login-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.08), transparent);
    pointer-events: none;
}
.btn-login-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(52,152,219,.45);
}
.btn-login-submit:active { transform: translateY(0); }
.btn-login-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Error alert */
.lf-alert {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .82rem;
    color: #fca5a5;
    margin-bottom: 1.2rem;
    display: flex;
    gap: .5rem;
    align-items: flex-start;
}
.lf-alert i { margin-top: .1rem; flex-shrink: 0; }

.lf-sep {
    height: 1px;
    background: #1e293b;
    margin: 1.5rem 0;
}

.login-right-footer {
    margin-top: 1.5rem;
    font-size: .72rem;
    color: #334155;
    text-align: center;
    line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .login-left { display: none; }
    .login-right {
        flex: 1 1 100%;
        padding: 2.5rem 1.5rem;
        border-left: none;
    }
    .login-page-wrapper { background: #0f172a; }
}

/* Extracted from templates/company/dashboard.html */
.company-header {
        background: linear-gradient(135deg, #27ae60, #2ecc71);
        color: white;
        padding: 3rem 0;
        margin-bottom: 2rem;
    }
    
    .company-logo {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid white;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .section-card {
        border-left: 4px solid #27ae60;
        margin-bottom: 2rem;
    }
    
    .team-member {
        text-align: center;
        padding: 1.5rem;
        border-radius: 0.75rem;
        background: white;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        transition: all 0.3s ease;
    }
    
    .team-member:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto 1rem;
    }
    
    .document-item {
        background: white;
        border-radius: 0.5rem;
        padding: 1rem;
        margin-bottom: 1rem;
        border-left: 3px solid #3498db;
        transition: all 0.3s ease;
    }
    
    .document-item:hover {
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
        transform: translateX(5px);
    }
    
    .timeline-item {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 2rem;
    }
    
    .timeline-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.5rem;
        width: 12px;
        height: 12px;
        background: #27ae60;
        border-radius: 50%;
        border: 3px solid white;
        box-shadow: 0 0 0 3px #27ae60;
    }
    
    .timeline-item::after {
        content: '';
        position: absolute;
        left: 5px;
        top: 1.5rem;
        width: 2px;
        height: calc(100% - 1rem);
        background: #e9ecef;
    }
    
    .timeline-item:last-child::after {
        display: none;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-card {
        background: linear-gradient(135deg, #27ae60, #2ecc71);
        color: white;
        padding: 1.5rem;
        border-radius: 0.75rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
        opacity: 0.9;
    }

/* Extracted from templates/dashboard/scenario_create.html */
.studio-create-flow {
    max-width: 1040px;
}
.studio-ai-composer {
    border-radius: var(--crisis-radius-md);
}
.studio-idea-input {
    min-height: 180px;
}
.studio-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--crisis-space-3);
}
.studio-mode-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--crisis-space-1);
    min-height: 108px;
    padding: var(--crisis-space-3);
    border: 1px solid var(--crisis-border);
    border-radius: var(--crisis-radius);
    background: var(--crisis-surface);
    cursor: pointer;
    transition: border-color var(--crisis-transition), background var(--crisis-transition), box-shadow var(--crisis-transition);
}
.studio-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.studio-mode-option__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--crisis-weight-semibold);
    color: var(--crisis-text);
}
.studio-mode-option__hint {
    color: var(--crisis-text-muted);
    font-size: var(--crisis-text-sm);
    line-height: 1.35;
}
.studio-mode-option.is-active {
    border-color: var(--module-pilotage);
    background: var(--module-pilotage-bg);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--module-pilotage) 18%, transparent);
}
.studio-mode-option.is-active .studio-mode-option__title {
    color: var(--module-pilotage);
}
.studio-channel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--crisis-space-2);
}
.studio-channel-chip {
    border: 1px solid var(--crisis-border);
    border-radius: 999px;
    background: var(--crisis-surface);
    color: var(--crisis-text);
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    user-select: none;
}
.studio-channel-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.studio-channel-chip span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: var(--crisis-weight-semibold);
    font-size: var(--crisis-text-sm);
}
.studio-channel-chip.is-active {
    border-color: var(--module-pilotage);
    background: var(--module-pilotage-bg);
    color: var(--module-pilotage);
}
.studio-suggestions-panel {
    border: 1px solid var(--crisis-border);
    border-radius: var(--crisis-radius);
    padding: var(--crisis-space-3);
    background: var(--crisis-surface);
}
.studio-suggestion-row {
    display: grid;
    grid-template-columns: minmax(78px, auto) minmax(72px, 90px) minmax(120px, 150px) minmax(180px, 1.3fr) minmax(140px, 1fr) minmax(140px, 1fr);
    gap: var(--crisis-space-2);
    align-items: end;
    padding: var(--crisis-space-2) 0;
    border-top: 1px solid var(--crisis-border);
}
.studio-suggestion-row:first-of-type {
    border-top: 0;
}
.studio-suggestion-accept,
.studio-suggestion-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: var(--crisis-text-xs);
    color: var(--crisis-text-muted);
}
.studio-suggestion-accept {
    flex-direction: row;
    align-items: center;
    padding-bottom: 0.35rem;
    color: var(--crisis-text);
    font-weight: var(--crisis-weight-semibold);
}
.studio-suggestion-detail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--crisis-space-2);
}
.studio-secondary-actions {
    border: 1px solid var(--crisis-border);
    border-radius: var(--crisis-radius);
    background: var(--crisis-surface);
    padding: var(--crisis-space-3);
}
.studio-inline-details > summary {
    list-style: none;
}
.studio-inline-details > summary::-webkit-details-marker {
    display: none;
}
@media (max-width: 992px) {
    .studio-mode-switch {
        grid-template-columns: 1fr;
    }
    .studio-suggestion-row {
        grid-template-columns: 1fr 1fr;
    }
    .studio-suggestion-accept,
    .studio-suggestion-cell {
        min-width: 0;
    }
    .studio-suggestion-detail {
        grid-template-columns: 1fr;
    }
}

.studio-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--crisis-space-4);
    align-items: start;
}
.studio-step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: var(--crisis-space-3);
    padding: var(--crisis-space-4);
    border-bottom: 1px solid var(--crisis-border);
}
.studio-step:last-child { border-bottom: 0; }
.studio-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--module-pilotage-bg);
    color: var(--module-pilotage);
    font-weight: var(--crisis-weight-semibold);
    font-size: var(--crisis-text-sm);
}
.channel-choice {
    border: 1px solid var(--crisis-border);
    border-radius: var(--crisis-radius);
    padding: var(--crisis-space-3);
    min-height: 88px;
    background: var(--crisis-surface);
}
.studio-preview {
    position: sticky;
    top: calc(var(--topbar-h, 64px) + var(--crisis-space-3));
}
.mission-preview {
    border: 1px solid var(--crisis-border);
    border-radius: var(--crisis-radius-md);
    background: var(--crisis-surface);
    padding: var(--crisis-space-4);
}
@media (max-width: 992px) {
    .studio-create-grid { grid-template-columns: 1fr; }
    .studio-preview { position: static; }
}

/* Extracted from templates/dashboard/scenario_settings.html */
.settings-nav .nav-link {
    color: var(--crisis-text-muted);
    font-size: var(--crisis-text-sm);
    font-weight: var(--crisis-weight-semibold);
    border-radius: var(--crisis-radius-md);
    padding: var(--crisis-space-2) var(--crisis-space-3);
    transition: background var(--crisis-transition), color var(--crisis-transition);
}
.settings-nav .nav-link.active {
    background: var(--crisis-accent);
    color: #fff;
}
.settings-nav .nav-link:not(.active):hover {
    background: var(--crisis-surface-dim);
}
.settings-section { display: none; }
.settings-section.active { display: block; }

/* Extracted from templates/evaluation/kpi_dashboard.html */
.kpi-tile {
    text-align: center;
    padding: var(--crisis-space-6) var(--crisis-space-4);
    border-radius: var(--crisis-radius-lg);
    background: var(--crisis-surface-raised);
    box-shadow: var(--crisis-shadow-sm);
    transition: box-shadow var(--crisis-transition-slow), transform var(--crisis-transition-slow);
}
.kpi-tile:hover {
    box-shadow: var(--crisis-shadow-md);
    transform: translateY(-1px);
}
.kpi-tile .kpi-value {
    font-size: var(--crisis-text-kpi);
    font-weight: var(--crisis-weight-bold);
    line-height: 1;
}
.kpi-tile .kpi-label {
    font-size: var(--crisis-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--crisis-text-muted);
    margin-top: var(--crisis-space-1);
    font-weight: var(--crisis-weight-medium);
}
.eval-progress {
    height: 8px;
    border-radius: var(--crisis-radius-pill);
    background: var(--crisis-border);
}
.eval-progress-bar {
    height: 100%;
    border-radius: var(--crisis-radius-pill);
    background: var(--crisis-accent);
    transition: width 0.6s ease;
}

/* Extracted from templates/evaluation/results.html */
.eval-progress {
    height: 8px;
    border-radius: var(--crisis-radius-pill);
    background: var(--crisis-border);
}
.eval-progress-bar {
    height: 100%;
    border-radius: var(--crisis-radius-pill);
    background: var(--crisis-accent);
    transition: width 0.6s ease;
}

/* Extracted from templates/exercise/chat.html */
.chat-layout { display: flex; gap: 1rem; height: calc(100vh - 160px); min-height: 400px; }
.chat-sidebar { width: 240px; flex-shrink: 0; }
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; scroll-behavior: smooth; }
.chat-msg { margin-bottom: .75rem; display: flex; flex-direction: column; }
.chat-msg.own { align-items: flex-end; }
.chat-msg .msg-bubble { display: inline-block; max-width: 70%; padding: .5rem .75rem; border-radius: .75rem; background: #f1f5f9; font-size: .9rem; word-break: break-word; }
.chat-msg.own .msg-bubble { background: var(--secondary-color, #3498db); color: #fff; }
.chat-input { padding: .75rem; border-top: 1px solid #e2e8f0; background: #fff; border-radius: 0 0 .75rem .75rem; }
.chat-status { font-size: .72rem; color: #94a3b8; text-align: center; padding: .3rem 0; }
.chat-typing { font-size: .78rem; color: #94a3b8; padding: 0 1rem .25rem; min-height: 1.2em; }
#chatConnStatus { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; }
#chatConnStatus.connected { color: #16a34a; }
#chatConnStatus.disconnected { color: #dc2626; }
#chatConnStatus.polling { color: #d97706; }

/* Extracted from templates/exercise/observer_dashboard.html */
.timeline-feed { max-height: 500px; overflow-y: auto; }
.kpi-tile {
    text-align: center;
    padding: var(--crisis-space-5) var(--crisis-space-3);
    border-radius: var(--crisis-radius-lg);
    background: var(--crisis-surface-raised);
    box-shadow: var(--crisis-shadow-sm);
}
.kpi-tile .kpi-value { font-size: var(--crisis-text-kpi); font-weight: var(--crisis-weight-bold); line-height: 1; }
.kpi-tile .kpi-label { font-size: var(--crisis-text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--crisis-text-muted); margin-top: var(--crisis-space-1); font-weight: var(--crisis-weight-medium); }
.vtimeline { position: relative; padding-left: 20px; }
.vtimeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--crisis-border); }
.vtimeline-item { position: relative; margin-bottom: var(--crisis-space-3); }
.vtimeline-dot { position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; }

/* Extracted from templates/news_platform/news/aggregator.html */
.outlet-badge {
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.article-row {
    border-left: 4px solid #dee2e6;
    transition: border-color 0.2s;
}
.article-row:hover {
    border-left-color: #0d6efd;
}
.article-row.already-read {
    opacity: 0.65;
}
.read-indicator {
    font-size: 0.75rem;
    color: #198754;
}

/* Extracted from templates/news_platform/news/dashboard.html */
.news-header {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        color: white;
        border-radius: 15px;
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .entity-card {
        border-left: 4px solid #e74c3c;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .entity-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .article-card {
        border-left: 4px solid #3498db;
        margin-bottom: 1rem;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .stat-card {
        background: white;
        padding: 1.5rem;
        border-radius: 10px;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .stat-number {
        font-size: 2rem;
        font-weight: bold;
        color: #e74c3c;
    }
    
    .quick-actions {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .action-btn {
        margin: 0.25rem;
    }

/* Extracted from templates/news_platform/news/live_event_detail.html */
.live-badge {
        animation: pulse 1.5s infinite;
    }
    
    @keyframes pulse {
        0% { opacity: 1; }
        50% { opacity: 0.5; }
        100% { opacity: 1; }
    }
    
    .live-update {
        border-left: 4px solid #dc3545;
        padding-left: 15px;
        margin-bottom: 20px;
    }
    
    .live-update.important {
        border-left-color: #fd7e14;
        background-color: rgba(253, 126, 20, 0.05);
    }
    
    .live-update.critical {
        border-left-color: #dc3545;
        background-color: rgba(220, 53, 69, 0.05);
    }
    
    .timeline-container {
        position: relative;
        padding-left: 50px;
    }
    
    .timeline-container::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #dee2e6;
    }
    
    .update-time {
        position: relative;
        font-weight: bold;
    }
    
    .update-time::before {
        content: '';
        position: absolute;
        left: -42px;
        top: 50%;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #dc3545;
        border: 2px solid #fff;
        z-index: 1;
    }

/* Extracted from templates/news_platform/news/live_events.html */
.live-badge {
        animation: pulse 1.5s infinite;
    }
    
    @keyframes pulse {
        0% { opacity: 1; }
        50% { opacity: 0.5; }
        100% { opacity: 1; }
    }
    
    .live-event-card {
        transition: transform 0.3s;
    }
    
    .live-event-card:hover {
        transform: translateY(-5px);
    }

/* Extracted from templates/news_platform/organizer/analytics.html */
.stat-card {
        border-left: 4px solid #007bff;
    }
    .stat-card.success {
        border-left-color: #28a745;
    }
    .stat-card.warning {
        border-left-color: #ffc107;
    }

/* Extracted from templates/news_platform/organizer/article_timeline.html */
.tl-track {
    position: relative;
    padding: 1.25rem 0;
}
.tl-track::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--module-news, #3b82f6);
    opacity: .35;
}
.tl-item {
    margin-bottom: 1.25rem;
    padding-left: 56px;
    position: relative;
}
.tl-dot {
    position: absolute;
    left: 4px;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    z-index: 1;
    border: 2px solid transparent;
}
.tl-dot.published  { background: #22c55e; color: #fff; border-color: #22c55e; }
.tl-dot.scheduled  { background: #fbbf24; color: #fff; border-color: #fbbf24; }
.tl-dot.draft      { background: #94a3b8; color: #fff; border-color: #94a3b8; }
.tl-dot.archived   { background: #e2e8f0; color: #111827; border-color: #cbd5e1; }
.tl-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #e2e8f0;
    border-radius: .5rem;
    padding: .875rem 1rem;
}
.tl-card.published  { border-left-color: #22c55e; }
.tl-card.scheduled  { border-left-color: #fbbf24; }
.tl-card.draft      { border-left-color: #94a3b8; }
.tl-card.archived   { border-left-color: #cbd5e1; }

/* Extracted from templates/news_platform/organizer/article_versions.html */
.diff-ins {
    background: rgba(22,163,74,.18);
    color: #14532d;
    border-radius: 2px;
    padding: 0 3px;
    display: inline-block;
    width: 100%;
    white-space: pre-wrap;
}
.diff-del {
    background: rgba(220,38,38,.14);
    color: #7f1d1d;
    border-radius: 2px;
    padding: 0 3px;
    display: inline-block;
    width: 100%;
    white-space: pre-wrap;
    text-decoration: line-through;
}
.diff-pane {
    max-height: 340px;
    overflow: auto;
    font-size: .84rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    padding: .5rem .75rem;
}

/* Extracted from templates/news_platform/tv_live_viewer.html */
.tv-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tv-player-wrap {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.tv-standby {
    position: absolute;
    inset: 0;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    padding: 1.5rem;
}

.tv-standby.is-hidden {
    display: none;
}

.tv-activation {
    position: absolute;
    inset: auto 16px 16px 16px;
    z-index: 13;
    display: none;
    justify-content: center;
}

.tv-activation.is-visible {
    display: flex;
}

#tvPlayer {
    width: 100%;
    min-height: 420px;
    display: block;
}

.tv-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
}

.tv-overlay-time {
    font-family: "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 1px;
}

.breaking-news-banner {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
    z-index: 12;
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: rgba(190, 15, 15, 0.92);
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.breaking-news-banner.is-visible {
    display: inline-flex;
}

.breaking-news-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: breakingPulse 1s infinite;
}

@keyframes breakingPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.2); }
}

/* Extracted from templates/runs/run_debrief.html */
.channel-bar {
    height: 6px;
    border-radius: 3px;
    transition: width 400ms ease;
}
.debrief-section-title {
    font-size: var(--crisis-text-sm);
    font-weight: var(--crisis-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--crisis-text-muted);
    margin-bottom: var(--crisis-space-3);
}

/* Extracted from templates/runs/run_live.html */
.live-event-row { animation: slideIn 250ms ease; }
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.channel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.channel-dot.ch-news    { background: var(--module-news); }
.channel-dot.ch-squawk  { background: var(--module-squawk); }
.channel-dot.ch-mail    { background: var(--module-mail); }
.channel-dot.ch-company { background: var(--module-company); }
.channel-dot.ch-exercise { background: var(--module-exercise); }
.channel-dot.ch-inject  { background: var(--module-inject); }
.channel-dot.ch-system  { background: var(--crisis-text-muted); }
.inject-quick-btn {
    display: flex;
    align-items: center;
    gap: var(--crisis-space-2);
    padding: var(--crisis-space-2) var(--crisis-space-3);
    border-radius: var(--crisis-radius);
    font-size: var(--crisis-text-sm);
    color: var(--crisis-text);
    text-decoration: none;
    transition: background var(--crisis-transition-fast);
    border: 1px solid var(--crisis-border-light);
}
.inject-quick-btn:hover {
    background: var(--crisis-surface-alt);
    border-color: var(--crisis-border);
    color: var(--crisis-text);
}

/* Extracted from templates/squawk/admin/assignments.html */
.assignment-card {
        border: 1px solid #e1e8ed;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .assignment-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }
    
    .assignment-header {
        background: linear-gradient(135deg, #1da1f2, #0d8bd9);
        color: white;
        border-radius: 12px 12px 0 0;
        padding: 20px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #6c757d;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
    }
    
    .squawk-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #1da1f2;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .assignment-actions {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .assignment-card:hover .assignment-actions {
        opacity: 1;
    }
    
    .stats-card {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
        border-radius: 12px;
    }

/* Extracted from templates/squawk/admin/create_assignment.html */
.assignment-form {
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .form-header {
        background: linear-gradient(135deg, #1da1f2, #0d8bd9);
        color: white;
        border-radius: 12px 12px 0 0;
        padding: 20px;
    }
    
    .form-section {
        border-left: 3px solid #1da1f2;
        padding-left: 15px;
        margin-bottom: 20px;
    }
    
    .user-preview {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 15px;
        margin-top: 10px;
    }
    
    .squawk-user-card {
        border: 1px solid #e1e8ed;
        border-radius: 8px;
        padding: 15px;
        background: white;
        margin-bottom: 10px;
    }
    
    .squawk-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #1da1f2;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
    }

/* Extracted from templates/squawk/admin/create_user.html */
.admin-header {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
        border-radius: 12px;
    }
    
    .form-card {
        background: white;
        border: 1px solid #e1e8ed;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .preview-card {
        background: white;
        border: 1px solid #e1e8ed;
        border-radius: 12px;
        position: sticky;
        top: 20px;
    }
    
    .squawk-preview {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px;
        margin: 20px;
    }
    
    .preview-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: #1da1f2;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .form-floating {
        margin-bottom: 1rem;
    }
    
    .character-count {
        font-size: 12px;
        color: #657786;
    }
    
    .character-count.warning {
        color: #ff6b35;
    }
    
    .character-count.error {
        color: #dc3545;
    }
    
    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
    }
    
    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 34px;
    }
    
    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }
    
    input:checked + .slider {
        background-color: #28a745;
    }
    
    input:checked + .slider:before {
        transform: translateX(26px);
    }

/* Extracted from templates/squawk/admin/dashboard.html */
.admin-header {
        background: linear-gradient(135deg, #dc3545, #c82333);
        color: white;
        border-radius: 12px;
    }
    
    .stat-card {
        background: white;
        border-radius: 12px;
        border: 1px solid #e1e8ed;
        transition: all 0.2s ease;
        height: 100%;
    }
    
    .stat-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: white;
    }
    
    .admin-card {
        background: white;
        border-radius: 12px;
        border: 1px solid #e1e8ed;
        transition: all 0.2s ease;
    }
    
    .admin-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .squawk-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #1da1f2;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 14px;
    }
    
    .trending-item {
        border-left: 3px solid #1da1f2;
        padding-left: 12px;
        margin-bottom: 12px;
    }
    
    .quick-action {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
        border: none;
        border-radius: 12px;
        padding: 15px 20px;
        text-decoration: none;
        display: block;
        transition: all 0.2s ease;
        text-align: center;
    }
    
    .quick-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        color: white;
        text-decoration: none;
    }

/* Extracted from templates/squawk/admin/users.html */
.admin-header {
        background: linear-gradient(135deg, #dc3545, #c82333);
        color: white;
        border-radius: 12px;
    }
    
    .user-card {
        background: white;
        border: 1px solid #e1e8ed;
        border-radius: 12px;
        transition: all 0.2s ease;
    }
    
    .user-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transform: translateY(-1px);
    }
    
    .squawk-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #1da1f2;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 20px;
    }
    
    .user-stats {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 12px;
    }
    
    .search-box {
        background: white;
        border: 1px solid #e1e8ed;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .badge-verified {
        background: linear-gradient(135deg, #1da1f2, #0d8bd9);
        color: white;
    }
    
    .badge-controlled {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
    }
