/* 
 * Core Dashboard - Design System & Styling
 * Custom styling with premium glassmorphism, responsive grid layouts, and status indicator animation.
 */

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

:root {
  /* Colors */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-tertiary: #1e2942;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-primary: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --color-green: #10b981;
  --color-green-glow: rgba(16, 185, 129, 0.2);
  --color-yellow: #f59e0b;
  --color-yellow-glow: rgba(245, 158, 11, 0.2);
  --color-red: #ef4444;
  --color-red-glow: rgba(239, 68, 68, 0.2);
  --color-blue: #06b6d4;
  --color-blue-glow: rgba(6, 182, 212, 0.2);
  
  /* Layout & Spacing */
  --header-height: 70px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  
  /* Fonts */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

/* Light Theme Variables */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-primary: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.08);
  --border-color: rgba(15, 23, 42, 0.08);
  
  --color-green: #059669;
  --color-green-glow: rgba(5, 150, 105, 0.15);
  --color-yellow: #d97706;
  --color-yellow-glow: rgba(217, 119, 6, 0.15);
  --color-red: #dc2626;
  --color-red-glow: rgba(220, 38, 38, 0.15);
  --color-blue: #0891b2;
  --color-blue-glow: rgba(8, 145, 178, 0.15);
  
  --shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.08);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.5;
}

/* Header */
header {
  height: var(--header-height);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-section i {
  font-size: 24px;
  color: var(--accent-primary);
  background: var(--accent-glow);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.title-group h1 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.title-group p {
  font-size: 11px;
  color: var(--text-secondary);
}


.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Main Layout Full Screen Pane */
.main-container {
  display: flex;
  height: calc(100vh - var(--header-height));
  width: 100%;
}

.pane {
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}


/* Right Pane - Visual Dashboard (Full Screen) */
.dashboard-pane {
  width: 100%;
  background-color: var(--bg-primary);
  overflow-y: auto;
  padding: 32px 48px;
}

/* Section Grid Setup */
.dashboard-section {
  margin-bottom: 36px;
}

.section-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 i {
  color: var(--accent-primary);
}

/* YTD Performance Summary Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

.kpi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.kpi-card-title {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 75%;
}

.kpi-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.kpi-status-dot.green {
  background-color: var(--color-green);
  box-shadow: 0 0 10px var(--color-green-glow);
}

.kpi-status-dot.yellow {
  background-color: var(--color-yellow);
  box-shadow: 0 0 10px var(--color-yellow-glow);
}

.kpi-status-dot.red {
  background-color: var(--color-red);
  box-shadow: 0 0 10px var(--color-red-glow);
  animation: pulse-red 2s infinite;
}

.kpi-value-group {
  margin-top: 16px;
}

.kpi-main-val {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.kpi-sub-val {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.kpi-progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--bg-tertiary);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}

.kpi-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-progress-fill.green { background-color: var(--color-green); }
.kpi-progress-fill.yellow { background-color: var(--color-yellow); }
.kpi-progress-fill.red { background-color: var(--color-red); }

/* Chart Area */
.chart-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.chart-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

/* Tasks Layout */
.task-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.task-filter-select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.task-filter-select:hover {
  border-color: var(--accent-primary);
}

/* Task Tabs */
.task-tabs-container {
  margin-bottom: 16px;
  display: flex;
  justify-content: flex-start;
}

.task-tabs {
  display: flex;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 4px;
}

.task-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.task-tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.task-tab-btn.active {
  color: var(--text-primary);
  background-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Category Badges in the Task Table */
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.category-badge.schedule {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}

.category-badge.task {
  background-color: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.2);
}

.category-badge.project {
  background-color: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.2);
}

.task-table-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tbody tr:last-child td {
  border-bottom: none;
}

tr {
  transition: var(--transition);
}

tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 11px;
}

.badge-status.red {
  background-color: var(--color-red-glow);
  color: var(--color-red);
  border: 1px solid rgba(239, 68, 68, 0.15);
  animation: pulse-glow-red 2s infinite;
}

