/* RundownHQ - Rundowns Lite Styling */
/* ATEM Broadcast Control Center Theme */
/* Color Palette: Monday.com Blues (#0073ea), NO purple */

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

/* Theme Variables - Light Mode (default) */
:root {
    --rundown-bg: #f5f6f8;
    --rundown-card-bg: #f0f1f3;
    --rundown-card-hover-bg: #e8eaed;
    --rundown-text-primary: #1a1d21;
    --rundown-text-secondary: #676879;
    --rundown-text-muted: #9fadbc;
    --rundown-border: #d0d4e4;
    --rundown-border-light: #d0d4e4;
    --rundown-header-bg: #f0f1f3;
    --rundown-input-bg: #ffffff;
    --rundown-filter-bg: #f0f1f3;
    --rundown-notices-bg: #e8eaed;
    --rundown-notices-header: #d0d4e4;
    --rundown-stat-bg: #e8eaed;
    --rundown-shadow: rgba(0, 0, 0, 0.08);
    --rundown-shadow-hover: rgba(0, 0, 0, 0.12);
}

/* Dark Mode */
[data-theme="dark"] {
    --rundown-bg: #1a1d21;
    --rundown-card-bg: #23272b;
    --rundown-card-hover-bg: #2d3135;
    --rundown-text-primary: #ffffff;
    --rundown-text-secondary: #9fadbc;
    --rundown-text-muted: #676879;
    --rundown-border: #3d4349;
    --rundown-border-light: #3d4349;
    --rundown-header-bg: #23272b;
    --rundown-input-bg: #2d3135;
    --rundown-filter-bg: #2d3135;
    --rundown-notices-bg: #2d3135;
    --rundown-notices-header: #23272b;
    --rundown-stat-bg: #2d3135;
    --rundown-shadow: rgba(0, 0, 0, 0.3);
    --rundown-shadow-hover: rgba(0, 0, 0, 0.4);
}

.container { 
    padding: 24px 32px; 
    max-width: 1400px;
    margin: 0 auto;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--rundown-text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e6e9ef;
    border-top-color: #0073ea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Console Header - Always Dark Mode (ATEM-style) */
.console-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    background: #1e2228;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #2d3339;
}

.console-left {
    display: flex;
    gap: 32px;
}

.switcher-section { }

.switcher-label {
    font-size: 10px;
    font-weight: 700;
    color: #9fadbc;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.atem-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 400px;
}

