/* ==========================================================================
   CSS STYLESHEET: WMS & LOGISTICS TASK BOARD (LogiFlow Pro)
   Theme: Sleek Dark Mode with Teal Accents & Glassmorphism
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #0b0f19;
  --bg-sidebar: #0f1524;
  --bg-card: rgba(22, 31, 48, 0.7);
  --bg-card-hover: rgba(29, 41, 64, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-focus: rgba(0, 180, 216, 0.5);
  
  /* Accent Colors */
  --teal-primary: #00e5ff;
  --teal-hover: #00b4d8;
  --teal-glow: rgba(0, 229, 255, 0.15);
  --blue-accent: #3a86c8;
  --purple-accent: #9d4edd;
  --amber-accent: #f77f00;
  --red-accent: #ff0055;
  --green-accent: #00f5d4;
  
  /* Text Colors */
  --text-primary: #f8f9fa;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  
  /* Shadow & Blur */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 15px rgba(0, 229, 255, 0.25);
  --card-blur: blur(12px);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

body {
  font-family: 'Prompt', 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  line-height: 1.5;
}

/* App Container Layout */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.sidebar {
  width: 280px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-icon {
  font-size: 32px;
  color: var(--teal-primary);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.sidebar-brand h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--text-primary), var(--teal-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* User Profile Section */
.user-profile-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.avatar-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-icon {
  font-size: 40px;
  color: var(--text-secondary);
}

.user-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-sidebar);
}

.user-status-dot.online {
  background-color: var(--green-accent);
  box-shadow: 0 0 6px var(--green-accent);
}

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

.user-role-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-info h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Role Selector Styled */
.role-selector-container {
  margin-bottom: 24px;
}

.field-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.label-icon {
  font-size: 16px;
}

.styled-select {
  width: 100%;
  padding: 10px 14px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.styled-select:focus {
  border-color: var(--teal-primary);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

/* Sidebar Menu */
.sidebar-menu {
  margin-bottom: auto;
}

.sidebar-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.menu-item span:first-child {
  font-size: 20px;
}

.menu-item span:last-child {
  font-size: 14px;
  font-weight: 500;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.menu-item.active {
  background-color: var(--teal-glow);
  color: var(--teal-primary);
  border-left: 3px solid var(--teal-primary);
  padding-left: 13px;
}

/* Sidebar Metrics Panel */
.sidebar-section-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.warehouse-metrics-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.metric-progress-item {
  margin-bottom: 12px;
}

.metric-progress-item:last-child {
  margin-bottom: 0;
}

.metric-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.progress-bar-bg {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.progress-bar-fill.fill-success { background-color: var(--green-accent); }
.progress-bar-fill.fill-warning { background-color: var(--amber-accent); }
.progress-bar-fill.fill-danger { background-color: var(--red-accent); }

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
  width: 100%;
  padding: 8px;
  border-radius: 4px;
}

.btn-text span {
  font-size: 16px;
}

.btn-text:hover {
  color: var(--red-accent);
  background-color: rgba(255, 0, 85, 0.05);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  height: 100%;
  overflow-y: auto;
}

/* Main Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(15, 21, 36, 0.3);
  backdrop-filter: var(--card-blur);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-title h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--teal-primary), var(--teal-hover));
  border: none;
  border-radius: 8px;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.1s ease, box-shadow var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(0, 229, 255, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary span {
  font-size: 18px;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

/* Content Body */
.content-body {
  padding: 32px;
  flex-grow: 1;
  overflow-y: auto;
}

/* Tab panes */
.tab-pane {
  display: none;
}

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

/* ==========================================================================
   TAB: DASHBOARD VIEW
   ========================================================================== */

/* Stats Summary Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: var(--card-blur);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
}

.stat-icon span {
  font-size: 24px;
}

.stat-data {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-data h2 {
  font-size: 26px;
  font-weight: 700;
  margin-top: 2px;
}

/* Specific Card Styling */
.stat-card.total .stat-icon { color: var(--teal-primary); background: rgba(0, 229, 255, 0.1); }
.stat-card.pending .stat-icon { color: var(--amber-accent); background: rgba(247, 127, 0, 0.1); }
.stat-card.in-progress .stat-icon { color: var(--blue-accent); background: rgba(58, 134, 200, 0.1); }
.stat-card.review .stat-icon { color: var(--purple-accent); background: rgba(157, 78, 221, 0.1); }
.stat-card.completed .stat-icon { color: var(--green-accent); background: rgba(0, 245, 212, 0.1); }
.stat-card.delayed .stat-icon { color: var(--red-accent); background: rgba(255, 0, 85, 0.1); }

/* Dashboard Mid Section */
.dashboard-mid-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) {
  .dashboard-mid-grid {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: var(--card-blur);
}

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

.panel-header h3 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-header h3 span {
  font-size: 20px;
  color: var(--teal-primary);
}

.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-info {
  background-color: rgba(0, 229, 255, 0.1);
  color: var(--teal-primary);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

/* Data Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th, .data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  color: var(--text-secondary);
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.01);
}

.data-table tbody tr {
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.avatar-initials {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  margin-right: 8px;
}

/* Urgent Tasks list styles */
.urgent-task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.urgent-task-item {
  background: rgba(255, 255, 255, 0.02);
  border-left: 4px solid var(--amber-accent);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform var(--transition-fast);
}

.urgent-task-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.04);
}

.urgent-task-item.overdue {
  border-left-color: var(--red-accent);
  background: rgba(255, 0, 85, 0.03);
}

.urgent-task-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.urgent-task-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.urgent-task-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  align-items: center;
}

.urgent-task-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.urgent-task-meta span.overdue-text {
  color: var(--red-accent);
  font-weight: 500;
}

.urgent-task-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.urgent-task-badge.high { background: rgba(255, 0, 85, 0.15); color: var(--red-accent); }
.urgent-task-badge.medium { background: rgba(247, 127, 0, 0.15); color: var(--amber-accent); }

/* ==========================================================================
   TAB: KANBAN BOARD
   ========================================================================== */

/* Filters Area */
.board-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 24px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-icon {
  font-size: 16px;
}

.filter-select {
  min-width: 140px;
  padding: 8px 12px;
  font-size: 12px;
}

.btn-icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* Board Grid */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
  height: calc(100vh - 270px);
  min-height: 450px;
}