.badge-status.yellow {
  background-color: var(--color-yellow-glow);
  color: var(--color-yellow);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.badge-status.green {
  background-color: var(--color-green-glow);
  color: var(--color-green);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge-status.blue {
  background-color: var(--color-blue-glow);
  color: var(--color-blue);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.badge-priority {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-priority.urgent {
  background-color: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-priority.important {
  background-color: rgba(245, 158, 11, 0.12);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-priority.normal {
  background-color: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.task-progress-tag {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background-color: var(--bg-tertiary);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.task-progress-tag:hover {
  background-color: var(--accent-primary);
  color: #fff;
}

.note-cell {
  color: var(--text-secondary);
  font-size: 12px;
}

/* Equipment Infrastructure Cards & Lists */
.infra-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
}

.equipment-insights {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.insight-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.insight-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.insight-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.insight-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.maintenance-status-interactive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  word-break: keep-all;
}

.maintenance-status-interactive.pending {
  background-color: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.25);
}

.maintenance-status-interactive.working {
  background-color: var(--color-yellow-glow);
  color: var(--color-yellow);
  border-color: rgba(245, 158, 11, 0.15);
}

.maintenance-status-interactive.done {
  background-color: var(--color-green-glow);
  color: var(--color-green);
  border-color: rgba(16, 185, 129, 0.15);
}

.maintenance-status-interactive:hover {
  filter: brightness(1.2);
}

/* Animations */
@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@keyframes pulse-glow-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Custom Editor Styling Elements */
.editor-footer {
  padding: 8px 20px;
  border-top: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .main-container {
    flex-direction: column;
    overflow-y: auto;
  }
  .editor-pane {
    width: 100%;
    height: 400px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .dashboard-pane {
    width: 100%;
    height: auto;
  }
  .infra-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════
   ADD RECORD BUTTON (섹션 헤더 우측 버튼)
══════════════════════════════════════════════ */
.btn-add-record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), #6366f1);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}
.btn-add-record:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  filter: brightness(1.1);
}
.btn-add-record:active {
  transform: translateY(0);
}
.btn-add-record i {
  font-size: 11px;
}

/* ══════════════════════════════════════════════
   MODAL OVERLAY & CARD (글래스모피즘)
══════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInOverlay 0.2s ease forwards;
}
.modal-overlay.active {
  display: flex;
}

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

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.1);
  animation: slideUpModal 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  overflow: hidden;
}

@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.05));
}
.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-header h3 i {
  color: var(--accent-primary);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}
.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--color-red);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 65vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.15);
}

/* ══════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════ */
.form-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.form-row .form-group {
  flex: 1;
  min-width: 120px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group .required {
  color: var(--color-red);
}

.form-input,
.form-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.04);
}
.form-input::placeholder {
  color: var(--text-muted);
}
.form-input[type="date"] {
  color-scheme: dark;
}
.form-select option {
  background: var(--bg-secondary);
}
.form-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.kpi-current-info {
  padding: 10px 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

/* Modal Footer Buttons */
.btn-modal-cancel {
  padding: 9px 20px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-modal-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), #6366f1);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}
.btn-modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}
.btn-modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Light theme modal adjustments */
body.light-theme .modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}
body.light-theme .modal-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(99, 102, 241, 0.03));
}
body.light-theme .form-input,
body.light-theme .form-select {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.12);
}
body.light-theme .form-input:focus,
body.light-theme .form-select:focus {
  background: rgba(59, 130, 246, 0.03);
}
body.light-theme .form-input[type="date"] {
  color-scheme: light;
}
body.light-theme .modal-close-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

/* ══════════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  min-width: 260px;
  max-width: 380px;
  pointer-events: all;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: slideInToast 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  backdrop-filter: blur(10px);
}
.toast.toast-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
  border: 1px solid rgba(16, 185, 129, 0.5);
}
.toast.toast-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
  border: 1px solid rgba(239, 68, 68, 0.5);
}
.toast.toast-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.5);
}
.toast i {
  font-size: 16px;
  flex-shrink: 0;
}
.toast.removing {
  animation: slideOutToast 0.3s ease forwards;
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutToast {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ══════════════════════════════════════════════
   KPI CARD — 클릭 힌트 (드릴다운 진입 효과)
══════════════════════════════════════════════ */
.kpi-card {
  cursor: pointer;
  position: relative;
}
.kpi-card::after {
  content: '📋 클릭하여 실적 내역 보기';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.kpi-card:hover::after {
  opacity: 1;
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.4);
}

/* ══════════════════════════════════════════════
   WIDE MODAL (드릴다운용 넓은 모달)
══════════════════════════════════════════════ */
.modal-wide {
  padding: 16px;
}
.modal-card-wide {
  max-width: 860px;
  width: 100%;
}

/* 드릴다운 모달 헤더 레이아웃 */
.modal-header {
  align-items: flex-start;
}
.detail-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.detail-breadcrumb {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.detail-header-right {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.detail-kpi-stats {
  display: flex;
  gap: 20px;
}
.detail-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
}
.detail-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.detail-stat-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.detail-stat-value.achievement {
  color: var(--accent-primary);
  font-size: 17px;
}

/* 진행률 바 (모달 헤더 하단) */
.detail-progress-container {
  padding: 0 0 4px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(99, 102, 241, 0.05));
  border-bottom: 1px solid var(--border-color);
}
.detail-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.detail-progress-fill {
  height: 100%;
  border-radius: 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.detail-progress-fill.green  { background: linear-gradient(90deg, #10b981, #34d399); }
.detail-progress-fill.yellow { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.detail-progress-fill.red    { background: linear-gradient(90deg, #ef4444, #f87171); }

/* ══════════════════════════════════════════════
   DETAIL MODAL BODY
══════════════════════════════════════════════ */
.detail-modal-body {
  padding: 20px 24px;
  max-height: 60vh;
}

.detail-table-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-records-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
}

/* 인라인 실적 추가 폼 패널 */
.add-record-panel {
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  animation: slideDownPanel 0.25s ease forwards;
}

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

.add-record-form .form-group {
  margin: 0;
}

/* 실적 내역 테이블 래퍼 */
.detail-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  min-height: 120px;
}

/* 실적 내역 테이블 */
.detail-records-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.detail-records-tbl thead th {
  background: var(--bg-tertiary);
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.detail-records-tbl tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}
.detail-records-tbl tbody tr:last-child {
  border-bottom: none;
}
.detail-records-tbl tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}
.detail-records-tbl td {
  padding: 9px 12px;
  color: var(--text-primary);
  vertical-align: middle;
}
.detail-records-tbl .rec-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.detail-records-tbl .rec-title {
  font-weight: 600;
}
.detail-records-tbl .rec-detail {
  color: var(--text-secondary);
  font-size: 12px;
}
.detail-records-tbl .rec-value {
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-green);
}
.detail-records-tbl .rec-contributor {
  text-align: center;
  font-size: 12px;
}
.detail-records-tbl .rec-note {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* 삭제 버튼 */
.btn-delete-record {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
  margin: auto;
}
.btn-delete-record:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--color-red);
}

/* 로딩 상태 */
.detail-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: var(--text-muted);
  font-size: 13px;
}
.detail-loading-state i {
  font-size: 20px;
  color: var(--accent-primary);
}

/* 빈 상태 */
.detail-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-muted);
  text-align: center;
}
.detail-empty-state i {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.3;
}
.detail-empty-state p {
  margin: 3px 0;
  font-size: 13px;
}

