/* ==========================================================================
   KAPATE WORKSPACE DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  --bg-primary: #090d16;
  --bg-surface: #0f172a;
  --bg-card: #131d33;
  --bg-card-hover: #182440;
  --border-color: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;
}

html.light {
  --bg-primary: #f8fafc;
  --bg-surface: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
}

html.light body {
  background-color: var(--bg-primary);
  color: var(--text-main);
}

html.light .bg-darkBg { background-color: #f8fafc; }
html.light .bg-darkSurface { background-color: #ffffff; }
html.light .bg-darkCard { background-color: #ffffff; }
html.light .border-darkBorder { border-color: #e2e8f0; }
html.light .text-white { color: #0f172a; }
html.light .text-slate-100 { color: #0f172a; }
html.light .text-slate-300 { color: #334155; }
html.light .text-slate-400 { color: #64748b; }

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Sidebar Navigation Items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.nav-item:hover {
  background-color: rgba(30, 41, 59, 0.5);
  color: #f8fafc;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.08));
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.1);
  font-weight: 600;
}

.nav-item .icon {
  font-size: 14px;
  line-height: 1;
}

/* Tab Panes */
.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.tab-pane.active {
  display: block;
}

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

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  width: 100%;
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Status Badges */
.badge-assigned { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.badge-inprogress { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-submitted { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-approved { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-completed { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-changes { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Priority Tags */
.priority-high { color: #f87171; font-weight: 700; }
.priority-medium { color: #fbbf24; font-weight: 600; }
.priority-low { color: #94a3b8; font-weight: 500; }

/* Toast Notifications */
.toast-msg {
  padding: 12px 16px;
  border-radius: 12px;
  background-color: #131d33;
  border: 1px solid #1e293b;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideToast 0.25s ease forwards;
}

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