.atem-btn {
    width: 58px;
    height: 48px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(180deg, #e8e8e8 0%, #c8c8c8 50%, #b0b0b0 100%);
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
    position: relative;
    box-shadow: 
        0 3px 0 #666666,
        0 4px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.atem-btn:hover { 
    background: linear-gradient(180deg, #f0f0f0 0%, #d8d8d8 50%, #c0c0c0 100%);
}

.atem-btn:active {
    background: linear-gradient(180deg, #b0b0b0 0%, #a0a0a0 50%, #909090 100%);
    box-shadow: 
        0 1px 0 #666666,
        0 2px 2px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}

.atem-btn.active { 
    background: linear-gradient(180deg, #ff4444 0%, #cc0000 50%, #aa0000 100%);
    color: white; 
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 
        0 3px 0 #660000,
        0 4px 4px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.atem-btn.status-live { 
    background: linear-gradient(180deg, #e8e8e8 0%, #c8c8c8 50%, #b0b0b0 100%);
    color: #1a1a1a;
    position: relative;
}

.atem-btn.status-live::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #00c875;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 200, 117, 0.8);
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 6px rgba(0, 200, 117, 0.8); }
    50% { box-shadow: 0 0 12px rgba(0, 200, 117, 1); }
}

.atem-callsign { 
    font-size: 10px; 
    font-weight: 700; 
    letter-spacing: 0.5px;
}
.atem-meta { font-size: 8px; opacity: 0.7; margin-top: 1px; }

.atem-btn.atem-empty { 
    background: linear-gradient(180deg, #d0d0d0 0%, #b8b8b8 50%, #a0a0a0 100%);
    color: #888888; 
    cursor: default;
    box-shadow: 
        0 3px 0 #666666,
        0 4px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.atem-btn.atem-empty:hover { 
    background: linear-gradient(180deg, #d0d0d0 0%, #b8b8b8 50%, #a0a0a0 100%);
    color: #888888; 
}

.selected-program-title {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s;
}

.selected-program-title.visible { opacity: 1; }

.console-divider {
    width: 1px;
    background: #3d4349;
    margin: -20px 0;
}

.console-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.console-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.console-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #2d3135;
    color: #9fadbc;
}

.stat-pill i { font-size: 10px; }
.stat-pill.live { background: rgba(0, 200, 117, 0.2); color: #00c875; }
.stat-pill.scheduled { background: rgba(253, 171, 61, 0.2); color: #fdab3d; }
.stat-pill.completed { background: rgba(0, 115, 234, 0.2); color: #0073ea; }

.console-create-btn {
    background: linear-gradient(180deg, #0073ea 0%, #005bb5 100%);
    color: white;
    border: 1px solid #0060c2;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.console-create-btn:hover { 
    background: linear-gradient(180deg, #0084ff 0%, #0073ea 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.console-create-btn:active {
    background: linear-gradient(180deg, #005bb5 0%, #004a94 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.console-create-btn i { font-size: 11px; }

/* Notices Panel - Always Dark Mode */
.notices-panel {
    background: #2d3135;
    border-radius: 8px;
    overflow: hidden;
    max-height: 120px;
    border: 1px solid #3d4349;
}

.notices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #23272b;
    font-size: 12px;
}

.notices-title { font-weight: 600; color: #ffffff; }
.notices-title i { margin-right: 6px; color: #9fadbc; }

.mark-read-link { color: #0073ea; text-decoration: none; font-size: 11px; }
.mark-read-link:hover { text-decoration: underline; }

.notices-scroll {
    max-height: 80px;
    overflow-y: auto;
}

.notice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #3d4349;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.notice-row:hover { background: #23272b; }
.notice-row:last-child { border-bottom: none; }
.notice-row.unread { background: rgba(0, 115, 234, 0.15); }
.notice-row.unread:hover { background: rgba(0, 115, 234, 0.2); }

.notice-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.notice-icon.info { background: #e3f2fd; color: #0073ea; }
.notice-icon.warning { background: #fff3e0; color: #ef6c00; }
.notice-icon.success { background: #e8f5e9; color: #2e7d32; }
.notice-icon.critical { background: #ffebee; color: #c62828; }

.notice-content { flex: 1; min-width: 0; }
.notice-title { font-weight: 500; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-time { color: #9fadbc; font-size: 10px; }

.notice-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.notice-actions button {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #9fadbc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.15s;
}

.notice-actions button:hover { background: var(--rundown-stat-bg); color: var(--rundown-text-primary); }

.notices-empty {
    padding: 16px;
    text-align: center;
    color: var(--rundown-text-secondary);
    font-size: 12px;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rundown-border-light) 20%, var(--rundown-border-light) 80%, transparent);
    margin: 24px 0;
}

/* Filter Row */
.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
    background: #1e2228;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #2d3339;
}

.filter-btn {
    padding: 8px 14px;
    border: 1px solid #3d4349;
    border-radius: 4px;
    background: linear-gradient(180deg, #2d3135 0%, #23272b 100%);
    color: #9fadbc;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover { 
    background: linear-gradient(180deg, #3d4349 0%, #2d3135 100%);
    color: #ffffff;
    border-color: #4d5359;
}
.filter-btn.active { 
    background: linear-gradient(180deg, #0073ea 0%, #005bb5 100%);
    color: white; 
    border-color: #0060c2;
    box-shadow: 0 0 8px rgba(0, 115, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-input {
    margin-left: auto;
    padding: 8px 14px;
    border: 1px solid #3d4349;
    border-radius: 4px;
    background: #23272b;
    color: #ffffff;
    font-size: 12px;
    width: 220px;
    outline: none;
    transition: all 0.2s;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.search-input::placeholder {
    color: #676879;
}

.search-input:focus {
    border-color: #0073ea;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(0, 115, 234, 0.2);
}

/* Rundown Grid */
.rundown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.rundown-card {
    background: var(--rundown-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--rundown-shadow);
    transition: all 0.2s;
    border: 1px solid var(--rundown-border-light);
}

.rundown-card:hover {
    box-shadow: 0 4px 12px var(--rundown-shadow-hover);
    transform: translateY(-2px);
    border-color: #0073ea;
}

.rundown-card.live {
    border-color: #00c875;
    box-shadow: 0 0 0 1px #00c875, 0 4px 16px rgba(0,200,117,0.2);
}

.card-status {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-status i { font-size: 10px; }

.card-status.live { background: #00c875; color: white; }
.card-status.scheduled { background: #fdab3d; color: white; }
.card-status.draft { background: #676879; color: white; }
.card-status.completed { background: #0073ea; color: white; }

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.countdown {
    font-family: monospace;
    font-size: 10px;
    opacity: 0.9;
    margin-left: auto;
}

.card-body { padding: 16px; }

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--rundown-text-primary);
    margin-bottom: 4px;
}

.card-program {
    font-size: 12px;
    color: var(--rundown-text-secondary);
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rundown-text-secondary);
}

.meta-row i { width: 16px; text-align: center; color: #0073ea; }

.card-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--rundown-border-light);
}

.card-action-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--rundown-border-light);
    border-radius: 6px;
    background: var(--rundown-card-bg);
    color: var(--rundown-text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.card-action-btn:hover {
    background: #0073ea;
    color: white;
    border-color: #0073ea;
}

.card-action-btn.primary {
    background: #0073ea;
    color: white;
    border-color: #0073ea;
}

.card-action-btn.primary:hover { background: #0060c2; }

.card-action-btn.danger:hover {
    background: #c62828;
    border-color: #c62828;
}

.card-action-btn.icon-only {
    flex: 0;
    width: 36px;
    padding: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--rundown-text-secondary);
}

.empty-state i {
    font-size: 48px;
    color: var(--rundown-border-light);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--rundown-text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal {
    background: var(--rundown-card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid var(--rundown-border);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--rundown-border-light);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--rundown-text-primary);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--rundown-text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover { background: var(--rundown-stat-bg); }

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
    color: var(--rundown-text-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--rundown-border-light);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--rundown-text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rundown-border-light);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: var(--rundown-input-bg);
    color: var(--rundown-text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--rundown-text-muted); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073ea;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary { background: #0073ea; color: white; }
.btn-primary:hover { background: #0060c2; }

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

.btn-danger { background: #c62828; color: white; }
.btn-danger:hover { background: #a51d1d; }

/* Responsive */
@media (max-width: 1024px) {
    .console-header { flex-direction: column; }
    .console-divider { width: 100%; height: 1px; margin: 0; }
    .atem-grid { max-width: 100%; }
}

@media (max-width: 768px) {
    .container { padding: 16px; }
    .atem-grid { max-width: 100%; }
    .rundown-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .search-input { width: 100%; margin-left: 0; margin-top: 8px; }
}

/* Notice Detail Modal */
.notice-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.notice-detail-modal {
    background: var(--rundown-card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid var(--rundown-border);
}

.notice-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rundown-border-light);
}

.notice-detail-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--rundown-text-primary);
}

.notice-detail-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--rundown-text-secondary);
    cursor: pointer;
}

.notice-detail-close:hover { background: var(--rundown-stat-bg); }

.notice-detail-body {
    padding: 20px;
    color: var(--rundown-text-primary);
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
}

/* Confirmation Modal */
.confirm-modal {
    text-align: center;
    padding: 20px;
}

.confirm-modal i {
    font-size: 48px;
    color: #fdab3d;
    margin-bottom: 16px;
}

.confirm-modal h3 {
    font-size: 18px;
    color: var(--rundown-text-primary);
    margin-bottom: 8px;
}

.confirm-modal p {
    color: var(--rundown-text-secondary);
    margin-bottom: 24px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Live Console Modal */
.live-console-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.live-console-modal {
    background: #1a1d21;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.live-console-header {
    background: #e74c3c;
    color: white;
    padding: 16px 20px;
    position: relative;
}

.live-console-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.live-console-header h3 i {
    margin-right: 8px;
}

.live-console-subtitle {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

.live-console-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.live-console-close:hover {
    opacity: 1;
}

.live-console-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.live-console-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #2d3138;
    border: 1px solid #3d4148;
    border-radius: 8px;
    padding: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.live-console-btn:hover {
    background: #3d4148;
    border-color: #0073ea;
    transform: translateX(4px);
}

.live-console-btn i {
    font-size: 24px;
    color: #0073ea;
    width: 32px;
    text-align: center;
}

.live-console-btn .btn-label {
    font-size: 15px;
    font-weight: 600;
    display: block;
}

.live-console-btn .btn-desc {
    font-size: 12px;
    color: #9ca3af;
    display: block;
    margin-top: 2px;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 4px;
    margin-left: auto;
    background: var(--rundown-card-bg);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid var(--rundown-border);
}

.toggle-btn {
    padding: 8px 12px;
    border: 1px solid #3d4349;
    border-radius: 4px;
    background: linear-gradient(180deg, #2d3135 0%, #23272b 100%);
    color: #9fadbc;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.toggle-btn:hover {
    color: #ffffff;
    background: linear-gradient(180deg, #3d4349 0%, #2d3135 100%);
    border-color: #4d5359;
}

.toggle-btn.active {
    background: linear-gradient(180deg, #0073ea 0%, #005bb5 100%);
    color: white;
    border-color: #0060c2;
    box-shadow: 0 0 8px rgba(0, 115, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Kanban Board - Matching Media Desk Design */
.rundown-kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    min-height: 500px;
}

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

.kanban-column-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--rundown-border);
    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;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kanban-column-header.draft { background: rgba(196, 196, 196, 0.2); }
.kanban-column-header.draft h3 { color: #9fadbc; }
[data-theme="dark"] .kanban-column-header.draft h3 { color: #c4c4c4; }

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

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

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

.kanban-count {
    background: var(--rundown-stat-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rundown-text-secondary);
}

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

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

.kanban-card:hover {
    border-color: #0073ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--rundown-shadow-hover);
}

.kanban-card.live {
    border-color: #00c875;
    box-shadow: 0 0 0 2px rgba(0, 200, 117, 0.3);
}

.kanban-card-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--rundown-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kanban-card-program {
    font-size: 0.75rem;
    color: var(--rundown-text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kanban-card-program i {
    color: #0073ea;
    font-size: 0.7rem;
}

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

.kanban-card-date {
    color: var(--rundown-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kanban-card-date i {
    font-size: 0.7rem;
}

.kanban-card-segments {
    background: var(--rundown-stat-bg);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    color: var(--rundown-text-secondary);
    font-weight: 500;
}

.kanban-card-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #00c875;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kanban-card-live-badge .live-dot {
    width: 6px;
    height: 6px;
}

.kanban-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--rundown-text-muted);
    font-size: 0.85rem;
}

.kanban-empty i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

@media (max-width: 1200px) {
    .rundown-kanban {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rundown-kanban {
        grid-template-columns: 1fr;
    }
    
    .view-toggle {
        display: none;
    }
}
