/* ═══════════════════════════════════════════════════════════════
   HermesTV Admin — Design System & Component Styles (v2.5)
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-dark:        #080c14;
    --bg-surface:     #0d1322;
    --bg-card:        rgba(15, 23, 42, 0.72);
    --bg-card-hover:  rgba(26, 38, 64, 0.85);
    --border-color:   rgba(255, 255, 255, 0.08);
    --border-hover:   rgba(14, 165, 233, 0.35);
    --primary:        #0ea5e9;
    --primary-hover:  #0284c7;
    --primary-glow:   rgba(14, 165, 233, 0.3);
    --secondary:      #1e293b;
    --text-main:      #f8fafc;
    --text-muted:     #94a3b8;
    --accent-blue:    #38bdf8;
    --accent-green:   #10b981;
    --accent-red:     #f43f5e;
    --accent-orange:  #f97316;
    --accent-amber:   #f59e0b;
    --accent-purple:  #8b5cf6;
    --radius-sm:  8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.15);
}

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(at 0% 0%,   rgba(14, 165, 233, 0.12) 0px, transparent 45%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.10) 0px, transparent 45%),
        radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.5) 0px, transparent 100%);
}


.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ─── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    width: 260px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.brand-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
}

.brand-text h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.brand-text span { font-size: 12px; color: var(--text-muted); }

.nav-menu { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.nav-item {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px; font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.nav-item i { font-size: 17px; width: 20px; text-align: center; }
.nav-item:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.nav-item.active { color: #fff; background: var(--primary); box-shadow: 0 4px 12px rgba(99,102,241,0.35); }

.sidebar-footer {
    display: flex; flex-direction: column; gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-kiosk-preview {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(56,189,248,0.1); color: var(--accent-blue);
    border: 1px solid rgba(56,189,248,0.2);
    padding: 10px; border-radius: var(--radius-sm);
    text-decoration: none; font-size: 13px; font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-kiosk-preview:hover { background: rgba(56,189,248,0.2); color: #fff; }

.btn-server-logs-preview {
    background: rgba(168,85,247,0.1); color: var(--accent-purple);
    border: 1px solid rgba(168,85,247,0.2);
}
.btn-server-logs-preview:hover { background: rgba(168,85,247,0.2); color: #fff; }

.server-status {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-muted); justify-content: center;
}

.pulse-dot {
    width: 8px; height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 6px var(--accent-green); }
    50%       { box-shadow: 0 0 14px var(--accent-green); }
}

/* ─── Main Content ───────────────────────────────────────────── */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.header-bar {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(15,23,42,0.4);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
    position: relative;
    z-index: 99999 !important;
}

.page-title h1 { font-size: 22px; font-weight: 700; }
.page-title p  { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.header-actions { display: flex; gap: 12px; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: 0 2px 6px rgba(99,102,241,0.25);
}
.btn-primary:hover:not(:disabled) { 
    background: var(--primary-hover); 
    box-shadow: 0 4px 14px rgba(99,102,241,0.4); 
    transform: translateY(-1px);
}

.btn-secondary { 
    background: rgba(255,255,255,0.03); 
    color: var(--text-main); 
    border: 1.5px solid var(--border-color); 
}
.btn-secondary:hover:not(:disabled) { 
    background: rgba(255,255,255,0.08); 
    border-color: rgba(255,255,255,0.18);
}

.btn-danger { 
    background: rgba(239,68,68,0.08); 
    color: #fca5a5; 
    border: 1px solid rgba(239,68,68,0.2); 
}
.btn-danger:hover:not(:disabled) { 
    background: var(--accent-red); 
    border-color: var(--accent-red);
    color: #fff; 
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

.btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 6px; }

.btn-text { 
    background: none; 
    border: none; 
    color: var(--accent-blue); 
    font-size: 13px; 
    font-weight: 600; 
    cursor: pointer; 
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}
.btn-text:hover { 
    background: rgba(56,189,248,0.08);
    text-decoration: none; 
}

/* Spinning refresh button animation */
@keyframes spinBtn { to { transform: rotate(360deg); } }
.spinning-btn i { animation: spinBtn 0.7s linear infinite; }

/* ─── Content scroll & Tabs ──────────────────────────────────── */
.content-scroll { flex: 1; overflow-y: auto; padding: 28px 32px; position: relative; z-index: 1; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.25s ease; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* ─── Stats Grid ─────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex; align-items: center; gap: 16px;
    transition: border-color 0.2s ease;
}
.stat-card:hover { border-color: rgba(255,255,255,0.15); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.icon-blue   { background: rgba(56,189,248,0.15);  color: var(--accent-blue);   }
.icon-green  { background: rgba(34,197,94,0.15);   color: var(--accent-green);  }
.icon-purple { background: rgba(168,85,247,0.15);  color: var(--accent-purple); }
.icon-orange { background: rgba(249,115,22,0.15);  color: var(--accent-orange); }

.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-info h3 { font-size: 28px; font-weight: 700; margin-top: 2px; }

/* ─── Tables & Cards ─────────────────────────────────────────── */
.section-card, .widget-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.dashboard-widgets { display: flex; flex-direction: column; gap: 24px; }

.widget-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.widget-header h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.widget-header h3 i { color: var(--accent-blue); }

.table-responsive { overflow-x: auto; }

.custom-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.custom-table th { text-align: left; padding: 11px 16px; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border-color); }
.custom-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.custom-table tr:last-child td { border-bottom: none; }
.custom-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.actions-cell { display: flex; gap: 6px; }

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
    padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
}
.badge i { font-size: 8px; }
.badge-online  { background: rgba(34,197,94,0.12);  color: var(--accent-green); border: 1px solid rgba(34,197,94,0.25);  }
.badge-offline { background: rgba(239,68,68,0.12);  color: var(--accent-red);   border: 1px solid rgba(239,68,68,0.25);  }
.badge-code    { background: rgba(255,255,255,0.07); font-family: monospace; font-size: 13px; letter-spacing: 1px; color: var(--accent-blue); padding: 3px 8px; border-radius: 4px; }

