/* =========================================================
   ADMIN HUB - MODERN DARK THEME DESIGN SYSTEM (TODO & YTA)
   ========================================================= */

:root {
    --bg-main: #090d16;
    --bg-card: #0f172a;
    --bg-card-hover: #162238;
    --bg-surface: #1e293b;
    --bg-surface-light: #283548;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: #6366f1;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.25);
    
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-purple: #8b5cf6;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.2);
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-light);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* Background Ambient Glows */
.ambient-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}
.glow-top {
    top: -100px;
    left: 20%;
    background: radial-gradient(circle, #6366f1, #06b6d4);
}
.glow-bottom {
    bottom: -100px;
    right: 15%;
    background: radial-gradient(circle, #ec4899, #8b5cf6);
}

/* Utilities */
.hidden { display: none !important; }
.mt-3 { margin-top: 1rem !important; }
.text-red { color: #ef4444; }
.text-amber { color: #f59e0b; }

/* =========================================================
   LOGIN SCREEN
   ========================================================= */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.login-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.glow-1 {
    top: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
}
.glow-2 {
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25), transparent 70%);
}

.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.35s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-glow);
}
.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}
.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.form-group label .required {
    color: var(--accent-rose);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper input,
input[type="text"],
input[type="password"],
input[type="date"],
textarea,
select {
    width: 100%;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
.input-wrapper input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: var(--transition);
}
.btn-toggle-pw:hover {
    color: var(--text-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4338ca);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #7174ff, var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-block {
    width: 100%;
}
.btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}
.btn-success {
    background: var(--accent-emerald) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: var(--bg-surface-light);
    color: var(--text-main);
}

.login-footer {
    margin-top: 1.75rem;
    text-align: center;
}
.security-badge {
    font-size: 0.78rem;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Alert box */
.alert-box {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.alert-danger {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fda4af;
}

/* =========================================================
   DASHBOARD LAYOUT & TOP NAVIGATION
   ========================================================= */
.app-layout {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}
.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.brand-text {
    display: flex;
    flex-direction: column;
}
.brand-title {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-subtitle {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Tabs Navigation */
.main-tabs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(30, 41, 59, 0.5);
    padding: 0.3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: var(--transition);
}
.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}
.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.tab-badge {
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
}
.badge-yta {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
.tab-btn.active .badge-yta {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.badge-niche {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
}
.tab-btn.active .badge-niche {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.badge-archived {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}
    color: #fcd34d;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.current-date-badge {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border-color);
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
}
.user-info {
    display: flex;
    flex-direction: column;
}
.user-info .username {
    font-size: 0.88rem;
    font-weight: 700;
}
.user-info .role {
    font-size: 0.7rem;
    color: var(--accent-emerald);
}

.btn-logout {
    background: rgba(244, 63, 94, 0.12);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.25);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}
.btn-logout:hover {
    background: rgba(244, 63, 94, 0.25);
    color: #fff;
}

/* Mobile Tabs */
.mobile-tabs {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    z-index: 99;
    justify-content: space-around;
}
.mob-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.mob-tab-btn.active {
    color: var(--primary);
}
.mob-tab-btn i {
    font-size: 1.15rem;
}

/* Main Container */
.main-container {
    flex: 1;
    padding: 1.75rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
}
.tab-pane.active {
    display: block;
}

/* Pane Header */
.pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.header-titles h2 {
    font-size: 1.45rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.header-titles .subtitle {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-dim);
    font-size: 0.88rem;
}
.search-box input {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.55rem 1rem 0.55rem 2.2rem;
    color: var(--text-main);
    font-size: 0.88rem;
    width: 220px;
    transition: var(--transition);
}
.search-box input:focus {
    width: 280px;
    border-color: var(--primary);
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

.stat-content {
    display: flex;
    flex-direction: column;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}
.stat-val {
    font-size: 1.45rem;
    font-weight: 800;
}

/* =========================================================
   TODO KANBAN BOARD (TRELLO STYLE)
   ========================================================= */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: flex-start;
}

.kanban-col {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    min-height: 520px;
    max-height: calc(100vh - 260px);
}

.col-header {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}
.col-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.col-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-todo { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.dot-in_progress { background: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }
.dot-done { background: var(--accent-emerald); box-shadow: 0 0 8px var(--accent-emerald); }

.col-title h3 {
    font-size: 0.95rem;
    font-weight: 700;
}
.col-count {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.btn-col-add {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-col-add:hover {
    background: var(--bg-surface);
    color: var(--text-main);
}

.col-cards-list {
    flex: 1;
    padding: 0.85rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 150px;
}
.col-cards-list.drag-over {
    background: rgba(99, 102, 241, 0.08);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-sm);
}

/* Kanban Card */
.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
    cursor: grab;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}
.kanban-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.kanban-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.priority-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}
.priority-low { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }
.priority-medium { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.priority-high { background: rgba(244, 63, 94, 0.15); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.3); }

.card-drag-handle {
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: grab;
}

.card-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}
.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.6rem;
    word-break: break-word;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.card-date {
    font-size: 0.72rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.card-date.date-today { color: var(--accent-emerald); font-weight: 600; }
.card-date.date-past { color: var(--accent-rose); font-weight: 600; }

.card-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.btn-card-action {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.75rem;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-card-action:hover {
    background: var(--bg-surface);
    color: var(--text-main);
}
.btn-card-action.btn-del:hover {
    background: rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
}

/* Quick move arrows for mobile/touch */
.card-move-buttons {
    display: inline-flex;
    gap: 2px;
}
.btn-move {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-move:hover {
    background: var(--primary);
    color: #fff;
}

/* =========================================================
   YTA SECTION (CHANNELS & CONTENT PLANNER)
   ========================================================= */
.yta-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.yta-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-title h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-icon-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-icon-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-glow);
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.channel-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}
.channel-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
}
.channel-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.1));
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.channel-item-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    overflow: hidden;
}
.channel-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}
.channel-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-badges-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.channel-video-count {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
}
.channel-today-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 6px var(--accent-emerald);
}