@media (max-width: 1200px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
    overflow-y: auto;
    height: auto;
  }
}

@media (max-width: 600px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}

.kanban-column {
  background-color: rgba(15, 21, 36, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.column-title-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.column-dot.dot-pending { background-color: var(--amber-accent); box-shadow: 0 0 6px var(--amber-accent); }
.column-dot.dot-in-progress { background-color: var(--blue-accent); box-shadow: 0 0 6px var(--blue-accent); }
.column-dot.dot-review { background-color: var(--purple-accent); box-shadow: 0 0 6px var(--purple-accent); }
.column-dot.dot-completed { background-color: var(--green-accent); box-shadow: 0 0 6px var(--green-accent); }

.column-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.task-count {
  font-size: 11px;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-secondary);
}

/* Drag Zone Container */
.task-list-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 250px;
  max-height: calc(100vh - 340px);
}

@media (max-width: 1200px) {
  .task-list-container {
    max-height: 500px;
  }
}

.task-list-container.drag-over {
  background-color: rgba(0, 229, 255, 0.03);
  outline: 2px dashed rgba(0, 229, 255, 0.2);
  outline-offset: -4px;
  border-radius: 0 0 16px 16px;
}

/* ==========================================================================
   TASK CARDS
   ========================================================================== */
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  cursor: grab;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color var(--transition-fast);
}