/* ─── Dropzone & Media Grid ──────────────────────────────────── */
.upload-dropzone {
    border: 2px dashed var(--primary);
    background: rgba(99,102,241,0.04);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center; cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.upload-dropzone i { font-size: 38px; color: var(--primary); }
.upload-dropzone:hover, .upload-dropzone.drag-over { background: rgba(99,102,241,0.1); border-color: var(--accent-blue); }
.upload-dropzone.drag-over { transform: scale(1.01); }
.dropzone-text h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.dropzone-text p  { font-size: 12px; color: var(--text-muted); }

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.media-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }

.media-preview-container {
    height: 140px; background: #000;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.media-preview-container img,
.media-preview-container video { width: 100%; height: 100%; object-fit: cover; }

.media-type-badge {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
    color: #fff; padding: 3px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 600;
}

.media-info { padding: 14px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.media-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-meta  { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; }
.media-actions { display: flex; gap: 6px; }

/* ─── Campaigns Grid ─────────────────────────────────────────── */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}

.campaign-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
    transition: border-color 0.2s ease;
}
.campaign-card:hover { border-color: rgba(255,255,255,0.15); }

.campaign-header { display: flex; justify-content: space-between; align-items: flex-start; }
.campaign-title  { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.campaign-details { font-size: 13px; color: var(--text-muted); display: flex; flex-direction: column; gap: 5px; }
.campaign-details i { width: 16px; color: var(--accent-blue); }

.days-chips { display: inline-flex; gap: 3px; }
.chip { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.05); color: var(--text-muted); font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.chip.active { background: var(--primary); color: #fff; }

/* ─── Settings Layout ────────────────────────────────────────── */
.settings-layout { display: flex; flex-direction: column; gap: 24px; max-width: 680px; }

/* ─── Modals ─────────────────────────────────────────────────── */
.modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 999999 !important;
    padding: 20px;
}
.modal.active { display: flex; }

.modal-content {
    background: #1a2540;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 28px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.25s ease;
}

.modal-lg { max-width: 960px; }

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

.btn-close { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; line-height: 1; }
.btn-close:hover { color: #fff; }

/* ─── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { 
    display: block; 
    font-size: 10.5px; 
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted); 
    margin-bottom: 7px; 
    font-weight: 600; 
}

.form-control {
    width: 100%; padding: 11px 14px;
    background: rgba(15,23,42,0.7);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main); font-size: 14.5px; outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }

textarea.form-control { resize: vertical; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

.form-row { display: flex; gap: 14px; }
.col-4 { flex: 4; } .col-6 { flex: 6; } .col-8 { flex: 8; }

/* Days selector */
.days-selector { display: flex; gap: 6px; }
.day-chip {
    flex: 1; text-align: center;
    background: rgba(15,23,42,0.6);
    border: 1px solid var(--border-color);
    padding: 8px 4px; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 12px; font-weight: 500;
    transition: all 0.15s ease;
    user-select: none;
    color: var(--text-light, #f8fafc);
}
.day-chip:hover { border-color: var(--primary); background: rgba(99,102,241,0.1); }
.day-chip input { display: none; }
.day-chip:has(input:checked) {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* Light Theme overrides for Day Chips */
body.light-theme .day-chip {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
body.light-theme .day-chip:hover {
    background: #e2e8f0 !important;
    border-color: #2563eb !important;
}
body.light-theme .day-chip:has(input:checked) {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* Terminals checkboxes */
/* Custom Scrollbar universal styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid transparent;
    background-clip: padding-box;
}



.terminals-checkbox-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    padding: 4px 2px 4px 0;
    max-height: 120px; 
    overflow-y: auto;
}
.terminal-checkbox-label { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 12.5px; 
    cursor: pointer;
    color: var(--text-main);
    padding: 4px 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.15s ease;
}
.terminal-checkbox-label:hover {
    background: rgba(99,102,241,0.06);
    border-color: rgba(99,102,241,0.25);
}
.terminal-checkbox-label input { 
    accent-color: var(--primary); 
    width: 14px; 
    height: 14px; 
    cursor: pointer;
}

/* Divider */
.divider { border: none; border-top: 1px solid var(--border-color); margin: 18px 0; }

/* Playlist */
.playlist-items-list {
    background: rgba(15,23,42,0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
    min-height: 80px; max-height: 340px;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 8px;
}

.playlist-item-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-card);
    padding: 8px 10px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: grab; user-select: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.playlist-item-row:hover { border-color: rgba(99,102,241,0.4); box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.playlist-item-row:active { cursor: grabbing; }
.playlist-item-row.dragging { opacity: 0.4; }
.playlist-item-row.drag-target { border-color: var(--primary); background: rgba(99,102,241,0.1); }

/* Thumbnail inside each playlist row */
.playlist-thumb-wrap {
    width: 72px; height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}
.playlist-thumb {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.playlist-thumb-empty {
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 20px;
}

/* Item body (title + chips) */
.playlist-item-body { flex: 1; min-width: 0; }
.playlist-item-name {
    font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--text-main);
}

/* Schedule chips */
.pl-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 600; color: #38bdf8;
    background: rgba(56,189,248,0.08);
    border: 1px solid rgba(56,189,248,0.2);
    border-radius: 4px; padding: 1px 6px;
}

/* Controls group on the right */
.playlist-item-controls {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}

/* Restrição visual para itens da playlist que têm agendamentos especiais */
.playlist-item-row.playlist-item-restricted {
    border-left: 4px solid var(--accent-orange) !important;
}

/* Diferenciação de fins de semana (Sáb/Dom) para os Chips de dia */
.day-chip:has(input[value="5"]:checked) {
    background: var(--accent-purple) !important;
    border-color: var(--accent-purple) !important;
    box-shadow: 0 2px 8px rgba(168,85,247,0.45) !important;
}
.day-chip:has(input[value="6"]:checked) {
    background: var(--accent-orange) !important;
    border-color: var(--accent-orange) !important;
    box-shadow: 0 2px 8px rgba(249,115,22,0.45) !important;
}

.drag-handle { color: var(--text-muted); font-size: 14px; }
.playlist-item-index { color: var(--text-muted); font-size: 12px; min-width: 16px; }

/* Modal footer */
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ─── Upload Modal ───────────────────────────────────────────── */
.upload-file-preview {
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    max-height: 200px;
    display: flex; align-items: center; justify-content: center;
}
.upload-preview-img { max-width: 100%; max-height: 200px; object-fit: contain; }

.upload-progress-wrapper {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 14px;
}
.upload-progress-bar {
    width: 100%; height: 8px;
    background: rgba(255,255,255,0.07);
    border-radius: 999px; overflow: hidden;
}
.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-blue));
    border-radius: 999px;
    transition: width 0.2s ease;
}
.upload-progress-label { font-size: 12px; color: var(--text-muted); text-align: right; }

/* ─── Select Media Grid (Modal with Thumbnails) ──────────────── */
.select-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 4px;
    max-height: 420px; overflow-y: auto;
}

.select-media-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    display: flex; flex-direction: column;
}
.select-media-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99,102,241,0.2); }