/* YTA Main Content */
.yta-main-content {
    min-width: 0;
}

.empty-state-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3.5rem 2rem;
    text-align: center;
}
.empty-icon {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}
.empty-state-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.empty-state-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 450px;
    margin: 0 auto;
}

.channel-banner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.channel-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.channel-badge-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.channel-meta h2 {
    font-size: 1.35rem;
    font-weight: 700;
}
.meta-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.tag-chip {
    font-size: 0.75rem;
    background: var(--bg-surface);
    color: var(--text-muted);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.tag-chip-green {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.channel-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.btn-icon-danger {
    background: rgba(244, 63, 94, 0.15);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.25);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-icon-danger:hover {
    background: var(--accent-rose);
    color: #fff;
}

/* =========================================================
   TODAY HERO BOX (EASY ACCESS HIGHLIGHT)
   ========================================================= */
.today-hero-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}
.hero-glow {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.hero-top-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #818cf8;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}
.live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #818cf8;
    box-shadow: 0 0 10px #818cf8;
    animation: pulse 1.5s infinite;
}
.hero-date {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.hero-title-wrap {
    flex: 1;
    min-width: 250px;
}
.hero-video-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}
.hero-video-notes {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-hero-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}
.btn-hero-action:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}
.btn-hero-archive {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}
.btn-hero-archive:hover {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
}

.hero-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: #a5b4fc;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

/* Videos Toolbar & Filter Pills */
.videos-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.filter-pills {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.25rem;
    border-radius: var(--radius-full);
}
.filter-pill {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.filter-pill:hover {
    color: var(--text-main);
}
.filter-pill.active {
    background: var(--bg-surface-light);
    color: #fff;
}

/* =========================================================
   DATA TABLE DESIGN
   ========================================================= */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.data-table th {
    background: rgba(30, 41, 59, 0.4);
    padding: 0.9rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-color);
}
.data-table td {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}
.data-table tbody tr {
    transition: var(--transition);
}
.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.data-table tbody tr.row-today {
    background: rgba(99, 102, 241, 0.05);
}

.video-cell-title {
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.2rem;
}
.video-cell-notes {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.date-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.date-today { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.date-tomorrow { background: rgba(6, 182, 212, 0.15); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.3); }
.date-upcoming { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); }
.date-past { background: rgba(100, 116, 139, 0.15); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.3); }

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}
.btn-tbl-action {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}
.btn-tbl-action:hover {
    background: var(--bg-surface-light);
    color: var(--text-main);
}
.btn-tbl-archive:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}
.btn-tbl-restore:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}
.btn-tbl-delete:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

.table-empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-dim);
}
.table-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

/* =========================================================
   MODALS
   ========================================================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-backdrop.open {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.modal-dialog {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeInScale 0.25s ease-out;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-modal-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-modal-close:hover {
    background: var(--bg-surface);
    color: var(--text-main);
}

.modal-body {
    padding: 1.5rem;
}
.modal-footer {
    padding: 1rem 1.5rem;
    background: rgba(30, 41, 59, 0.3);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}
.col-half {
    flex: 1;
}

.input-with-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.date-quick-buttons {
    display: flex;
    gap: 0.4rem;
}
.btn-quick-date {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.btn-quick-date:hover {
    background: var(--primary);
    color: #fff;
}

/* Color Picker Chips */
.color-picker-chips {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.color-chip-label input {
    display: none;
}
.chip-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.color-chip-label input:checked + .chip-circle {
    transform: scale(1.15);
    border-color: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    color: var(--text-main);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease-out;
}
.toast-success { border-color: var(--accent-emerald); }
.toast-success i { color: var(--accent-emerald); }
.toast-error { border-color: var(--accent-rose); }
.toast-error i { color: var(--accent-rose); }

/* =========================================================
   ANIMATIONS & RESPONSIVE
   ========================================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 1024px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
    .kanban-col {
        min-height: auto;
        max-height: none;
    }
    .yta-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
        padding-bottom: 5rem; /* space for mobile tabs */
    }
    .hide-mobile {
        display: none !important;
    }
    .show-mobile {
        display: flex !important;
    }
    .main-tabs {
        display: none;
    }
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .search-box input {
        width: 100%;
    }
}

/* YT Niche Custom Styling */
.niche-source-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.niche-source-title {
    font-weight: 600;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.niche-channel-cell {
    display: flex;
    align-items: center;
}
.channel-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(30, 41, 59, 0.6);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-main);
}
.link-external {
    color: #38bdf8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    word-break: break-all;
    transition: var(--transition);
}
.link-external:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

