:root { --bg: #f1f5f9; --surface: #ffffff; --surface-alt: #f8fafc; --navy: #0f172a; --navy-soft: #1e293b; --text: #0f172a; --muted: #64748b; --border: #e2e8f0; --primary: #2563eb; --primary-hover: #1d4ed8; --success: #16a34a; --success-bg: #dcfce7; --danger: #dc2626; --danger-bg: #fee2e2; --warn: #d97706; --warn-bg: #fef3c7; --neutral-bg: #e2e8f0; } * { box-sizing: border-box; } body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.45; } .topbar { background: var(--navy); color: #fff; padding: 0.9rem 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 3px solid var(--primary); } .brand h1 { margin: 0; font-size: 1.2rem; } .brand span { font-size: 0.8rem; color: #94a3b8; } .topbar-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; } .role-tabs { display: inline-flex; background: var(--navy-soft); border-radius: 8px; padding: 0.2rem; } .role-btn { background: transparent; color: #cbd5e1; border: none; padding: 0.4rem 0.85rem; border-radius: 6px; font-weight: 600; cursor: pointer; } .role-btn.active { background: var(--primary); color: #fff; } select, input[type="text"], input[type="number"], input[type="file"] { padding: 0.42rem 0.65rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.88rem; background: #fff; color: var(--text); } .container { max-width: 1280px; margin: 1.4rem auto 2.5rem; padding: 0 1.25rem; display: grid; gap: 1.25rem; } .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.9rem; } .kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.95rem 1.1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); } .kpi-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); font-weight: 600; } .kpi-value { font-size: 1.55rem; font-weight: 700; margin-top: 0.2rem; } .card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 1.35rem; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05); } .card-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.6rem; margin-bottom: 1rem; } .card-header h2 { margin: 0; font-size: 1.05rem; } .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1.25rem; } .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; } .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.65rem; align-items: end; margin-bottom: 1rem; } .field { display: grid; gap: 0.25rem; } .field label { font-size: 0.78rem; font-weight: 600; color: var(--muted); } .toggle-group { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 0.9rem; } .toggle-group h3 { margin: 0 0 0.5rem; font-size: 0.82rem; text-transform: uppercase; color: var(--muted); } .toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; border-top: 1px dashed var(--border); gap: 0.5rem; } .toggle-row:first-of-type { border-top: none; } .table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 0.88rem; } th, td { text-align: left; padding: 0.62rem 0.65rem; border-bottom: 1px solid var(--border); vertical-align: middle; } th { background: var(--surface-alt); color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; } .badge { display: inline-block; padding: 0.18rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; } .Present, .Confirmed, .ENABLED, .Assigned, .LIVE { background: var(--success-bg); color: #166534; } .Absent, .Unconfirmed, .Pending { background: var(--danger-bg); color: #991b1b; } .PAUSED { background: var(--warn-bg); color: #92400e; } .Dismissed, .DISABLED, .Ended { background: var(--neutral-bg); color: #475569; } .pill-course { background: #dbeafe; color: #1e40af; margin-right: 0.25rem; } .btn { border: none; border-radius: 6px; padding: 0.4rem 0.75rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; } .btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-hover); } .btn-success { background: var(--success); color: #fff; } .btn-danger { background: var(--danger); color: #fff; } .btn-muted { background: #64748b; color: #fff; } .progress-bar { width: 100%; max-width: 110px; height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 0.4rem; } .progress-fill { height: 100%; background: var(--success); } .media-card { border: 1px solid var(--border); border-radius: 8px; padding: 0.85rem; background: var(--surface-alt); display: grid; gap: 0.55rem; } .media-card img, .media-card video { width: 100%; max-height: 190px; object-fit: cover; border-radius: 6px; background: #0f172a; } .thumb-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; } .thumb-box { position: relative; width: 58px; height: 58px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: #0f172a; } .thumb-box img { width: 100%; height: 100%; object-fit: cover; } .thumb-del { position: absolute; top: 2px; right: 2px; background: rgba(220, 38, 38, 0.9); color: #fff; border: none; border-radius: 999px; width: 18px; height: 18px; font-size: 11px; line-height: 1; cursor: pointer; padding: 0; } .toast { padding: 0.6rem 0.9rem; border-radius: 8px; font-size: 0.86rem; font-weight: 600; background: var(--success-bg); color: #166534; } .toast.error { background: var(--danger-bg); color: #991b1b; } .hidden { display: none !important; } .empty-note { color: var(--muted); font-size: 0.86rem; margin: 0.25rem 0; } /* ==================== FLOATING CORNER LIVE AI WINDOW ==================== */ .live-pip-window { position: fixed; right: 18px; bottom: 18px; width: 390px; max-width: calc(100vw - 24px); background: #0f172a; color: #f8fafc; border: 1px solid #334155; border-radius: 12px; box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45); z-index: 9999; overflow: hidden; transition: width 0.2s ease; } .live-pip-window.expanded { width: 720px; } .live-pip-window.minimized { width: 240px; } .live-pip-window.minimized .live-pip-body { display: none; } .live-pip-header { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem; background: #1e293b; border-bottom: 1px solid #334155; font-size: 0.82rem; font-weight: 600; } .live-pip-title { display: flex; align-items: center; gap: 0.45rem; } .live-pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); animation: livePulse 1.6s infinite; } @keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } } .live-pip-actions { display: flex; gap: 0.3rem; } .pip-btn { background: #334155; color: #f8fafc; border: none; border-radius: 5px; padding: 0.18rem 0.48rem; font-size: 0.76rem; cursor: pointer; font-weight: 600; } .pip-btn:hover { background: #475569; } .live-pip-body { background: #020617; display: flex; flex-direction: column; } .live-pip-body img { width: 100%; height: auto; display: block; object-fit: contain; max-height: 58vh; } .live-pip-footer { padding: 0.35rem 0.7rem; font-size: 0.73rem; color: #94a3b8; background: #0f172a; display: flex; justify-content: space-between; }