:root {
    --primary-blue: #0073ea;
    --primary-dark: #0060c2;
    --bg-dark: #1a1d21;
    --bg-sidebar: #23272b;
    --bg-card: #2d3135;
    --bg-hover: #363a3f;
    --text-primary: #ffffff;
    --text-secondary: #9fadbc;
    --border-color: #3d4349;
    --success: #00c875;
    --warning: #ffcb00;
    --danger: #e44258;
    --info: #579bfc;
    --sports: #ff7eb3;
    --school: #7b68ee;
    --community: #00d4aa;
    --special: #ffa940;
    --breaking: #ff4757;
    --feature: #70a1ff;
}

[data-theme="light"] {
    --bg-dark: #f5f6f8;
    --bg-sidebar: #ffffff;
    --bg-card: #f0f1f3;
    --bg-hover: #e8eaed;
    --text-primary: #1a1d21;
    --text-secondary: #676879;
    --border-color: #d0d4e4;
}

/* Match native calendar and clock controls to the desk theme on every screen. */
html:not([data-theme="light"]) input:is([type="date"], [type="time"], [type="datetime-local"]) { color-scheme: dark; }
html[data-theme="light"] input:is([type="date"], [type="time"], [type="datetime-local"]) { color-scheme: light; }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-blue), #00a0ff);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-blue);
    color: white;
}

.nav-item i { width: 20px; text-align: center; }

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 0;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name { font-size: 0.85rem; font-weight: 600; }
.user-role { font-size: 0.75rem; color: var(--text-secondary); }

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-card);
    padding: 0.3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.35rem 0.6rem;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
}

