/* ==========================================================================
   SUMADH ANIMATRIX — DARK NEON DESIGN SYSTEM
   Pixel-Perfect Match to Official Writer Dashboard Design Reference
   ========================================================================== */

:root {
  /* Core Backgrounds */
  --bg-base: #06090e;
  --bg-dark: #0a0d14;
  --bg-surface: #0d121c;
  --bg-card: rgba(13, 18, 28, 0.72);
  --bg-card-hover: rgba(18, 25, 40, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-sidebar: #06080d;
  --bg-input: #0b0f17;

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Neon Accent Palette */
  --neon-yellow: #facc15;
  --neon-yellow-glow: rgba(250, 204, 21, 0.28);
  --neon-yellow-dim: rgba(250, 204, 21, 0.12);

  --neon-cyan: #06b6d4;
  --neon-cyan-glow: rgba(6, 182, 212, 0.28);
  --neon-cyan-dim: rgba(6, 182, 212, 0.12);

  --neon-purple: #a855f7;
  --neon-purple-glow: rgba(168, 85, 247, 0.28);
  --neon-purple-dim: rgba(168, 85, 247, 0.12);

  --neon-green: #10b981;
  --neon-green-glow: rgba(16, 185, 129, 0.28);
  --neon-green-dim: rgba(16, 185, 129, 0.12);

  --neon-pink: #ec4899;
  --neon-pink-glow: rgba(236, 72, 153, 0.28);
  --neon-pink-dim: rgba(236, 72, 153, 0.12);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.09);

  /* Geometry */
  --sidebar-width: 236px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* App Container Layout */
#app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-base);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
#app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 40;
  height: 100vh;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: 20px 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.45));
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-title {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffffff;
  line-height: 1.15;
}

.sidebar-brand-sub {
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2px;
}

/* Sidebar Navigation Items */
.sidebar-nav {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.nav-link i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav-link:hover i {
  color: #ffffff;
}

/* ACTIVE NAV LINK — SOLID NEON YELLOW PILL (Matches Screenshot) */
.nav-link.active {
  background-color: var(--neon-yellow);
  color: #05070a !important;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.35);
}

.nav-link.active i {
  color: #05070a !important;
  font-weight: 700;
}

/* Sidebar Footer Illustration (Glowing Pink Book & Pen) */
.sidebar-footer {
  padding: 20px 16px;
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar-illustration {
  width: 150px;
  height: 90px;
  opacity: 0.9;
  filter: drop-shadow(0 0 14px rgba(236, 72, 153, 0.38));
  transition: transform 0.3s ease;
}

.sidebar-illustration:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 18px rgba(236, 72, 153, 0.55));
}

/* ==========================================================================
   MAIN VIEWPORT & HEADER
   ========================================================================== */
#app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
  background: radial-gradient(circle at 50% 0%, #0d1424 0%, #06090e 70%);
}

#app-header {
  height: var(--header-height);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 13, 20, 0.7);
  backdrop-filter: blur(14px);
  flex-shrink: 0;
  z-index: 30;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-yellow);
  font-size: 16px;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.15);
}

.header-titles {
  display: flex;
  flex-direction: column;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-top: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Month Picker Pill */
.month-picker-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.month-picker-pill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(30, 41, 59, 0.85);
}

.month-picker-pill i.fa-calendar {
  color: var(--text-secondary);
}

.month-picker-pill i.fa-chevron-down {
  font-size: 11px;
  color: var(--text-muted);
}

/* Notification Bell */
.notification-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  color: #ffffff;
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

/* User Profile Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile-badge:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-badge-info {
  display: flex;
  flex-direction: column;
}

.user-badge-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.user-badge-role {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.logout-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: color 0.2s;
  margin-left: 4px;
}

.logout-icon-btn:hover {
  color: #ef4444;
}

/* ==========================================================================
   VIEW CONTAINER & SCROLL AREA
   ========================================================================== */
#app-view-container {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px 40px;
}

/* ==========================================================================
   TOP METRICS BAR (6 GLOWING NEON CARDS)
   ========================================================================== */
.metrics-row-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.metric-neon-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.metric-neon-card:hover {
  transform: translateY(-2px);
}

.metric-neon-card.border-yellow {
  border: 1.5px solid var(--neon-yellow);
  box-shadow: 0 0 12px var(--neon-yellow-glow);
}

.metric-neon-card.border-cyan {
  border: 1.5px solid var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.metric-neon-card.border-purple {
  border: 1.5px solid var(--neon-purple);
  box-shadow: 0 0 12px var(--neon-purple-glow);
}

.metric-neon-card.border-green {
  border: 1.5px solid var(--neon-green);
  box-shadow: 0 0 12px var(--neon-green-glow);
}

.metric-neon-card.border-pink {
  border: 1.5px solid var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink-glow);
}

.metric-neon-icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
}

.metric-neon-info {
  display: flex;
  flex-direction: column;
}

.metric-neon-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.2;
}

.metric-neon-value {
  font-size: 25px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-top: 2px;
}