.select-media-thumb-wrap { height: 120px; background: #000; overflow: hidden; }
.select-media-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }

.select-media-meta {
    padding: 8px 10px 4px;
    flex: 1;
}
.select-media-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.select-media-info { font-size: 11px; color: var(--text-muted); }

.select-media-card .btn { margin: 6px 10px 10px; justify-content: center; }

/* ─── Pair Info Modal ────────────────────────────────────────── */
.pair-info-body { padding: 4px 0 16px; }
.pair-info-body p { margin-bottom: 12px; color: var(--text-muted); font-size: 14px; }
.pair-info-body ol { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.6; }
.pair-info-body code { background: rgba(255,255,255,0.07); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* ─── Toast Notifications ────────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 500;
    box-shadow: var(--shadow-soft);
    pointer-events: all;
    min-width: 280px; max-width: 420px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    color: var(--text-main);
}
.toast.show { opacity: 1; transform: translateX(0); }

.toast i { font-size: 16px; flex-shrink: 0; }
.toast span { flex: 1; }

.toast-close { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; line-height: 1; margin-left: 4px; }
.toast-close:hover { color: #fff; }

.toast-success i { color: var(--accent-green); }
.toast-success   { border-left: 3px solid var(--accent-green); }

.toast-error i   { color: var(--accent-red); }
.toast-error     { border-left: 3px solid var(--accent-red); }

.toast-info i    { color: var(--accent-blue); }
.toast-info      { border-left: 3px solid var(--accent-blue); }

.toast-warning i { color: var(--accent-orange); }
.toast-warning   { border-left: 3px solid var(--accent-orange); }

/* ─── Utility Classes ────────────────────────────────────────── */
.text-center { text-align: center; }
.py-4        { padding-top: 24px; padding-bottom: 24px; }
.d-flex      { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center      { align-items: center; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.gap-2  { gap: 8px; }
.w-100  { width: 100%; }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.text-muted { color: var(--text-muted); }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
small.text-muted { font-size: 12px; display: block; margin-top: 4px; }

/* ─── Light Theme Override (Crisp Black, White, & Blue) ────────────────── */
body.light-theme {
    --bg-dark:        #ffffff;
    --bg-card:        #ffffff;
    --bg-card-hover:  #f8fafc;
    --border-color:   #e2e8f0;
    --primary:        #2563eb;
    --primary-hover:  #1d4ed8;
    --secondary:      #f1f5f9;
    --text-main:      #0f172a;
    --text-muted:     #64748b;
    --accent-blue:    #2563eb;
    --accent-green:   #16a34a;
    --accent-red:     #dc2626;
    --accent-orange:  #ea580c;
    --accent-purple:  #9333ea;
    --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
    background-color: #ffffff;
    color: #0f172a;
    background-image: none;
}

body.light-theme .sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
}

body.light-theme .sidebar .brand-text h2 {
    color: #0f172a;
}

body.light-theme .sidebar .brand-text span {
    color: #2563eb;
}

body.light-theme .sidebar .nav-item {
    color: #475569;
}

body.light-theme .sidebar .nav-item:hover {
    color: #0f172a;
    background: #f1f5f9;
}

body.light-theme .sidebar .nav-item.active {
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

body.light-theme .sidebar-footer {
    border-top: 1px solid #e2e8f0;
}

body.light-theme .server-status {
    color: #475569;
}

body.light-theme .btn-kiosk-preview {
    background: #f1f5f9;
    color: #2563eb;
    border: 1px solid #e2e8f0;
}

body.light-theme .btn-kiosk-preview:hover {
    background: #2563eb;
    color: #ffffff;
}

body.light-theme .btn-server-logs-preview {
    background: #fdf4ff;
    color: #9333ea;
    border: 1px solid #f3e8ff;
}

body.light-theme .btn-server-logs-preview:hover {
    background: #9333ea;
    color: #ffffff;
}

body.light-theme .header-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

body.light-theme #profile-menu {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
}

body.light-theme .profile-menu-item {
    color: #0f172a !important;
}

body.light-theme .profile-menu-item:hover {
    background: #f1f5f9 !important;
}

body.light-theme #profile-menu-name {
    color: #0f172a !important;
}

body.light-theme .custom-table tbody tr:hover {
    background: #f8fafc;
}

body.light-theme select.form-control, 
body.light-theme input.form-control {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme select.form-control:focus, 
body.light-theme input.form-control:focus {
    border-color: #2563eb !important;
}

body.light-theme .toast-close:hover {
    color: #0f172a;
}

/* Modals & Dialogs */
body.light-theme .modal-content {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.15) !important;
}

body.light-theme .btn-close:hover {
    color: #0f172a !important;
}

body.light-theme .btn-secondary {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
body.light-theme .btn-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}
body.light-theme .btn-danger {
    background: rgba(239, 68, 68, 0.06) !important;
    border-color: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}
body.light-theme .btn-danger:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}
body.light-theme .btn-primary {
    background: #2563eb !important;
    color: #ffffff !important;
}
body.light-theme .btn-primary:hover {
    background: #1d4ed8 !important;
}