.theme-btn:hover { color: var(--text-primary); }
.theme-btn.active { 
    background: var(--primary-blue); 
    color: white; 
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-header {
    background: var(--bg-sidebar);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-left h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.view-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: var(--primary-blue);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-stats {
    display: flex;
    gap: 0.75rem;
}

.stat-pill {
    background: var(--bg-card);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-count {
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.stat-count.proposed { background: var(--warning); color: #000; }
.stat-count.approved { background: var(--success); color: #000; }
.stat-count.scheduled { background: var(--primary-blue); color: #fff; }

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--primary-dark); }

.create-menu-wrapper {
    position: relative;
}

.create-menu-btn {
    min-width: 120px;
}

.create-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 280px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.create-menu-dropdown.open {
    display: block;
}

.create-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: #333333;
    transition: background 0.2s;
}

.create-menu-item:hover {
    background: #f5f5f5;
}

.create-menu-item i {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-top: 0.2rem;
    width: 24px;
    text-align: center;
}

.create-menu-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.create-menu-item strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222222;
}

.create-menu-item span {
    font-size: 0.8rem;
    color: #666666;
}

.create-menu-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.25rem 0;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-secondary);
}

.btn-success {
    background: var(--success);
    color: #000;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

.btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-danger:hover { background: #c82333; }

.content-body {
    flex: 1;
    overflow: auto;
    padding: 1.5rem;
}

.view-panel { display: none; }
.view-panel.active { display: block; }

.calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calendar-nav h2 {
    font-size: 1.25rem;
    min-width: 180px;
    text-align: center;
}

.nav-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-btn:hover { background: var(--bg-hover); border-color: var(--primary-blue); }

.calendar-view-toggle {
    display: flex;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 4px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.toggle-btn:hover { color: var(--text-primary); }
.toggle-btn.active { background: var(--primary-blue); color: white; }

.calendar-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.filter-select option { background: var(--bg-dark); }

.calendar-grid {
    background: var(--bg-sidebar);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.cal-day-header {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-day {
    min-height: 120px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.cal-day:nth-child(7n) { border-right: none; }
.cal-day:hover { background: var(--bg-hover); }
.cal-day.other-month { opacity: 0.4; }
.cal-day.today { background: rgba(0, 115, 234, 0.1); }

.cal-day-number {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.cal-day.today .cal-day-number {
    background: var(--primary-blue);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-event {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.2s;
}

.cal-event:hover { transform: translateX(2px); }

.cal-event.sports { background: var(--sports); color: #000; }
.cal-event.school { background: var(--school); color: #fff; }
.cal-event.community { background: var(--community); color: #000; }
.cal-event.special { background: var(--special); color: #000; }
.cal-event.breaking { background: var(--breaking); color: #fff; }
.cal-event.feature { background: var(--feature); color: #fff; }

.cal-event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    font-size: 0.65rem;
    margin-left: 0.25rem;
}

.board-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.program-selector-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selector-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.program-selectors {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.program-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.program-btn:hover {
    border-color: var(--primary-blue);
    color: var(--text-primary);
}

.program-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.program-btn i {
    font-size: 0.8rem;
}

.board-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-height: calc(100vh - 280px);
}

.board-column {
    flex: 0 0 280px;
    background: var(--bg-sidebar);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.column-header {
    padding: 1rem;
    border-bottom: 3px solid var(--primary-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-hover);
}

.column-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.column-header h3 i {
    color: var(--primary-blue);
}

.column-count {
    background: var(--bg-card);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Monday.com style status colors */
.board-column[data-status="proposed"] .column-header {
    border-bottom-color: #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.05));
}
.board-column[data-status="proposed"] .column-header h3 i {
    color: #ffc107;
}
.board-column[data-status="proposed"] .column-count {
    background: rgba(255, 193, 7, 0.2);
    color: #f57c00;
}
.board-column[data-status="proposed"] .board-card {
    border-left-color: #ffc107;
}
.board-column[data-status="proposed"] .board-card-actions .btn-primary {
    background: #ffc107;
    color: #1a1d21;
}
.board-column[data-status="proposed"] .board-card-actions .btn-primary:hover {
    background: #ffb300;
}

.board-column[data-status="draft"] .column-header {
    border-bottom-color: #c4c4c4;
}
.board-column[data-status="draft"] .column-header h3 i {
    color: #c4c4c4;
}
.board-column[data-status="draft"] .column-count {
    background: rgba(196, 196, 196, 0.2);
    color: #c4c4c4;
}

.board-column[data-status="pending_approval"] .column-header {
    border-bottom-color: #fdab3d;
}
.board-column[data-status="pending_approval"] .column-header h3 i {
    color: #fdab3d;
}
.board-column[data-status="pending_approval"] .column-count {
    background: rgba(253, 171, 61, 0.2);
    color: #fdab3d;
}

.board-column[data-status="approved"] .column-header {
    border-bottom-color: #00c875;
}
.board-column[data-status="approved"] .column-header h3 i {
    color: #00c875;
}
.board-column[data-status="approved"] .column-count {
    background: rgba(0, 200, 117, 0.2);
    color: #00c875;
}

.board-column[data-status="scheduled"] .column-header {
    border-bottom-color: #0073ea;
}
.board-column[data-status="scheduled"] .column-header h3 i {
    color: #0073ea;
}
.board-column[data-status="scheduled"] .column-count {
    background: rgba(0, 115, 234, 0.2);
    color: #0073ea;
}

.board-column[data-status="covered"] .column-header {
    border-bottom-color: #579bfc;
}
.board-column[data-status="covered"] .column-header h3 i {
    color: #579bfc;
}
.board-column[data-status="covered"] .column-count {
    background: rgba(87, 155, 252, 0.2);
    color: #579bfc;
}

.column-body {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
}

.board-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.2s;
}

.board-card:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.board-card.sports { border-left-color: var(--sports); }
.board-card.school { border-left-color: var(--school); }
.board-card.community { border-left-color: var(--community); }
.board-card.special { border-left-color: var(--special); }
.board-card.breaking { border-left-color: var(--breaking); }

/* Status-based card border colors for coverage plans */
.board-column[data-status="draft"] .board-card { border-left-color: #c4c4c4; }
.board-column[data-status="pending_approval"] .board-card { border-left-color: #fdab3d; }
.board-column[data-status="approved"] .board-card { border-left-color: #00c875; }
.board-column[data-status="scheduled"] .board-card { border-left-color: #0073ea; }
.board-column[data-status="covered"] .board-card { border-left-color: #579bfc; }

.board-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.board-card-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.board-card-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.card-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    background: var(--bg-dark);
    color: var(--text-secondary);
}

.card-badge.coverage { background: var(--info); color: white; }
.card-badge.priority-high { background: var(--danger); color: white; }
.card-badge.crew { background: var(--success); color: #000; }

.sports-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.season-selector {
    display: flex;
    gap: 0.5rem;
}

.season-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.season-btn:hover { border-color: var(--primary-blue); color: var(--text-primary); }
.season-btn.active { background: var(--primary-blue); border-color: var(--primary-blue); color: white; }

.sports-filters { display: flex; gap: 0.5rem; }

.sports-schedule {
    display: grid;
    gap: 1rem;
}

.sports-game-card {
    background: var(--bg-sidebar);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1rem;
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.sports-game-card:hover {
    border-color: var(--primary-blue);
    background: var(--bg-card);
}

.game-date {
    text-align: center;
}

.game-date .month { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; }
.game-date .day { font-size: 2rem; font-weight: 700; line-height: 1; }
.game-date .dow { font-size: 0.75rem; color: var(--text-secondary); }

.game-details h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.game-details p { font-size: 0.85rem; color: var(--text-secondary); }

.game-location-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.game-location-badge.home { background: var(--success); color: #000; }
.game-location-badge.away { background: var(--warning); color: #000; }

.game-coverage {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.coverage-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.coverage-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.coverage-indicator.planned { background: var(--success); }
.coverage-indicator.pending { background: var(--warning); }
.coverage-indicator.none { background: var(--border-color); }

.planning-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
}

.planning-drawer.open { right: 0; }

.drawer-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h2 { font-size: 1.1rem; }

.drawer-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: color 0.2s;
}

.drawer-close:hover { color: var(--text-primary); }

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Immersive Workspace Overlay */
.workspace-overlay {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 1500;
    display: none;
    flex-direction: column;
}

.workspace-overlay.active {
    display: flex !important;
}

.workspace-overlay-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--monday-blue);
    border-bottom: 2px solid var(--monday-blue);
    flex-shrink: 0;
    min-height: 56px;
}

.workspace-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.workspace-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

#workspaceOverlayTitle {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.workspace-iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: var(--bg-main);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active { display: flex; }

.modal-container {
    background: var(--bg-sidebar);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-container.wide { max-width: 900px; }

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
}

.modal-close:hover { color: var(--text-primary); }

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full { flex: 1 0 100%; }

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea { resize: vertical; }

.coverage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.event-summary h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.event-meta { font-size: 0.85rem; color: var(--text-secondary); }

.add-coverage-form {
    background: var(--bg-card);
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.coverage-form-header {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.add-coverage-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.add-coverage-form .form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.add-coverage-form .form-group input,
.add-coverage-form .form-group select {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.add-coverage-form .form-group input:focus,
.add-coverage-form .form-group select:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.add-coverage-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.coverage-plans-list {
    display: grid;
    gap: 1rem;
}

.coverage-plan-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.coverage-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.coverage-plan-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-success:hover {
    background: #059669;
}

/* Board card coverage plan styles */
.board-card.coverage-plan {
    position: relative;
}

.board-card-type-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-blue);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.board-card-event {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.board-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* Stage-matched button colors */
.board-column[data-status="draft"] .board-card-actions .btn-primary {
    background: #c4c4c4;
    color: #1a1d21;
}
.board-column[data-status="draft"] .board-card-actions .btn-primary:hover {
    background: #a8a8a8;
}

.board-column[data-status="pending_approval"] .board-card-actions .btn-success {
    background: #00c875;
    color: #000;
}
.board-column[data-status="pending_approval"] .board-card-actions .btn-success:hover {
    background: #00a65f;
}
.board-column[data-status="pending_approval"] .board-card-actions .btn-danger {
    background: #fdab3d;
    color: #000;
}
.board-column[data-status="pending_approval"] .board-card-actions .btn-danger:hover {
    background: #e69a2e;
}

.board-column[data-status="approved"] .board-card-actions .btn-primary {
    background: #00c875;
    color: #000;
}
.board-column[data-status="approved"] .board-card-actions .btn-primary:hover {
    background: #00a65f;
}

.board-column[data-status="scheduled"] .board-card-actions .btn-success {
    background: #0073ea;
    color: white;
}
.board-column[data-status="scheduled"] .board-card-actions .btn-success:hover {
    background: #0060c2;
}

.board-column[data-status="covered"] .board-card-actions .btn-secondary {
    background: #579bfc;
    color: white;
    border-color: #579bfc;
}
.board-column[data-status="covered"] .board-card-actions .btn-secondary:hover {
    background: #4080e0;
    border-color: #4080e0;
}

/* Crew assignment modal styles */
.crew-assignment-header {
    margin-bottom: 1.5rem;
}

.crew-assignment-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.crew-roles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.crew-role-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.crew-role-row .role-name {
    font-weight: 600;
    min-width: 150px;
}

.crew-role-row .role-user-select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.crew-role-row .role-user-select:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.crew-role-row .role-user-select option {
    background: #ffffff;
    color: #000000;
}

/* Status badges */
.status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.draft {
    background: var(--border-color);
    color: var(--text-secondary);
}

.status-badge.pending {
    background: var(--warning);
    color: #000;
}

.status-badge.approved {
    background: var(--info);
    color: white;
}

.status-badge.scheduled {
    background: var(--primary-blue);
    color: white;
}

.status-badge.covered {
    background: var(--success);
    color: white;
}

.status-waiting {
    color: var(--warning);
    font-size: 0.85rem;
}

.coverage-type-badge {
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.coverage-plan-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    font-size: 0.85rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label { color: var(--text-secondary); font-size: 0.75rem; }
.detail-value { font-weight: 500; }

.roles-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.role-badge {
    background: var(--bg-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.role-badge.filled { background: var(--success); color: #000; }
.role-badge.open { background: var(--warning); color: #000; }

/* Story Ideas View Styles */
.ideas-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 1rem;
    gap: 1rem;
}

.ideas-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-input {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    min-width: 200px;
}

.filter-input::placeholder { color: var(--text-secondary); }

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.idea-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
}

.idea-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 234, 0.2);
}

.idea-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.idea-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.idea-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.idea-status.draft { background: #c4c4c4; color: #1a1d21; }
.idea-status.submitted { background: #fdab3d; color: #1a1d21; }
.idea-status.approved { background: #00c875; color: #1a1d21; }
.idea-status.rejected { background: #e44258; color: white; }
.idea-status.converted { background: #0073ea; color: white; }

.idea-pitch {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idea-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.idea-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.idea-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 600;
}

.idea-program {
    background: var(--bg-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.ideas-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* News Feed View Styles */
.feed-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 1rem;
    gap: 1rem;
}

.feed-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.feed-actions {
    display: flex;
    gap: 0.5rem;
}

.feed-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
    min-height: 500px;
}

.feed-sources-panel {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.feed-sources-panel h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feed-sources-panel h3 i { color: var(--warning); }

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feed-source-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.feed-source-item:hover,
.feed-source-item.active {
    border-color: var(--primary-blue);
    background: rgba(0, 115, 234, 0.1);
}

.feed-source-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warning);
}

.feed-source-info {
    flex: 1;
    min-width: 0;
}

.feed-source-name {
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-source-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.feed-articles-panel {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.feed-articles-panel h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feed-articles-panel h3 i { color: var(--info); }

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 600px;
    overflow-y: auto;
}

.article-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.article-item:hover {
    border-color: var(--primary-blue);
}

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

.article-title {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.article-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.article-btn.convert {
    background: var(--primary-blue);
    color: white;
}

.article-btn.convert:hover {
    background: var(--primary-dark);
}

.article-btn.view {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.article-btn.view:hover {
    border-color: var(--primary-blue);
}

.feed-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* My Assignments View Styles */
.assignments-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 1rem;
    gap: 1rem;
}

.assignments-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.assignments-view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-dark);
    border-radius: 6px;
    padding: 0.25rem;
}

.assignments-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.assignments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.assignment-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.assignment-card:hover {
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.assignment-priority {
    width: 4px;
    height: 100%;
    min-height: 60px;
    border-radius: 2px;
}

.assignment-priority.high { background: var(--danger); }
.assignment-priority.medium { background: var(--warning); }
.assignment-priority.low { background: var(--success); }

.assignment-info {
    flex: 1;
    min-width: 0;
}

.assignment-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assignment-details {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.assignment-type {
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.assignment-due {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.assignment-due-date {
    font-size: 0.875rem;
    font-weight: 500;
}

.assignment-due-date.overdue { color: var(--danger); }
.assignment-due-date.today { color: var(--warning); }
.assignment-due-date.upcoming { color: var(--text-secondary); }

.assignments-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Program Filter Buttons */
.program-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
}

.program-filter-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.program-filter-buttons .btn-secondary.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.program-filter-buttons .badge {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.program-filter-buttons .btn-secondary.active .badge {
    background: rgba(255, 255, 255, 0.25);
}

/* Monday Groups Container */
.monday-groups-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Monday.com Style Table */
.monday-table-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e6e9ef;
    overflow: hidden;
}

.monday-table {
    width: 100%;
}

.monday-table-header {
    display: grid;
    grid-template-columns: 40px 2fr 1.2fr 120px 120px 100px 60px;
    background: #f5f6f8;
    border-bottom: 1px solid #e6e9ef;
    font-size: 0.75rem;
    font-weight: 600;
    color: #676879;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.monday-table-header .mt-cell {
    padding: 0.75rem 0.5rem;
    display: flex;
    align-items: center;
}

.monday-table-row {
    display: grid;
    grid-template-columns: 40px 2fr 1.2fr 120px 120px 100px 60px;
    border-bottom: 1px solid #e6e9ef;
    background: white;
    transition: background 0.1s;
}

.monday-table-row:hover {
    background: #f5f6f8;
}

.monday-table-row:last-child {
    border-bottom: none;
}

.mt-cell {
    padding: 0.625rem 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #323338;
    border-right: 1px solid #e6e9ef;
}

.mt-cell:last-child {
    border-right: none;
}

.mt-cell-checkbox {
    justify-content: center;
}

.mt-cell-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.mt-cell-task {
    font-weight: 500;
    gap: 0.5rem;
}

.mt-cell-task .task-icons {
    display: flex;
    gap: 0.25rem;
    color: #676879;
    font-size: 0.75rem;
}

.mt-cell-segment {
    color: #676879;
}

.mt-cell-status {
    justify-content: center;
}

.monday-status {
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-width: 90px;
    color: white;
}

.monday-status.assigned { background: #fdab3d; }
.monday-status.in_progress { background: #00c875; }
.monday-status.completed { background: #00c875; }
.monday-status.approved { background: #0086c0; }
.monday-status.stuck { background: #e2445c; }
.monday-status.overdue { background: #e2445c; }

.mt-cell-due {
    gap: 0.5rem;
    color: #676879;
}

.mt-cell-due .due-icon {
    font-size: 0.75rem;
}

.mt-cell-due.overdue { color: #e2445c; }
.mt-cell-due.today { color: #fdab3d; }

.mt-cell-format {
    justify-content: center;
}

.format-pill {
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.mt-cell-actions {
    justify-content: center;
}

.mt-action-btn {
    background: transparent;
    border: none;
    color: #676879;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 4px;
    transition: all 0.15s;
}

.mt-action-btn:hover {
    background: var(--primary-blue);
    color: white;
}

/* Program Group Header (like Monday.com groups) */
.monday-group {
    margin-bottom: 1rem;
}

.monday-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(90deg, #0073ea 0%, #0073ea 4px, #f5f6f8 4px);
    border-radius: 4px 4px 0 0;
    cursor: pointer;
}

.monday-group-header.collapsed + .monday-group-body {
    display: none;
}

.monday-group-header.collapsed i {
    transform: rotate(-90deg);
}

.monday-group-header i {
    transition: transform 0.2s;
}

.monday-group-header i {
    color: #676879;
    font-size: 0.75rem;
}

.monday-group-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #323338;
}

.monday-group-count {
    background: rgba(0, 115, 234, 0.1);
    color: var(--primary-blue);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Assignments Kanban View */
.assignments-kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    min-height: 400px;
}

.assignments-kanban-column {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.kanban-column-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
}

.kanban-column-header.assigned { background: rgba(0, 115, 234, 0.2); }
.kanban-column-header.assigned h3 { color: #0073ea; }

.kanban-column-header.in_progress { background: rgba(253, 171, 61, 0.2); }
.kanban-column-header.in_progress h3 { color: #fdab3d; }

.kanban-column-header.completed { background: rgba(0, 200, 117, 0.2); }
.kanban-column-header.completed h3 { color: #00c875; }

.kanban-column-header.approved { background: rgba(87, 155, 252, 0.2); }
.kanban-column-header.approved h3 { color: #579bfc; }

.kanban-count {
    background: var(--bg-dark);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.kanban-column-body {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    max-height: 450px;
}

.kanban-assignment-card {
    background: var(--bg-dark);
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.kanban-assignment-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.kanban-card-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.kanban-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-due {
    font-size: 0.75rem;
}

.kanban-due.overdue { color: var(--danger); }
.kanban-due.today { color: var(--warning); }
.kanban-due.upcoming { color: var(--text-secondary); }

/* Coverage Plans View Styles */
.coverage-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 1rem;
    gap: 1rem;
}

.coverage-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.coverage-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    min-height: 500px;
}

.coverage-column {
    background: var(--bg-card);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.coverage-column .column-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.coverage-column .column-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coverage-column .column-header.draft { background: rgba(196, 196, 196, 0.2); }
.coverage-column .column-header.draft h3 { color: #c4c4c4; }

.coverage-column .column-header.pending { background: rgba(253, 171, 61, 0.2); }
.coverage-column .column-header.pending h3 { color: #fdab3d; }

.coverage-column .column-header.approved { background: rgba(0, 200, 117, 0.2); }
.coverage-column .column-header.approved h3 { color: #00c875; }

.coverage-column .column-header.scheduled { background: rgba(0, 115, 234, 0.2); }
.coverage-column .column-header.scheduled h3 { color: #0073ea; }

.coverage-column .column-header.covered { background: rgba(87, 155, 252, 0.2); }
.coverage-column .column-header.covered h3 { color: #579bfc; }

.coverage-column .column-body {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    max-height: 500px;
}

.coverage-card {
    background: var(--bg-dark);
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.coverage-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.coverage-card-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.coverage-card-event {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.coverage-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
}

.coverage-card-type {
    background: var(--bg-card);
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-weight: 600;
}

.coverage-card-date {
    color: var(--text-secondary);
}

/* Crew Schedule View Styles */
.crew-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 1rem;
    gap: 1rem;
}

.crew-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.crew-nav h2 {
    font-size: 1.1rem;
    min-width: 200px;
    text-align: center;
}

.crew-filters {
    display: flex;
    gap: 0.75rem;
}

.crew-calendar {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.crew-calendar-header {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.crew-time-col {
    padding: 0.75rem;
    border-right: 1px solid var(--border-color);
}

.crew-day-col {
    padding: 0.75rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.crew-day-col:last-child { border-right: none; }

.crew-day-col .day-name {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.crew-day-col .day-date {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
}

.crew-day-col.today { background: rgba(0, 115, 234, 0.15); }
.crew-day-col.today .day-date { color: var(--primary-blue); }

.crew-calendar-body {
    min-height: 400px;
    padding: 1rem;
}

.crew-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.crew-schedule-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 0.5rem;
}

.crew-time-slot {
    padding: 0.5rem;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.crew-day-slot {
    min-height: 60px;
    background: var(--bg-dark);
    border-radius: 4px;
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.crew-event {
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s;
}

.crew-event:hover { transform: scale(1.02); }

.crew-event.reporter { background: #ff7eb3; color: #1a1d21; }
.crew-event.camera { background: #7b68ee; color: white; }
.crew-event.audio { background: #00d4aa; color: #1a1d21; }
.crew-event.producer { background: #0073ea; color: white; }
.crew-event.editor { background: #ffa940; color: #1a1d21; }

.crew-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.reporter { background: #ff7eb3; }
.legend-color.camera { background: #7b68ee; }
.legend-color.audio { background: #00d4aa; }
.legend-color.producer { background: #0073ea; }
.legend-color.editor { background: #ffa940; }

/* Story Ideas Kanban Styles */
.ideas-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ideas-view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-dark);
    border-radius: 6px;
    padding: 0.25rem;
}

.ideas-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.ideas-grid.active {
    display: grid;
}

.ideas-kanban {
    display: none;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    min-height: 500px;
}

.ideas-kanban.active {
    display: grid;
}

.ideas-kanban-column {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kanban-col-header {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.kanban-col-header h3 {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.kanban-col-header.draft { background: rgba(0, 115, 234, 0.15); }
.kanban-col-header.draft h3 { color: #0073ea; }

.kanban-col-header.submitted { background: rgba(253, 171, 61, 0.15); }
.kanban-col-header.submitted h3 { color: #fdab3d; }

.kanban-col-header.under_review { background: rgba(162, 93, 220, 0.15); }
.kanban-col-header.under_review h3 { color: #a25ddc; }

.kanban-col-header.approved { background: rgba(0, 200, 117, 0.15); }
.kanban-col-header.approved h3 { color: #00c875; }

.kanban-col-header.rejected { background: rgba(232, 67, 83, 0.15); }
.kanban-col-header.rejected h3 { color: #e84353; }

.kanban-col-header.converted { background: rgba(87, 155, 252, 0.15); }
.kanban-col-header.converted h3 { color: #579bfc; }

.kanban-col-count {
    background: var(--bg-dark);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.kanban-col-body {
    flex: 1;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    max-height: 450px;
}

.idea-kanban-card {
    background: var(--bg-dark);
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.idea-kanban-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.idea-kanban-title {
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.idea-kanban-pitch {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.idea-kanban-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.idea-kanban-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.idea-kanban-date i {
    width: 12px;
    text-align: center;
}

.idea-kanban-broadcast {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--primary-blue);
    background: rgba(0, 115, 234, 0.15);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}

.idea-kanban-warning {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.idea-kanban-warning.warning-urgent {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.idea-kanban-warning.warning-caution {
    background: rgba(217, 119, 6, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.idea-kanban-warning.warning-ok {
    background: rgba(22, 163, 74, 0.15);
    color: #22c55e;
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.idea-kanban-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Story Idea Workspace Overlay - Light card-based layout */
.idea-workspace-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f6f8;
    z-index: 1000;
    flex-direction: column;
}

.idea-workspace-overlay.active {
    display: flex;
}

.idea-workspace-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.idea-workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 2rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e6e9ef;
}

.idea-workspace-title h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #323338;
    font-weight: 600;
}

.idea-workspace-subtitle {
    color: #676879;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.idea-ai-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}
.idea-ai-btn:hover {
    opacity: 0.88;
    transform: scale(1.03);
}
.idea-ai-btn.ai-loading {
    opacity: 0.65;
    cursor: wait;
}

.idea-workspace-close {
    background: #f5f6f8;
    border: none;
    color: #323338;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.idea-workspace-close:hover {
    background: #e6e9ef;
}

.idea-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.idea-status-badge.status-draft {
    background: #f5f6f8;
    color: #676879;
}

.idea-status-badge.status-submitted {
    background: #e3f2fd;
    color: #1976d2;
}

.idea-status-badge.status-under_review {
    background: #fff3e0;
    color: #f57c00;
}

.idea-status-badge.status-approved {
    background: #e8f5e9;
    color: #388e3c;
}

.idea-status-badge.status-rejected {
    background: #ffebee;
    color: #d32f2f;
}

.idea-status-badge.status-converted {
    background: #f3e5f5;
    color: #7b1fa2;
}

.idea-footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #676879;
    font-size: 0.85rem;
}

.idea-submitter-info {
    font-style: italic;
}

#ideaReviewSummary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.review-summary-item {
    padding: 0.75rem;
    background: #f5f6f8;
    border-radius: 6px;
}

.review-summary-item label {
    font-size: 0.75rem;
    color: #676879;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.review-summary-item .value {
    font-weight: 500;
    color: #323338;
}

#ideaRulesDisplay {
    max-height: 300px;
    overflow-y: auto;
}

.rule-item {
    padding: 0.75rem;
    background: #f5f6f8;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #0073ea;
}

.rule-item .rule-title {
    font-weight: 600;
    color: #323338;
    margin-bottom: 0.25rem;
}

.rule-item .rule-description {
    font-size: 0.85rem;
    color: #676879;
}

.rules-loading {
    text-align: center;
    padding: 1rem;
    color: #676879;
}

.no-rules {
    text-align: center;
    padding: 1rem;
    color: #676879;
    font-style: italic;
}

.idea-workspace-tabs {
    display: flex;
    gap: 1.5rem;
    padding: 0 2rem;
    background: #fff;
    border-bottom: 1px solid #e6e9ef;
}

.idea-ws-tab {
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #676879;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.idea-ws-tab:hover {
    color: #0073ea;
}

.idea-ws-tab.active {
    color: #0073ea;
    border-bottom-color: #0073ea;
}

.idea-workspace-body {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    background: #f5f6f8;
}

.idea-ws-panel {
    display: none;
}

.idea-ws-panel.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.idea-card-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.idea-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 3px solid;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #323338;
}

.idea-card-header.blue { border-color: #0073ea; }
.idea-card-header.blue i { color: #0073ea; }
.idea-card-header.yellow { border-color: #cab641; }
.idea-card-header.yellow i { color: #cab641; }
.idea-card-header.orange { border-color: #fdab3d; }
.idea-card-header.orange i { color: #fdab3d; }
.idea-card-header.green { border-color: #00c875; }
.idea-card-header.green i { color: #00c875; }
.idea-card-header.purple { border-color: #a25ddc; }
.idea-card-header.purple i { color: #a25ddc; }

.idea-card-body {
    padding: 1.25rem;
}

.idea-card-body .field-group {
    margin-bottom: 1rem;
}

.idea-card-body .field-group:last-child {
    margin-bottom: 0;
}

.idea-card-body .field-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: #676879;
    font-weight: 500;
}

.idea-card-body input,
.idea-card-body select,
.idea-card-body textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: #fff;
    border: 1px solid #c5c7d0;
    border-radius: 4px;
    color: #323338;
    font-size: 0.9rem;
}

.idea-card-body input:focus,
.idea-card-body select:focus,
.idea-card-body textarea:focus {
    outline: none;
    border-color: #0073ea;
}

.idea-card-body textarea {
    resize: vertical;
    min-height: 80px;
}

.idea-workspace-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #323338;
    gap: 0.75rem;
}

.idea-footer-left {
    color: #9ca3af;
    font-size: 0.85rem;
}

.idea-footer-right {
    display: flex;
    gap: 0.75rem;
}

.idea-btn-draft {
    background: #e84c60;
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.idea-btn-draft:hover {
    background: #d63e51;
}

.idea-btn-submit {
    background: #0073ea;
    color: #fff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.idea-btn-submit:hover {
    background: #0060c2;
}

.idea-status-indicator {
    display: none;
}

/* ===== Workspace View Styles ===== */
.workspace-toolbar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.btn-back-view {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-back-view:hover {
    background: var(--primary-blue);
    color: white;
}

.workspace-toolbar h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.workspace-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.ws-tab {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.ws-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.ws-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.ws-tab-content {
    display: none;
}

.ws-tab-content.active {
    display: block;
}

.ws-three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ws-panel {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.ws-panel-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ws-panel-header i {
    color: var(--primary-blue);
}

.ws-panel-header.logistics i { color: var(--warning); }
.ws-panel-header.team i { color: var(--success); }

.ws-info-row {
    margin-bottom: 0.75rem;
}

.ws-info-row label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.ws-info-row > div {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.ws-angle-section {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.ws-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ws-section-header span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ws-section-header i {
    color: var(--primary-blue);
}

.ws-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: vertical;
}

.ws-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.ws-notebook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ws-items-list {
    min-height: 150px;
}

.ws-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.ws-script-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.ws-script-editor {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.ws-script-textarea {
    width: 100%;
    min-height: 450px;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
}

.ws-script-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.ws-template-panel {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    max-height: 550px;
    display: flex;
    flex-direction: column;
}

.ws-template-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.ws-template-header i {
    color: var(--primary-blue);
}

.ws-template-header h4 {
    margin: 0;
    font-size: 1rem;
}

.ws-template-search {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ws-template-search:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.ws-template-list {
    flex: 1;
    overflow-y: auto;
}

.ws-template-item {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ws-template-item:hover {
    border-color: var(--primary-blue);
    background: var(--bg-hover);
}

.ws-template-item-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ws-template-item-category {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.ws-template-item-category.news { background: rgba(0, 115, 234, 0.15); color: var(--primary-blue); }
.ws-template-item-category.sports { background: rgba(255, 126, 179, 0.15); color: var(--sports); }
.ws-template-item-category.feature { background: rgba(112, 161, 255, 0.15); color: var(--feature); }
.ws-template-item-category.general { background: var(--bg-hover); color: var(--text-secondary); }

.ws-template-item-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ws-template-insert-btn {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.4rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.ws-template-insert-btn:hover {
    background: var(--primary-dark);
}

.ws-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.ws-video-template-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ws-video-template-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 234, 0.15);
}

.ws-video-template-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), #00a0ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.ws-video-template-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ws-video-template-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.ws-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.ws-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.ws-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.ws-shots-list,
.ws-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ws-shot-item,
.ws-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.ws-shot-item input[type="checkbox"],
.ws-checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
}

.ws-planning-content,
.ws-video-content {
    min-height: 300px;
}

.ws-note-item,
.ws-source-item {
    background: var(--bg-dark);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.ws-note-item:hover,
.ws-source-item:hover {
    border-color: var(--primary-blue);
}

.ws-note-title,
.ws-source-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.ws-note-content,
.ws-source-url {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ws-video-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.ws-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-dark);
    min-height: 300px;
}

.ws-upload-area:hover {
    border-color: var(--primary-blue);
    background: var(--bg-hover);
}

.btn-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--primary-blue);
}

.btn-icon.danger:hover {
    background: rgba(228, 66, 88, 0.1);
    color: var(--danger);
}

.note-type-badge,
.source-type-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-right: 0.5rem;
}

.note-type-badge.general { background: var(--bg-hover); color: var(--text-secondary); }
.note-type-badge.fact { background: rgba(0, 200, 117, 0.15); color: var(--success); }
.note-type-badge.quote { background: rgba(87, 155, 252, 0.15); color: var(--info); }
.note-type-badge.statistic { background: rgba(255, 203, 0, 0.15); color: var(--warning); }
.note-type-badge.background { background: rgba(123, 104, 238, 0.15); color: var(--school); }

.source-type-badge.interview { background: rgba(0, 200, 117, 0.15); color: var(--success); }
.source-type-badge.document { background: rgba(87, 155, 252, 0.15); color: var(--info); }
.source-type-badge.link { background: rgba(0, 115, 234, 0.15); color: var(--primary-blue); }
.source-type-badge.press_release { background: rgba(255, 203, 0, 0.15); color: var(--warning); }
.source-type-badge.other { background: var(--bg-hover); color: var(--text-secondary); }

@media (max-width: 1024px) {
    .ws-three-column {
        grid-template-columns: 1fr;
    }
    .ws-notebook-grid {
        grid-template-columns: 1fr;
    }
    .ws-video-grid {
        grid-template-columns: 1fr;
    }
}

/* Event Workspace Kanban Timeline */
.kanban-board {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.kanban-column {
    flex: 1;
    min-width: 180px;
    background: var(--bg-card);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.kanban-column .kanban-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-column .kanban-title {
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-column .kanban-count {
    background: var(--bg-hover);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.kanban-column .kanban-body {
    padding: 8px;
    min-height: 120px;
    flex: 1;
    transition: background 0.2s;
}

.kanban-card {
    user-select: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.kanban-card:active {
    cursor: grabbing;
}

/* Production Status Console Tabs */
.ws-status-console .status-tab {
    background: var(--bg-hover);
    color: var(--text-secondary);
}
.ws-status-console .status-tab:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}
.ws-status-console .status-tab.active {
    background: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(0, 115, 234, 0.4);
}
.ws-status-console .status-tab.completed {
    background: var(--success);
    color: #ffffff;
}
.ws-status-console .status-tab.turn-in.active {
    background: var(--warning);
    color: #1a1d21;
}
.ws-status-console .status-tab:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
