@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #6366f1; /* Premium Indigo */
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  
  --gold: #d97706; /* Rich Amber/Gold */
  --gold-hover: #b45309;
  --gold-light: #fef3c7;
  
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-light: #fee2e2;
  
  --success: #10b981;
  --success-hover: #059669;
  --success-light: #d1fae5;
  
  --warning: #fbbf24;
  --warning-light: #fffbeb;
  
  --info: #3b82f6;
  --info-light: #eff6ff;

  --bg-app: #e2e8f0; /* Soft Slate-200 background for visual contrast */
  --bg-panel: #ffffff; /* Crisp white panels */
  --border-color: #cbd5e1; /* Slate-300 */
  --border-light: #e2e8f0; /* Slate-200 */
  
  --text-main: #0f172a; /* Slate-900 */
  --text-muted: #64748b; /* Slate-500 */
  --border: #e2e8f0;
  
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
  --card-hover-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Utils */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.w-100 { width: 100%; }
.flex-row { display: flex; gap: 0.5rem; }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn {
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, var(--gold) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.btn-danger:hover {
  background: var(--danger-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(239, 68, 68, 0.25);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background: #f8fafc;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-icon {
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-icon:hover {
  background: #f1f5f9;
  color: var(--text-main);
  transform: rotate(15deg);
  border-color: var(--border-color);
}

/* Inputs */
input,
select,
textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: #ffffff;
  color: var(--text-main);
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

select option {
  background: #ffffff;
  color: var(--text-main);
}

/* Layouts */
.screen {
  min-height: 100vh;
}

/* ═══════════════ LAYAR LOGIN (GLASSMORPHISM) ═══════════════ */
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.3) 0%, rgba(8, 47, 73, 0.5) 100%), url('login_bg_scenic.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 440px;
  z-index: 10;
  color: #ffffff;
  animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-logo-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-wrap img {
  width: 180px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15)) brightness(1.2);
}

.login-logo-wrap h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-logo-wrap p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.login-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-tab {
  flex: 1;
  padding: 0.65rem 0.5rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.login-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.login-tab.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#login-screen .form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#login-screen .form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

#login-screen input,
#login-screen select {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 10px;
}

#login-screen input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

#login-screen input:focus,
#login-screen select:focus {
  border-color: #8b5cf6;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35);
}

#login-screen select option {
  background: #1e1b4b; /* Deep Indigo option bg */
  color: #ffffff;
}