/* Forms & Selectors */
body.light-theme .form-control,
body.light-theme select.form-control,
body.light-theme input.form-control,
body.light-theme textarea.form-control {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme select.form-control:focus, 
body.light-theme input.form-control:focus,
body.light-theme textarea.form-control:focus {
    border-color: #2563eb !important;
}

body.light-theme .day-chip {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .day-chip:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: #2563eb !important;
}

body.light-theme .terminals-checkbox-grid {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

body.light-theme .playlist-items-list {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

body.light-theme .playlist-item-row {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

/* Cards & Lists */
body.light-theme .campaign-card:hover {
    border-color: #cbd5e1 !important;
}

body.light-theme .select-media-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .select-media-card:hover {
    border-color: #2563eb !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15) !important;
}

body.light-theme .chip {
    background: rgba(15, 23, 42, 0.05) !important;
    color: #64748b !important;
}

body.light-theme .chip.active {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* Componentes Modernos no Tema Claro */
body.light-theme .stat-card,
body.light-theme .widget-card,
body.light-theme .section-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .live-terminal-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06) !important;
}

body.light-theme .live-terminal-card:hover {
    border-color: #2563eb !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12) !important;
}

body.light-theme .live-terminal-tv-frame {
    background: #0f172a !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .live-terminal-footer {
    border-color: #e2e8f0 !important;
}

body.light-theme .media-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .media-search-box input {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .filter-chip {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}

body.light-theme .filter-chip:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

body.light-theme .filter-chip.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

body.light-theme .campaign-timeline-summary {
    background: rgba(37, 99, 235, 0.05) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
}

body.light-theme .lightbox-dialog {
    background: #ffffff !important;
    color: #0f172a !important;
}




/* ─── Responsive Mobile Styles (max-width: 900px) ──────────────── */
@media (max-width: 900px) {
    #mobile-menu-toggle {
        display: flex !important;
    }
    
    .app-container {
        flex-direction: column !important;
    }
    
    .sidebar {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: -280px;
        z-index: 1000000 !important;
        transition: left 0.3s ease;
        box-shadow: 20px 0 50px rgba(0,0,0,0.3);
        width: 260px !important;
    }
    
    .sidebar.active {
        left: 0 !important;
    }
    
    /* Backdrop overlay for closing sidebar on click */
    #sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        z-index: 999998 !important;
    }
    
    #sidebar-backdrop.active {
        display: block !important;
    }
    
    .header-bar {
        padding: 14px 20px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .page-title h1 {
        font-size: 18px !important;
    }
    
    .header-actions {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 6px !important;
    }
    
    #header-client-container {
        grid-column: span 3 !important;
        width: 100% !important;
        min-width: 100% !important;
        margin-top: 0 !important;
    }
    
    #header-client-container label {
        display: none !important;
    }
    
    #btn-refresh {
        grid-column: span 1 !important;
        width: 100% !important;
        margin-top: 0 !important;
        height: 36px !important;
        justify-content: center !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    #header-theme-container {
        grid-column: span 1 !important;
        width: 100% !important;
        margin-top: 0 !important;
        height: 36px !important;
    }
    
    #header-theme-container select {
        height: 36px !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    .profile-dropdown {
        grid-column: span 1 !important;
        width: 100% !important;
        margin-top: 0 !important;
        height: 36px !important;
    }
    
    .profile-dropdown button#profile-btn {
        width: 100% !important;
        justify-content: center !important;
        height: 36px !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .profile-dropdown button#profile-btn div {
        width: 20px !important;
        height: 20px !important;
        font-size: 9px !important;
    }

    .profile-dropdown button#profile-btn span {
        display: none !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .select-media-grid {
        grid-template-columns: 1fr !important;
    }
    
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Modais fluidos para Celular */
    .modal {
        align-items: flex-start !important;
        padding: 12px 8px !important;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 92vh !important;
        padding: 16px 14px !important;
        margin: auto !important;
        border-radius: 14px !important;
    }

    .modal-body-split {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .form-row {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .form-group.col-8,
    .form-group.col-4,
    .form-group.col-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    /* Filtros e Busca no Celular */
    .media-filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .media-search-box {
        max-width: 100% !important;
        width: 100% !important;
    }

    .filter-chips {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    /* Cards de Terminais no Celular */
    .live-terminals-grid {
        grid-template-columns: 1fr !important;
    }

    .campaign-timeline-summary {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .timeline-metrics-group {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }



    /* Simulador de TV no Mobile */
    .simulator-tv-bezel {
        border-width: 6px !important;
        border-radius: 10px !important;
        max-height: 220px !important;
    }
}

/* ─── Tablet Breakpoint (600px - 1024px) ────────────────────────── */
@media (min-width: 600px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .live-terminals-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .media-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}


/* Banner de Status de Rede Em Tempo Real */
.net-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    animation: fadeInUp 0.3s ease;
}
.net-status-banner.net-ok {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.25);
    color: var(--accent-green);
}
.net-status-banner.net-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--accent-orange);
}
.net-status-banner.net-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--accent-red);
}