.task-card:hover {
  transform: translateY(-2px);
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.task-card:active {
  cursor: grabbing;
}

/* Card Glow for High Priority (Breathing Red Outline) */
.task-card.priority-high {
  border-left: 4px solid var(--red-accent);
  animation: high-priority-glow 3s infinite alternate;
}

.task-card.priority-medium {
  border-left: 4px solid var(--amber-accent);
}

.task-card.priority-low {
  border-left: 4px solid var(--blue-accent);
}

@keyframes high-priority-glow {
  0% { box-shadow: 0 0 5px rgba(255, 0, 85, 0.05); }
  100% { box-shadow: 0 0 10px rgba(255, 0, 85, 0.2); border-color: rgba(255, 0, 85, 0.3); }
}

/* Task Card Header components */
.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.task-type-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Type styling colors */
.task-type-badge.receiving { background: rgba(58, 134, 200, 0.15); color: #3a86c8; }
.task-type-badge.sorting { background: rgba(157, 78, 221, 0.15); color: #b577e6; }
.task-type-badge.packing { background: rgba(247, 127, 0, 0.15); color: #fa983a; }
.task-type-badge.shipping { background: rgba(0, 245, 212, 0.15); color: #00f5d4; }
.task-type-badge.inventory { background: rgba(224, 86, 36, 0.15); color: #f26419; }

.task-card-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

/* Show actions only on hover, for manager only (controlled by class in container) */
.task-card:hover .task-card-actions {
  opacity: 1;
}

.btn-card-action {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.btn-card-action span {
  font-size: 16px;
}

.btn-card-action:hover.edit { color: var(--teal-primary); background-color: rgba(0, 229, 255, 0.1); }
.btn-card-action:hover.delete { color: var(--red-accent); background-color: rgba(255, 0, 85, 0.1); }

/* Card Content styling */
.task-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.task-card p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Footer styles */
.task-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.task-assignee-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.avatar-small {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
}

.assignee-name {
  font-size: 11px;
  color: var(--text-secondary);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-deadline {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.task-deadline.overdue {
  color: var(--red-accent);
  font-weight: 500;
}

.task-deadline span {
  font-size: 14px;
}

/* ==========================================================================
   TAB: TEAM MANAGEMENT
   ========================================================================== */
.team-management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.team-member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.team-member-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.team-member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.team-member-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-member-dept {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.team-member-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.t-stat {
  display: flex;
  flex-direction: column;
}

.t-stat-label {
  font-size: 10px;
  color: var(--text-muted);
}

.t-stat-val {
  font-size: 14px;
  font-weight: 600;
}

.t-stat-val.active { color: var(--blue-accent); }
.t-stat-val.completed { color: var(--green-accent); }

.btn-remove-member {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.btn-remove-member:hover {
  color: var(--red-accent);
  background-color: rgba(255, 0, 85, 0.08);
}

/* ==========================================================================
   MODAL PANEL STYLING
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #121826;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 550px;
  max-width: 90vw;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

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

.modal-body {
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Forms styling inside modals */
.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.col-6 {
  flex: 1;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.text-danger {
  color: var(--red-accent);
}

.styled-input, .styled-textarea {
  width: 100%;
  padding: 10px 14px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.styled-input:focus, .styled-textarea:focus {
  border-color: var(--teal-primary);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

.styled-textarea {
  resize: vertical;
}

/* Color Selector in Member Modal */
.color-picker-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.color-picker-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.color-picker-item input {
  display: none;
}

.color-picker-item:has(input:checked) {
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   VIEW TASK DETAILS MODAL SPECIFICS
   ========================================================================== */
.view-task-title-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.view-task-title-container h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.badge-priority {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-priority.high { background: rgba(255, 0, 85, 0.15); color: var(--red-accent); border: 1px solid rgba(255, 0, 85, 0.2); }
.badge-priority.medium { background: rgba(247, 127, 0, 0.15); color: var(--amber-accent); border: 1px solid rgba(247, 127, 0, 0.2); }
.badge-priority.low { background: rgba(58, 134, 200, 0.15); color: var(--blue-accent); border: 1px solid rgba(58, 134, 200, 0.2); }

.modal-divider {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  margin: 16px 0;
}

.view-task-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  background-color: rgba(255, 255, 255, 0.01);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.meta-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.meta-val {
  font-size: 13px;
  font-weight: 500;
}

.highlight-deadline {
  color: var(--teal-primary);
}

.section-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-task-description {
  margin-bottom: 24px;
}

.view-task-description p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Task Notes (Comments) */
.view-task-notes-section {
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.note-item {
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 10px;
}

.note-sender {
  font-weight: 600;
  color: var(--text-secondary);
}

.note-text {
  color: var(--text-primary);
  line-height: 1.4;
}

.add-note-form {
  display: flex;
  gap: 10px;
}

.add-note-form input {
  flex-grow: 1;
}

/* Task Action / status buttons */
.status-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.status-actions span {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-group {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.btn-status-shift {
  background-color: rgba(255, 255, 255, 0.02);
  border: none;
  border-right: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-status-shift:last-child {
  border-right: none;
}

.btn-status-shift:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-status-shift.active {
  background-color: var(--teal-primary);
  color: #000;
  font-weight: 600;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