/* 푸터 메모 */
.detail-footer-note {
  font-size: 11.5px;
  color: var(--text-muted);
  flex: 1;
  font-style: italic;
}

/* 라이트 테마 조정 */
body.light-theme .add-record-panel {
  background: rgba(59, 130, 246, 0.03);
  border-color: rgba(59, 130, 246, 0.12);
}
body.light-theme .detail-records-tbl thead th {
  background: #f1f5f9;
}
body.light-theme .detail-progress-bar {
  background: rgba(0, 0, 0, 0.06);
}
body.light-theme .kpi-card::after {
  background: rgba(37, 99, 235, 0.9);
}

/* 관리 액션 소형 버튼 (수정/삭제) */
.btn-action-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-action-sm {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: var(--transition);
}

.btn-action-sm:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-action-sm.edit:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--accent-glow);
}

.btn-action-sm.delete:hover {
  color: var(--color-red);
  border-color: var(--color-red);
  background: var(--color-red-glow);
}

.task-progress-tag, .maintenance-status-interactive {
  cursor: pointer;
  user-select: none;
}
.task-progress-tag:focus-visible, .maintenance-status-interactive:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.task-row-interactive {
  transition: background-color 0.15s ease;
}
.task-row-interactive:hover {
  background-color: var(--accent-glow) !important;
}