/* ═══════════════════════════════════════════════════════════════
   NOVO: Skeletons & Shimmer Loaders
   ═══════════════════════════════════════════════════════════════ */
@keyframes shimmerAnim {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-pulse {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmerAnim 1.6s infinite ease-in-out;
    border-radius: var(--radius-sm);
}

.skeleton-card {
    height: 140px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.skeleton-row {
    height: 38px;
    margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   NOVO: Live Terminal Cards Grid (Monitoramento de Telas)
   ═══════════════════════════════════════════════════════════════ */
.live-terminals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 14px;
}

.live-terminal-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.live-terminal-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.live-terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-terminal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-terminal-tv-frame {
    height: 130px;
    background: #020617;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.live-terminal-tv-frame img,
.live-terminal-tv-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-terminal-tv-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.live-terminal-tv-placeholder i {
    font-size: 28px;
    opacity: 0.6;
}

.live-terminal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.pulse-ring-online {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseRing 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseRing {
    to {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.pulse-ring-offline {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-red);
}

/* ═══════════════════════════════════════════════════════════════
   NOVO: Filtros & Busca de Mídias
   ═══════════════════════════════════════════════════════════════ */
.media-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.media-search-box {
    position: relative;
    min-width: 260px;
    flex: 1;
    max-width: 380px;
}

.media-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.media-search-box input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 13.5px;
    outline: none;
    transition: all 0.15s ease;
}

.media-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.filter-chips {
    display: flex;
    gap: 6px;
    align-items: center;
}

.filter-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.15s ease;
    user-select: none;
}

.filter-chip:hover {
    color: var(--text-main);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* ═══════════════════════════════════════════════════════════════
   NOVO: Timeline / Storyboard de Campanhas
   ═══════════════════════════════════════════════════════════════ */
.campaign-timeline-summary {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.timeline-metrics-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.timeline-stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.timeline-stat-pill i {
    color: var(--primary);
}

.timeline-stat-pill span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}

.timeline-storyboard-bar {
    height: 8px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    margin-top: 6px;
}

.storyboard-segment {
    height: 100%;
    transition: width 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════
   NOVO: Lightbox Previewer Modal
   ═══════════════════════════════════════════════════════════════ */
.lightbox-dialog {
    max-width: 860px !important;
    padding: 20px !important;
    background: #0b1120 !important;
}

.lightbox-media-wrapper {
    width: 100%;
    max-height: 520px;
    background: #000;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.lightbox-media-wrapper img,
.lightbox-media-wrapper video {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.lightbox-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.lightbox-tags {
    display: flex;
    gap: 8px;
}

.lightbox-tag {
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-main);
}

/* ═══════════════════════════════════════════════════════════════
   NOVO: TV Simulator Modal
   ═══════════════════════════════════════════════════════════════ */
.simulator-tv-bezel {
    background: #020617;
    border: 12px solid #1e293b;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 40px rgba(14, 165, 233, 0.15);
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simulator-screen-content {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simulator-screen-content img,
.simulator-screen-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.simulator-hud {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 13px;
}

.simulator-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.2);
}

.simulator-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}