/* ==========================================================================
   2-COLUMN MAIN CONTENT GRID
   ========================================================================== */
.writer-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.writer-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.writer-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Dark Glass Panel */
.neon-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.neon-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title-icon {
  color: var(--neon-yellow);
  font-size: 16px;
}

.panel-title-text {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.1px;
}

.panel-action-link {
  color: var(--neon-cyan);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.panel-action-link:hover {
  color: #67e8f9;
  text-decoration: underline;
}

/* Slot Progress Header Info */
.slot-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slot-progress-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.slot-progress-bar-track {
  width: 140px;
  height: 8px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
}

.slot-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #22c55e);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.slot-progress-percent {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   SLOTS 10-GRID (5 x 2)
   ========================================================================== */
.slots-grid-10 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.slot-card {
  background: rgba(11, 16, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 122px;
  position: relative;
  transition: all 0.2s ease;
}

.slot-card:hover {
  transform: translateY(-2px);
  background: rgba(16, 23, 38, 0.95);
}

.slot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.slot-number {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Slot Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
}

.status-pill.approved {
  background: rgba(16, 185, 129, 0.12);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
}

.status-pill.rework {
  background: rgba(236, 72, 153, 0.12);
  color: var(--neon-pink);
  border: 1px solid var(--neon-pink);
}

.status-pill.in-review {
  background: rgba(168, 85, 247, 0.12);
  color: var(--neon-purple);
  border: 1px solid var(--neon-purple);
}

.status-pill.submitted {
  background: rgba(6, 182, 212, 0.12);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
}

.status-pill.available {
  background: transparent;
  color: var(--neon-yellow);
  border: 1px dashed var(--neon-yellow);
}

/* Slot Card Bengali Title */
.slot-story-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
  margin: 6px 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.slot-empty-title {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin: 6px 0;
}

/* Slot Action Buttons */
.slot-action-btn {
  width: 100%;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.slot-action-btn.btn-view {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.slot-action-btn.btn-view:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}

.slot-action-btn.btn-revise {
  background: rgba(236, 72, 153, 0.12);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

.slot-action-btn.btn-revise:hover {
  background: rgba(236, 72, 153, 0.25);
  box-shadow: 0 0 10px var(--neon-pink-glow);
}

.slot-action-btn.btn-submit {
  background: rgba(250, 204, 21, 0.08);
  border: 1px dashed var(--neon-yellow);
  color: var(--neon-yellow);
}

.slot-action-btn.btn-submit:hover {
  background: rgba(250, 204, 21, 0.2);
  box-shadow: 0 0 10px var(--neon-yellow-glow);
}

/* Dashed Border for Available Slots (09, 10 in screenshot) */
.slot-card.available-dashed {
  border: 1.5px dashed var(--neon-yellow);
  background: rgba(11, 16, 26, 0.5);
}

/* ==========================================================================
   SUBMISSIONS TABLE
   ========================================================================== */
.neon-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.neon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.neon-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
}

.neon-table td {
  padding: 12px 14px;
  color: #f1f5f9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.neon-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.feedback-quote {
  font-size: 11.5px;
  color: #cbd5e1;
  font-style: italic;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   SIDE COLUMN PANELS (PROGRESS, EARNINGS, ACTIONS, NOTICE)
   ========================================================================== */
/* 1. Monthly Progress Donut */
.progress-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}

.donut-chart-container {
  width: 105px;
  height: 105px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-bg-ring {
  fill: none;
  stroke: #1e293b;
  stroke-width: 10;
}

.donut-meter-ring {
  fill: none;
  stroke: url(#neonDonutGrad);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}

.donut-center-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donut-center-val {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.donut-center-sub {
  font-size: 9.5px;
  color: var(--text-secondary);
  line-height: 1.1;
  margin-top: 2px;
}

.progress-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #cbd5e1;
}

.legend-label-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-square {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.legend-square.green { background-color: var(--neon-green); box-shadow: 0 0 6px var(--neon-green-glow); }
.legend-square.cyan { background-color: var(--neon-cyan); box-shadow: 0 0 6px var(--neon-cyan-glow); }
.legend-square.purple { background-color: var(--neon-purple); box-shadow: 0 0 6px var(--neon-purple-glow); }
.legend-square.pink { background-color: var(--neon-pink); box-shadow: 0 0 6px var(--neon-pink-glow); }
.legend-square.yellow-outline {
  border: 1px solid var(--neon-yellow);
  background: transparent;
}

/* 2. Earnings Card */
.earnings-boxes-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 8px;
  align-items: center;
}

.earnings-box {
  display: flex;
  flex-direction: column;
  padding: 8px 4px;
}

.earnings-box-val {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.earnings-box-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.earnings-box-total {
  border: 1.5px solid var(--neon-yellow);
  box-shadow: 0 0 10px var(--neon-yellow-glow);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  background: rgba(250, 204, 21, 0.05);
  text-align: center;
}

.earnings-box-total .earnings-box-val {
  color: var(--neon-yellow);
  font-size: 20px;
}

.earnings-box-total .earnings-box-label {
  color: #cbd5e1;
  font-weight: 600;
}

/* 3. Quick Actions */
.quick-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-action-neon-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: transparent;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.quick-action-neon-btn.btn-cyan-glow {
  border: 1.5px solid var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
  background: rgba(6, 182, 212, 0.06);
}

.quick-action-neon-btn.btn-cyan-glow:hover {
  background: rgba(6, 182, 212, 0.16);
  transform: translateY(-1px);
}

.quick-action-neon-btn.btn-pink-glow {
  border: 1.5px solid var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink-glow);
  background: rgba(236, 72, 153, 0.06);
}

.quick-action-neon-btn.btn-pink-glow:hover {
  background: rgba(236, 72, 153, 0.16);
  transform: translateY(-1px);
}

.quick-action-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cyan-glow .quick-action-icon { color: var(--neon-cyan); }
.btn-pink-glow .quick-action-icon { color: var(--neon-pink); }

.quick-action-text {
  display: flex;
  flex-direction: column;
}

.quick-action-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.quick-action-sub {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.2;
  margin-top: 2px;
}

/* 4. Notice Card */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #f1f5f9;
  line-height: 1.4;
}

.notice-item i {
  color: var(--neon-green);
  font-size: 15px;
  margin-top: 2px;
  filter: drop-shadow(0 0 6px var(--neon-green-glow));
}

/* ==========================================================================
   MODAL COMPONENT (DARK NEON GLASS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(3, 5, 8, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(6, 182, 212, 0.15);
  transform: scale(0.96);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

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

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  color: #cbd5e1;
  font-size: 13.5px;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

/* Generic Buttons */
.btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-cyan {
  background: var(--neon-cyan);
  color: #041017;
  font-weight: 700;
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.btn-cyan:hover {
  background: #22d3ee;
  box-shadow: 0 0 16px var(--neon-cyan-glow);
}

.btn-pink {
  background: var(--neon-pink);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 12px var(--neon-pink-glow);
}

.btn-pink:hover {
  background: #f43f5e;
}

.btn-green {
  background: var(--neon-green);
  color: #041810;
  font-weight: 700;
  box-shadow: 0 0 12px var(--neon-green-glow);
}

.btn-green:hover {
  background: #22c55e;
}

.btn-yellow {
  background: var(--neon-yellow);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 12px var(--neon-yellow-glow);
}

.btn-yellow:hover {
  background: #fde047;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
}

.toast {
  padding: 10px 16px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.toast.success { border-color: var(--neon-green); box-shadow: 0 0 10px var(--neon-green-glow); }
.toast.error { border-color: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
.toast.info { border-color: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan-glow); }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
  .metrics-row-6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .writer-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .writer-side-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #app-sidebar {
    position: fixed;
    left: -240px;
    transition: left 0.3s ease;
  }
  #app-sidebar.mobile-open {
    left: 0;
  }
  .metrics-row-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .slots-grid-10 {
    grid-template-columns: repeat(2, 1fr);
  }
  .writer-side-col {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   MANAGEMENT PRODUCTION WORKFLOW & PROJECT STEPPER STYLES
   ========================================================================== */

.mgmt-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.mgmt-stat-box {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.mgmt-stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.mgmt-stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.mgmt-stat-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.mgmt-stat-title {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 3px;
  font-weight: 500;
}

/* Filter pills */
.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.filter-pill.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.stage-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stage-pill {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.stage-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.stage-pill.active {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* 5-STAGE PROJECT STEPPER */
.project-stepper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
}

.stepper-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.stepper-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #64748b;
  transition: var(--transition-fast);
}

.step-circle.completed {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.step-circle.active {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border: 2px solid #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.step-line {
  height: 2px;
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
  margin-bottom: 14px;
}

.step-line.completed {
  background: #10b981;
}

.step-label {
  font-size: 9px;
  margin-top: 3px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.step-label.active {
  color: #c084fc;
  font-weight: 700;
}

.step-label.completed {
  color: #10b981;
}

.stepper-bar-wrap {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stepper-bar-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.stepper-bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.stepper-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  transition: width 0.3s ease;
}

/* Duty Calendar Grid */
.duty-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.duty-weekday-head {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  padding: 8px;
  text-transform: uppercase;
}

.duty-day-box {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  min-height: 85px;
  padding: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.duty-day-box:hover {
  border-color: var(--neon-cyan);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.duty-day-box.is-today {
  border-color: var(--neon-yellow);
  box-shadow: 0 0 10px var(--neon-yellow-glow);
}

.duty-day-num {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.duty-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.duty-tag.working-day {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.duty-tag.weekly-off {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.duty-tag.holiday {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.duty-tag.approved-leave {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Priority Badges */
.badge-priority-urgent {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.badge-priority-high {
  background: rgba(249, 115, 22, 0.18);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.badge-priority-medium {
  background: rgba(59, 130, 246, 0.18);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.badge-priority-low {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