/* 페이지네이션 (Pagination) 스타일 */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.pagination-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

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

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* KPI 카드 수정 버튼 */
.kpi-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kpi-card-edit-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: var(--transition);
}

.kpi-card:hover .kpi-card-edit-btn {
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.2);
}

.kpi-card-edit-btn:hover {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: var(--accent-primary) !important;
}

/* ══════════════════════════════════════════════════ */
/* AUTH LOCK SCREEN OVERLAY STYLES                   */
/* ══════════════════════════════════════════════════ */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(16px);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-modal);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), #6366f1);
}

.auth-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 26px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.auth-input-wrapper .input-lock-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 12px 42px 12px 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-show-pw {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: var(--transition);
}

.btn-show-pw:hover {
  color: var(--text-primary);
}

.auth-error-msg {
  font-size: 12px;
  color: var(--color-red);
  margin-bottom: 14px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  text-align: left;
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.auth-submit-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

/* Shake Animation */
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.auth-shake {
  animation: authShake 0.4s ease-in-out;
}

/* ═════════════════════════════════════════════════════════════
   Task Management - Auto-Synced Calendar View System
   ═════════════════════════════════════════════════════════════ */

/* View Toggle Control */
.view-mode-toggle {
  display: flex;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 4px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.view-toggle-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.view-toggle-btn.active {
  color: #ffffff;
  background-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Calendar Main Wrapper */
.task-calendar-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Calendar Header Bar */
.calendar-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.calendar-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cal-nav {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-cal-nav:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.btn-cal-today {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cal-today:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.cal-month-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 8px;
}

.calendar-legend-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legend-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.legend-badge.schedule {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.legend-badge.task {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.legend-badge.project {
  background-color: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.3);
}

.cal-stats-badge {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

/* Calendar Grid Container */
.calendar-grid-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-tertiary);
}

/* Weekday Header */
.calendar-weekday-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.weekday {
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.weekday.sunday {
  color: #f87171;
}

.weekday.saturday {
  color: #60a5fa;
}

/* Day Grid */
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--border-color);
  gap: 1px;
}

.cal-day-cell {
  background: var(--bg-secondary);
  min-height: 115px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.2s ease;
}

.cal-day-cell:hover {
  background: rgba(255, 255, 255, 0.025);
}

.cal-day-cell.other-month {
  background: rgba(0, 0, 0, 0.2);
  opacity: 0.45;
}

.cal-day-cell.is-today {
  background: rgba(59, 130, 246, 0.06);
  box-shadow: inset 0 0 0 1.5px var(--accent-primary);
}

.day-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.day-number {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.cal-day-cell.is-today .day-number {
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
}

.cal-day-cell.sunday .day-number {
  color: #f87171;
}
.cal-day-cell.is-today.sunday .day-number {
  color: #ffffff;
}

.cal-day-cell.saturday .day-number {
  color: #60a5fa;
}
.cal-day-cell.is-today.saturday .day-number {
  color: #ffffff;
}

.btn-day-add {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.cal-day-cell:hover .btn-day-add {
  opacity: 1;
}

.btn-day-add:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Event List Container inside cell */
.cal-events-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  max-height: 90px;
  padding-right: 2px;
}

/* Scrollbar for event container */
.cal-events-container::-webkit-scrollbar {
  width: 3px;
}
.cal-events-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.cal-event-badge {
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.cal-event-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.cal-event-badge.schedule {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.cal-event-badge.task {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.25);
}

.cal-event-badge.project {
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.25);
}

.cal-event-badge.completed {
  opacity: 0.5;
  text-decoration: line-through;
  filter: grayscale(0.4);
}

.event-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.event-owner {
  font-size: 9px;
  opacity: 0.75;
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cal-more-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  text-align: center;
  margin-top: 2px;
  transition: var(--transition);
}

.cal-more-badge:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Unassigned Deadline Section */
.calendar-unassigned-section {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.unassigned-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.unassigned-tip {
  font-size: 11px;
  font-weight: normal;
  color: var(--text-muted);
}

.unassigned-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.unassigned-item-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.unassigned-item-pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Day Modal Task Card list */
.day-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.day-task-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.day-task-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.day-task-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.day-task-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-task-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}