.login-status {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.login-status.ok {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
}

.login-status.err {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.login-status.warn {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

/* ═══════════════ TOP NAVIGATION BAR ═══════════════ */
.top-nav {
  background: #ffffff;
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-badge {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.top-nav .status-select {
  padding: 0.5rem 0.85rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  cursor: pointer;
}

/* ═══════════════ DASHBOARD CONTENT ═══════════════ */
.dashboard-content {
  padding: 1.5rem 2rem;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
}

/* Admin Panel ("Bagikan Brief") */
.panel {
  background: var(--bg-panel);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
  flex-shrink: 0;
  animation: fadeInUp 0.5s ease-out;
}

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

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

.panel-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.panel-title i {
  color: var(--primary);
}

.brief-form {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.brief-form input {
  flex: 1;
  min-width: 200px;
}

/* Grid Tombol Brief */
.brief-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.6rem;
  min-width: 280px;
}

.btn-brief-grid {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-brief-training {
  background: var(--info-light);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: none;
}

.btn-brief-training:hover {
  background: var(--info);
  color: white;
  transform: translateY(-2px);
}

.btn-brief-captain {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.btn-brief-captain:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

.brief-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 150px;
}

.brief-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.admin-slot-field select {
  min-width: 150px;
  background: #ffffff;
  border-color: var(--border-color);
  font-weight: 600;
}

/* Active Sessions List */
.fl-container {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  margin-top: 0.5rem;
}

details summary {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem 0;
  outline: none;
  transition: color 0.2s;
}

details summary:hover {
  color: var(--primary);
}

.session-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
}

.session-list-item:last-child {
  border-bottom: none;
}

.session-info {
  font-size: 0.88rem;
}

.session-actions {
  display: flex;
  gap: 0.4rem;
}

/* ═══════════════ KANBAN BOARD & FILTERS ═══════════════ */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar input,
.filter-bar select {
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
  border-color: var(--border-light);
}

.filter-bar select {
  cursor: pointer;
  font-weight: 500;
}

/* Kanban Board Container */
.board {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem; /* Increased gap for clear separation */
  padding-bottom: 1.25rem;
  flex: 1;
  align-items: flex-start;
  overflow-x: auto;
}

.designer-col {
  background: #ffffff;
  border: 1.5px solid #cbd5e1; /* Stronger border for separation */
  border-radius: 16px;
  width: 310px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
}

.designer-col:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: #94a3b8; /* Darker border on hover */
}

.col-header {
  padding: 1.25rem;
  border-bottom: 1.5px solid #cbd5e1; /* Stronger border line */
  background: #e2e8f0; /* Higher contrast slate background for header */
  border-radius: 16px 16px 0 0;
}

.col-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.col-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 30px;
  font-weight: 700;
  display: inline-block;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.col-status.aktif {
  background: var(--success-light);
  color: var(--success-hover);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.col-status.istirahat {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.col-status.helping {
  background: var(--info-light);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.col-body {
  padding: 1rem;
  max-height: 580px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #f8fafc; /* Soft off-white to make the task cards stand out */
  border-radius: 0 0 16px 16px;
}

.col-body::-webkit-scrollbar {
  width: 6px;
}

.col-body::-webkit-scrollbar-track {
  background: transparent;
}

.col-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* ═══════════════ KARTU TUGAS (TASK CARDS) ═══════════════ */
.task-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.01);
}

.task-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--card-hover-shadow);
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.75rem;
}

.task-admin {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.task-body {
  margin-bottom: 0.75rem;
}

.task-customer {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.task-wa {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.task-footer {
  margin-top: 0.75rem;
}

.task-footer select {
  width: 100%;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.01);
}

/* Badge Kartu Khusus */
.badge-khusus {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid rgba(217, 119, 6, 0.2);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.badge-training {
  background: var(--info-light) !important;
  color: var(--info) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  padding: 0.15rem 0.45rem !important;
  border-radius: 4px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  margin-left: 0.4rem !important;
  vertical-align: middle !important;
}

.badge-captain {
  background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
  color: white !important;
  padding: 0.15rem 0.45rem !important;
  border-radius: 4px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  margin-left: 0.4rem !important;
  vertical-align: middle !important;
  box-shadow: 0 2px 4px rgba(124,58,237,0.15);
}

.badge-desain-siap {
  background: var(--success-light) !important;
  color: var(--success-hover) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  padding: 0.15rem 0.45rem !important;
  border-radius: 4px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  margin-left: 0.4rem !important;
  vertical-align: middle !important;
}

.task-card.khusus {
  background: var(--gold-light);
  border-color: rgba(217, 119, 6, 0.25);
}

.task-card.training {
  background: var(--info-light);
  border-color: rgba(59, 130, 246, 0.2);
}

.task-card.captain-brief {
  background: #f5f3ff;
  border-color: rgba(124, 58, 237, 0.25);
}

.task-card.desain-siap {
  border-left: 4px solid var(--success) !important;
  background: #f0fdf4;
}

/* Captain column border glow */
.designer-col.captain-col {
  border: 1px solid rgba(124, 58, 237, 0.35);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.05);
}

/* Select Checkbox */
.task-select {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--primary);
  cursor: pointer;
  margin-left: 0.2rem;
  box-shadow: none;
}

.admin-actions {
  padding: 0.6rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  border-radius: 12px 12px 0 0;
}

/* Urgent Task Effects */
@keyframes urgent-pulse-light {
  0% {
    border-color: #ef4444;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.2);
  }
  50% {
    border-color: #fca5a5;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4), inset 0 0 5px rgba(239, 68, 68, 0.05);
  }
  100% {
    border-color: #ef4444;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.2);
  }
}

.task-card.urgent {
  border: 2px solid #ef4444 !important;
  animation: urgent-pulse-light 1.2s infinite !important;
  background: #fef2f2 !important;
}

.task-card.urgent .task-customer {
  color: #b91c1c !important;
}

.btn-urgent-toggle {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-urgent-toggle:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-urgent-toggle.active {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* Notes Section */
.task-notes-section {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border-light);
}

.task-note-input {
  width: 100%;
  min-height: 55px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 0.5rem;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 0.4rem;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.01);
}

.task-note-input:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.note-actions {
  display: flex;
  gap: 0.35rem;
}

.note-save-btn {
  color: var(--primary) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  font-size: 0.72rem !important;
  padding: 0.3rem 0.6rem !important;
  flex: 1;
}

.note-save-btn:hover {
  background: var(--primary-light) !important;
}

.note-hist-btn {
  color: var(--text-muted) !important;
  border-color: var(--border-light) !important;
  font-size: 0.72rem !important;
  padding: 0.3rem 0.6rem !important;
}

.note-hist-btn:hover {
  background: #f1f5f9 !important;
  color: var(--text-main) !important;
}

.note-readonly {
  font-size: 0.8rem;
  color: #334155;
  background: #f8fafc;
  padding: 0.5rem;
  border-radius: 6px;
  line-height: 1.4;
  border: 1px solid var(--border-light);
}

/* ═══════════════ MODAL & LOADER OVERLAYS ═══════════════ */
.loader-overlay,
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 2.25rem;
  border-radius: 20px;
  width: 92%;
  max-width: 460px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 10px 20px -5px rgba(15, 23, 42, 0.05);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal h3 {
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.modal select {
  width: 100%;
  margin-bottom: 1.25rem;
}

/* Loader / Spinner */
.spinner-ring {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(99, 102, 241, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

.loader-text {
  color: var(--text-main);
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Audio Player */
#notif-sound {
  display: none;
}

/* ═══════════════ SWEETALERT2 LIGHT THEME OVERRIDES ═══════════════ */
.swal2-popup {
  background: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15) !important;
  border-radius: 20px !important;
  color: var(--text-main) !important;
  font-family: 'Outfit', sans-serif !important;
}

.swal2-title {
  color: var(--text-main) !important;
  font-weight: 700 !important;
  font-size: 1.35rem !important;
}

.swal2-html-container {
  color: var(--text-muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

.swal2-confirm {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
}

.swal2-cancel {
  background: #f1f5f9 !important;
  color: var(--text-main) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  border: 1px solid var(--border-light) !important;
}

.swal2-cancel:hover {
  background: #e2e8f0 !important;
}

/* ═══════════════ TV MONITOR LIGHT THEME STYLE ═══════════════ */
body.tv-mode {
  background-color: #e2e8f0 !important; /* Visual contrast */
}

body.tv-mode .top-nav {
  padding: 1rem 3rem;
  border-bottom: 2px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(15,23,42,0.08);
}

body.tv-mode .nav-brand span {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

body.tv-mode .nav-brand img {
  height: 42px;
}

body.tv-mode .dashboard-content {
  padding: 2.25rem 3rem;
  max-width: 100% !important;
  width: 100% !important;
}

body.tv-mode .board {
  gap: 1.75rem; /* Increased spacing */
}

body.tv-mode .designer-col {
  width: 330px;
  min-width: 320px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1; /* Clear division */
  box-shadow: 0 10px 25px -5px rgba(15,23,42,0.05);
}

body.tv-mode .col-header {
  padding: 1.35rem;
  background: #e2e8f0; /* Clear header block */
  border-bottom: 1.5px solid #cbd5e1;
}

body.tv-mode .col-title {
  font-size: 1.2rem;
  font-weight: 800;
}

body.tv-mode .col-status {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
}

/* Premium massive task cards on TV */
body.tv-mode .task-card {
  padding: 1.35rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 10px rgba(0,0,0,0.015);
}

body.tv-mode .task-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.35);
}

body.tv-mode .task-card .task-customer {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

body.tv-mode .task-card .task-wa {
  font-size: 0.95rem;
  color: var(--text-muted);
}

body.tv-mode .task-card .task-status-select,
body.tv-mode .task-card .task-select,
body.tv-mode .admin-actions,
body.tv-mode #attendance-panel {
  display: none !important;
}

/* Glow status badge for TV */
body.tv-mode .task-card::after {
  content: attr(data-status);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  letter-spacing: 0.8px;
  margin-top: 0.75rem;
}

body.tv-mode .task-card[data-status="Antre"]::after {
  background: var(--danger-light);
  color: var(--danger-hover);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

body.tv-mode .task-card[data-status="Progres"]::after {
  background: var(--info-light);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

body.tv-mode .task-card[data-status="Revisi"]::after {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

body.tv-mode .task-card[data-status="Waiting"]::after {
  background: #f3e8ff;
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

body.tv-mode .task-card[data-status="Selesai"]::after {
  background: var(--success-light);
  color: var(--success-hover);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

body.tv-mode .task-card[data-status="Pending"]::after {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid rgba(71, 85, 105, 0.2);
}

body.tv-mode .task-card.urgent {
  animation: urgent-pulse-light 1.2s infinite !important;
}
