/* style.css - DigiFalx OS Premium Monday CRM Theme */

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

:root {
  /* Core Design Tokens (Monday.com Premium Dark Palette) */
  --raw-bg: #0f111a;                  /* Deep dark blue/charcoal background */
  --raw-surface: #151722;             /* Sleek surface cards & panels */
  --raw-surface-elevated: #1c1f30;    /* Inputs, headers, and active states */
  
  --color-primary: #0073ea;           /* Monday Electric Blue */
  --color-secondary: #0060c2;
  --color-accent: #00c875;            /* Monday Mint Green */
  
  --text-primary: #f8f8f8;            /* High readability primary text */
  --text-secondary: #a5a7b4;          /* Soft gray secondary text */
  --text-muted: #67697a;              /* Muted text */
  
  --border-light: 1px solid #202231;  /* Elegant dark border outline */
  --border-active: 1px solid #0073ea;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-full: 9999px;
  
  /* Status Colors (Solid Badges) */
  --status-not-started-bg: #2b2c37;
  --status-not-started-text: #a5a7b4;
  --status-in-progress-bg: rgba(0, 115, 234, 0.15);
  --status-in-progress-text: #0086F0;
  --status-review-bg: rgba(162, 93, 220, 0.15);
  --status-review-text: #A25DDC;
  --status-completed-bg: rgba(0, 200, 117, 0.15);
  --status-completed-text: #00c875;
  --status-pending-bg: rgba(253, 171, 61, 0.15);
  --status-pending-text: #FDAB3D;
  --status-blocked-bg: rgba(226, 68, 92, 0.15);
  --status-blocked-text: #E2445C;

  /* Priority Colors */
  --priority-urgent-bg: rgba(162, 93, 220, 0.15);
  --priority-urgent-text: #A25DDC;
  --priority-high-bg: rgba(226, 68, 92, 0.15);
  --priority-high-text: #E2445C;
  --priority-medium-bg: rgba(253, 171, 61, 0.15);
  --priority-medium-text: #FDAB3D;
  --priority-low-bg: rgba(0, 200, 117, 0.15);
  --priority-low-text: #00c875;
  
  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
}

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

html, body {
  height: 100%;
  background-color: var(--raw-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars - Clean Cool Gray */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--raw-bg);
}
::-webkit-scrollbar-thumb {
  background: #D0D4DC;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #B0B5C0;
}

/* Remove Dark Mode overlays and glows */
.grid-bg-overlay, .glow-orb {
  display: none !important;
}

/* App Core Grid Layout */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: var(--raw-bg);
}

/* Sidebar - Crisp Dark Monday Style */
.sidebar {
  width: 250px;
  background: var(--raw-surface);
  border-right: var(--border-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sidebar-brand {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  border-bottom: var(--border-light);
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: #222 transparent;
}

.sidebar-menu::-webkit-scrollbar { width: 5px; }
.sidebar-menu::-webkit-scrollbar-track { background: transparent; }
.sidebar-menu::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  position: relative;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.nav-item i, .nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Neutral hover — primary is reserved for the ACTIVE item only */
.nav-item:hover {
  background: var(--raw-surface-elevated);
  color: var(--text-primary);
}

.nav-item:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-primary);
  outline: none;
}

.nav-item.active {
  background: rgba(0, 115, 234, 0.12);
  color: var(--color-primary);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
}

.sidebar-section-header {
  padding: 1rem 1.5rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: var(--border-light);
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.back-link:hover {
  color: var(--color-primary);
}

/* Main Panel Area */
.main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Top bar - Crisp Dark Header */
.top-bar {
  height: 65px;
  background: var(--raw-surface);
  border-bottom: var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  flex-shrink: 0;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  flex-shrink: 1;
}

.top-bar-left h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00C875;
  box-shadow: 0 0 0 2px rgba(0, 200, 117, 0.2);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.top-bar-actions .search-box { max-width: 220px; }
.top-bar-actions .search-box input { width: 100%; }

@media (max-width: 1500px) {
  #db-status-indicator #db-status-text { display: none; }
  .top-bar-actions .search-box { max-width: 170px; }
}

/* General Layout Widgets */
.view-content-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.view-panel {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.view-panel.active {
  display: flex;
}

/* Metrics Dashboard Cards Grid — fixed ranks so no card doubles in width */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1500px) {
  .metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.metric-card {
  background: var(--raw-surface);
  border: var(--border-light);
  border-radius: var(--radius-m);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.metric-clickable {
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.metric-clickable:hover {
  box-shadow: 0 4px 12px rgba(51, 204, 166, 0.12);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--raw-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-info h3 {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Cards Design System */
.chart-card, .recent-activity-card, .sync-card {
  background: var(--raw-surface);
  border: var(--border-light);
  border-radius: var(--radius-m);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.chart-header {
  border-bottom: var(--border-light);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.chart-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chart-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dashboard-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
}

/* Premium Monday CRM Style Tables */
.table-container {
  overflow-x: auto;
  border: var(--border-light);
  border-radius: var(--radius-m);
  background: var(--raw-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

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

th {
  background: var(--raw-surface-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: var(--border-light);
  border-right: var(--border-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

td {
  padding: 0.6rem 1rem;
  border-bottom: var(--border-light);
  border-right: var(--border-light);
  color: var(--text-primary);
  white-space: nowrap;
  vertical-align: middle;
}

th:last-child, td:last-child {
  border-right: none;
}

tbody tr:hover {
  background: var(--raw-surface-elevated);
}

td.truncate {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom Status and Priority badges styled solid like Monday */
.badge-status, .badge-priority {
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF !important;
  text-align: center;
  padding: 0.3rem 0.6rem;
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Editable badge dropdowns fill their cell and show a caret */
select.badge-status, select.badge-priority {
  display: block;
  width: 100%;
  cursor: pointer;
  outline: none;
  text-align-last: center;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='6'><path d='M0 0l4 6 4-6z' fill='white'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 22px;
}

select.badge-status:hover, select.badge-priority:hover {
  filter: brightness(0.95);
}

/* Static badge chips size to their content — never stretch */
span.badge-status, span.badge-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  cursor: default;
}

.status-notstarted { background-color: var(--status-not-started-bg) !important; }
.status-inprogress { background-color: var(--status-in-progress-bg) !important; }
.status-review { background-color: var(--status-review-bg) !important; }
.status-completed { background-color: var(--status-completed-bg) !important; }
.status-pending { background-color: var(--status-pending-bg) !important; }
.status-blocked { background-color: var(--status-blocked-bg) !important; }

.priority-urgent { background-color: var(--priority-urgent-bg) !important; }
.priority-high { background-color: var(--priority-high-bg) !important; }
.priority-medium { background-color: var(--priority-medium-bg) !important; }
.priority-low { background-color: var(--priority-low-bg) !important; }

/* Inline Inputs and Select elements inside cells */
.inline-input, .inline-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.3rem;
  width: 100%;
  outline: none;
  border-radius: var(--radius-s);
  transition: all 0.15s ease;
}

.inline-input:hover, .inline-input:focus, .inline-select:hover {
  background: #ECEFF4;
}

.inline-select {
  cursor: pointer;
}

/* Style options list specifically to avoid OS-level black-on-black text bugs */
select option {
  background-color: #FFFFFF !important;
  color: #323338 !important;
  padding: 0.5rem;
}

/* Custom Assignee styles with colored avatars */
.assignee-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

.assignee-select {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  padding-left: 0.2rem;
}

/* Action Filters Bar */
.board-filters-bar {
  background: var(--raw-surface);
  border: var(--border-light);
  border-radius: var(--radius-m);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filters-left, .filters-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-select, .search-box input {
  background: var(--raw-surface);
  border: var(--border-light);
  color: var(--text-primary);
  border-radius: var(--radius-s);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  transition: all 0.15s ease;
}

.filter-select:hover, .search-box input:hover {
  border-color: var(--color-primary);
}

.filter-select:focus, .search-box input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 115, 234, 0.15);
}

.search-box {
  position: relative;
}

.search-box input {
  padding-left: 2.2rem;
  width: 240px;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  min-height: 38px;
}

.btn svg, .btn i {
  width: 16px;
  height: 16px;
  stroke-width: 2.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: #005cc5;
}

.btn-secondary {
  background: var(--raw-surface);
  border: var(--border-light);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--raw-surface-elevated);
  border-color: var(--color-primary);
}

.btn-danger {
  background: var(--priority-high-bg);
  color: #FFFFFF;
}
.btn-danger:hover {
  background: #b52538;
}

.btn-icon-only {
  width: 38px;
  padding: 0;
}

/* Native HTML Dialog Modals Design */
.modal-dialog {
  border: var(--border-light);
  border-radius: var(--radius-l);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  background: var(--raw-surface) !important;
  color: var(--text-primary);
  margin: auto;
  max-width: 650px;
  width: 90%;
  overflow: hidden;
  outline: none;
  padding: 0;
}

.modal-dialog::backdrop {
  background: rgba(0,0,0,0.6);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--raw-surface-elevated);
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
}
.btn-close-modal:hover {
  color: var(--text-primary);
}

.modal-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--raw-surface);
  border: var(--border-light);
  color: var(--text-primary);
  border-radius: var(--radius-s);
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(51, 204, 166, 0.15);
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--raw-surface-elevated);
}

/* Kanban Board Styling */
.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  flex: 1;
}

.kanban-column {
  flex: 1 1 0;
  min-width: 225px;
  max-width: 340px;
  background: var(--raw-surface);
  border-radius: var(--radius-m);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: max-content;
  max-height: 100%;
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  white-space: nowrap;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #D8DDE6;
  gap: 0.5rem;
}

.kanban-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  flex: 1;
  min-height: 150px;
}

.kanban-card {
  background: var(--raw-surface);
  border-radius: var(--radius-s);
  padding: 1rem;
  border: var(--border-light);
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.kanban-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(51, 204, 166, 0.08);
}

.kanban-card h5 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Sales Pipeline Drag & Drop board styles */
.pipeline-container {
  display: flex;
  gap: 1.25rem;

/* Futuristic / AI styling tweaks */
:root {
  --frost-bg: linear-gradient(135deg, rgba(2,0,36,0.6), rgba(8,70,140,0.25));
  --neon-accent-a: #7C4DFF;
  --neon-accent-b: #00E5FF;
}

.views-details summary.nav-item { list-style: none; }

#ai-assistant {
  background: linear-gradient(90deg,var(--neon-accent-a),var(--neon-accent-b));
  border: none;
  color: white;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(124,77,255,0.18);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

#ai-assistant:hover { transform: translateY(-2px); }

.ai-floating { position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 999px; background: linear-gradient(135deg,var(--neon-accent-a),var(--neon-accent-b)); display:flex; align-items:center; justify-content:center; color:#fff; box-shadow: 0 12px 40px rgba(0,0,0,0.25); z-index: 9999; }

  overflow-x: auto;
  padding-bottom: 1rem;
  flex: 1;
}

.pipeline-column {
  flex: 1;
  min-width: 210px;
  background: var(--raw-surface);
  border: var(--border-light);
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Empty pipeline stages invite a drop instead of showing a blank box */
.pipeline-card-list:empty::after {
  content: 'No deals — drag a card here';
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 2rem 0.5rem;
  border: 1px dashed #D8DDE6;
  border-radius: 4px;
}

.pipeline-card-list.drag-over,
.kanban-card-list.drag-over {
  background: #E5F0FF;
}

.pipeline-column-header {
  padding: 0.75rem 1rem;
  border-bottom: var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: 700;
}

.pipeline-card-list {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  min-height: 250px;
  background: var(--raw-bg);
}

.pipeline-card {
  background: var(--raw-surface);
  border: var(--border-light);
  border-radius: var(--radius-s);
  padding: 0.75rem 1rem;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.pipeline-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(51, 204, 166, 0.08);
}

/* Interactive Calendar Styling */
.calendar-container {
  background: var(--raw-surface);
  border: var(--border-light);
  border-radius: var(--radius-m);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: var(--border-light);
  border-bottom: none;
  border-right: none;
}

.calendar-day-header {
  background: var(--raw-surface-elevated);
  padding: 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-bottom: var(--border-light);
  border-right: var(--border-light);
}

.calendar-day {
  min-height: 100px;
  background: var(--raw-surface);
  padding: 0.4rem;
  border-bottom: var(--border-light);
  border-right: var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
}

.calendar-day.other-month {
  background: var(--raw-bg);
}

.calendar-day-num {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
}

.calendar-event {
  font-size: 0.72rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  color: #FFFFFF;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Gantt Chart View Layout */
.gantt-container {
  background: var(--raw-surface);
  border: var(--border-light);
  border-radius: var(--radius-m);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.gantt-chart {
  display: flex;
  flex-direction: column;
  overflow: auto;
  margin-top: 1rem;
}

.gantt-row {
  display: flex;
  align-items: center;
  border-bottom: var(--border-light);
  min-height: 44px;
}

.gantt-label {
  width: 250px;
  min-width: 250px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  border-right: var(--border-light);
  background: var(--raw-surface);
  position: sticky;
  left: 0;
  z-index: 2;
}

.gantt-timeline-wrapper {
  flex: 1;
  position: relative;
  min-height: 44px;
}

.gantt-timeline-grid {
  display: flex;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gantt-timeline-col {
  flex: 1;
  border-right: 1px dashed #E6E9EF;
}

.gantt-bar {
  position: absolute;
  top: 10px;
  height: 24px;
  border-radius: var(--radius-s);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  cursor: grab;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Tab Layout for Client Details Page */
.tab-bar {
  display: flex;
  border-bottom: 2px solid #E6E9EF;
  gap: 1.5rem;
}

.tab-item {
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.tab-item:hover {
  color: var(--color-primary);
}

.tab-item.active {
  color: var(--color-primary);
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

/* Discussion Board Comments & Replies */
.chat-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  display: flex;
  gap: 1rem;
  background: var(--raw-surface-elevated);
  border: var(--border-light);
  border-radius: var(--radius-m);
  padding: 1rem;
}

.chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-body-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.chat-replies-list {
  margin-top: 0.5rem;
  border-left: 2px solid #E6E9EF;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-reply-item {
  display: flex;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.chat-reply-input-box {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Seen checklist indicators */
.chat-seen-list {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Login Portal */
.login-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at top center, #1a2336 0%, #0d111a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.hidden { display: none !important; }

.login-card {
  background: rgba(21, 28, 44, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 440px;
  padding: 2.25rem 2.25rem 2rem;
  box-sizing: border-box;
}

.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary, #0073EA);
}

.login-header h2 {
  font-family: var(--font-heading, system-ui, -apple-system, sans-serif);
  font-weight: 800;
  font-size: 1.65rem;
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.login-header p {
  font-size: 0.88rem;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
}

.login-card input[type="text"],
.login-card input[type="password"],
.login-card select {
  background: rgba(15, 21, 35, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  transition: all 0.2s ease !important;
}

.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus,
.login-card select:focus {
  outline: none !important;
  border-color: var(--color-primary, #0073EA) !important;
  box-shadow: 0 0 0 3px rgba(0, 115, 234, 0.25) !important;
  background: rgba(15, 21, 35, 0.95) !important;
}

/* Notification wrapper */
.notification-wrapper {
  position: relative;
}

/* Clock and session indicator widgets */
.clock-widget, .session-info-group, #db-status-indicator {
  display: flex;
  align-items: center;
  background: var(--raw-surface);
  border: var(--border-light);
  border-radius: var(--radius-s);
}

/* Responsive sidebars for tablets & mobile screen viewports */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    bottom: 0;
  }
  .sidebar.mobile-active {
    left: 0;
  }
  .top-bar-hamburger {
    display: inline-flex !important;
  }
}

/* ==========================================
   Professional polish utilities (2026-07 UI pass)
   ========================================== */

/* Selected state for view/zoom toggle buttons (Calendar, Gantt) */
.btn-secondary.active {
  background: #E5F0FF;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
}

/* Screen-reader-only labels (was used in markup but never defined) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus visibility */
.btn:focus-visible,
.tab-item:focus-visible,
.filter-select:focus-visible,
.inline-input:focus-visible,
.inline-select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Today marker on the calendar */
.calendar-day.today {
  background: rgba(51, 204, 166, 0.15);
}

.calendar-day.today .calendar-day-num {
  background: var(--color-primary);
  color: #FFFFFF;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Compact row action buttons (edit/delete inside table rows) */
.btn-row {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-s);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-row:hover {
  background: var(--raw-surface-elevated);
  color: var(--text-primary);
}

.btn-row.danger:hover {
  background: rgba(226, 68, 92, 0.15);
  color: #E2445C;
}

/* Small button variant to replace one-off inline padding overrides */
.btn-sm {
  min-height: 30px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
}

/* Empty-state pattern for boards and tables */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.empty-state svg {
  width: 32px;
  height: 32px;
  opacity: 0.5;
}

.empty-state h4 {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Master tasks grid: fixed layout so columns stop crushing each other */
#master-tasks-table {
  table-layout: fixed;
  min-width: 1080px;
}

#master-tasks-table .inline-input,
#master-tasks-table .inline-select {
  min-width: 0;
}

#master-tasks-table th:last-child,
#master-tasks-table td:last-child {
  position: sticky;
  right: 0;
  background: var(--raw-surface);
  box-shadow: -4px 0 6px -4px rgba(0, 0, 0, 0.4);
}

#master-tasks-table th:last-child {
  background: var(--raw-surface-elevated);
}

#master-tasks-table tbody tr:hover td:last-child {
  background: var(--raw-surface-elevated);
}

/* ===================================================================
   PREMIUM ANIMATIONS & 3D EFFECTS — DigiFalx OS 2026 Enhancement
   =================================================================== */

/* View panel entrance animation */
@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-panel.active {
  animation: viewEnter 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 3D Tilt hover effect on metric cards */
.metric-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.metric-card.metric-clickable:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 115, 234, 0.14);
  border-color: #0073EA;
}

/* Animated shimmer on metric values */
@keyframes countUp {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1);    }
}
.metric-value {
  animation: countUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Glassmorphism accent on chart cards */
.chart-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, rgba(0,115,234,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.chart-card { position: relative; overflow: hidden; }

/* Nav item micro-animation */
.nav-item {
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease, padding-left 0.15s ease;
}
.nav-item:hover {
  transform: translateX(2px);
}
.nav-item.active {
  transform: none;
}

/* Kanban card lift animation on drag */
.kanban-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.kanban-card[draggable="true"]:active {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  cursor: grabbing;
}

/* Pipeline card premium hover */
.pipeline-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.pipeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 234, 0.12);
  border-color: #0073EA;
}

/* Animated progress bars */
@keyframes progressFill {
  from { width: 0%; }
}
.animated-bar {
  animation: progressFill 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Gantt bar hover glow */
.gantt-bar {
  transition: filter 0.15s ease, transform 0.15s ease;
}
.gantt-bar:hover {
  filter: brightness(1.1);
  transform: scaleY(1.1);
}

/* Calendar event hover */
.calendar-event {
  transition: transform 0.1s ease, filter 0.1s ease;
}
.calendar-event:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

/* Pulse dot animation for live sync */
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 117, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(0, 200, 117, 0);  }
}
#db-status-dot[style*="00C875"] {
  animation: pulseDot 2s ease-in-out infinite;
}

/* Department board stat cards */
.dept-board-hero {
  background: linear-gradient(135deg, var(--dept-color-start, #0073EA) 0%, var(--dept-color-end, #0086F0) 100%);
  border-radius: var(--radius-l);
  padding: 1.5rem 2rem;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,115,234,0.2);
  position: relative;
  overflow: hidden;
}
.dept-board-hero::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.dept-board-hero-stat {
  text-align: center;
  padding: 0 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.dept-board-hero-stat:first-child { border-left: none; }
.dept-board-hero-stat .value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.dept-board-hero-stat .label {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Department board quick link pills */
.dept-quick-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dept-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}
.dept-quick-link:hover {
  background: rgba(255,255,255,0.3);
}

/* Sidebar section header separator line */
.sidebar-section-divider {
  height: 1px;
  background: #E6E9EF;
  margin: 0.5rem 1.5rem;
}

/* Status badge animations on update */
@keyframes badgePop {
  0%   { transform: scale(1);    }
  40%  { transform: scale(1.15); }
  100% { transform: scale(1);    }
}
.badge-status.just-updated,
.badge-priority.just-updated {
  animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Department task rows — colored left border by dept */
.dept-task-row-design   { border-left: 3px solid #A25DDC; }
.dept-task-row-video    { border-left: 3px solid #E2445C; }
.dept-task-row-socials  { border-left: 3px solid #FDAB3D; }
.dept-task-row-website  { border-left: 3px solid #00C875; }

/* Floating add button on boards */
.fab-add {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 1.5rem;
  border: none;
  box-shadow: 0 4px 16px rgba(0,115,234,0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 100;
}
.fab-add:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 24px rgba(0,115,234,0.45);
}

/* Interconnected board ribbon */
.board-interconnect-ribbon {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  background: var(--raw-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-s);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.board-interconnect-ribbon strong { color: var(--text-primary); }
.board-interconnect-ribbon a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.board-interconnect-ribbon a:hover { text-decoration: underline; }

/* Slide-down panel transition */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0);    max-height: 600px; }
}
.slide-down {
  animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Tooltip micro chip */
.micro-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  background: #E5F0FF;
  color: var(--color-primary);
  white-space: nowrap;
}
.micro-chip.green  { background: #E5FFF2; color: #00A862; }
.micro-chip.red    { background: #FFE5E8; color: #E2445C; }
.micro-chip.orange { background: #FFF4E5; color: #D4840A; }
.micro-chip.purple { background: #F0E5FF; color: #7D42B8; }

/* 3D card perspective on login card hover */
.login-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.login-card:hover {
  transform: perspective(800px) rotateX(0.8deg) rotateY(-0.5deg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

/* Button loading state */
.btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 0.4rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   REQUESTS & APPROVALS DARK THEME STYLING
   ========================================== */
.requests-dark-theme {
  background-color: var(--raw-surface) !important;
  color: #f8f8f8 !important;
  position: relative;
  overflow-y: auto;
}

.requests-dark-theme .dot-grid-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at center, #222222 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.8;
}

.requests-dark-theme h1,
.requests-dark-theme h2,
.requests-dark-theme h3,
.requests-dark-theme h4,
.requests-dark-theme h5 {
  color: #ffffff !important;
  font-family: var(--font-heading);
}

.requests-tabs-bar {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  z-index: 1;
  position: relative;
}

.req-tab-item {
  background: transparent;
  border: none;
  color: #888888;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.req-tab-item:hover {
  color: #ffffff;
  background: #0d0d0d;
}

.req-tab-item.active {
  color: #33cca6 !important;
  background: rgba(51, 204, 166, 0.1);
  font-weight: 600;
}

.requests-dark-theme .req-tab-panel {
  position: relative;
  z-index: 1;
}

/* Metric Cards in Dark Theme */
.requests-dark-theme .metrics-grid {
  margin-bottom: 1.5rem;
}

.requests-dark-theme .metric-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  transition: border-color 0.2s, transform 0.2s;
}

.requests-dark-theme .metric-card:hover {
  border-color: #262626;
  transform: translateY(-2px);
}

.requests-dark-theme .metric-card h3 {
  color: #888888 !important;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.requests-dark-theme .metric-card .metric-value {
  color: #ffffff !important;
  font-weight: 700;
}

/* Chart Cards in Dark Theme */
.requests-dark-theme .chart-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
}

.requests-dark-theme .chart-card h4 {
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 600;
}

.requests-dark-theme .chart-card .chart-subtitle {
  color: #888888;
  font-size: 0.75rem;
}

/* Tables in Dark Theme */
.requests-table {
  width: 100%;
}

.requests-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem;
  border-bottom: 1px solid #1a1a1a;
  color: #888888;
}

.requests-table td {
  padding: 1rem;
  border-bottom: 1px solid #1a1a1a;
  color: #e0e0e0;
}

.requests-table tbody tr {
  transition: background 0.15s;
  cursor: pointer;
}

.requests-table tbody tr:hover {
  background: var(--raw-surface-elevated) !important;
}

/* Dialog Modals in Dark Theme */
dialog.requests-dark-theme {
  background: var(--raw-surface) !important;
  border: var(--border-light) !important;
  color: #f8f8f8 !important;
  max-width: 500px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95) !important;
}

dialog.requests-dark-theme .modal-header {
  border-bottom: var(--border-light) !important;
  background: var(--raw-surface-elevated) !important;
  padding: 1.25rem 1.5rem !important;
}

dialog.requests-dark-theme .modal-header h2 {
  color: #ffffff !important;
  font-size: 1.2rem !important;
  margin: 0 !important;
}

dialog.requests-dark-theme .btn-close-modal {
  color: #888888 !important;
  font-size: 1.5rem !important;
}

dialog.requests-dark-theme .btn-close-modal:hover {
  color: #ffffff !important;
}

dialog.requests-dark-theme .form-group label {
  color: #888888 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

dialog.requests-dark-theme input,
dialog.requests-dark-theme select,
dialog.requests-dark-theme textarea {
  background: #0d0d0d !important;
  border: 1px solid #1a1a1a !important;
  color: #ffffff !important;
  border-radius: 4px;
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

dialog.requests-dark-theme input:focus,
dialog.requests-dark-theme select:focus,
dialog.requests-dark-theme textarea:focus {
  border-color: #33cca6 !important;
  box-shadow: 0 0 0 2px rgba(51, 204, 166, 0.15) !important;
  outline: none;
}

/* Request Type Cards */
.req-type-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.req-type-card:hover {
  border-color: #33cca6 !important;
  background: #141414;
  transform: translateY(-2px);
}

.req-type-card h4 {
  margin: 0;
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 600;
}

.req-type-card p {
  margin: 0;
  color: #888888;
  font-size: 0.78rem;
  line-height: 1.4;
}

.req-type-card .category-tag {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  background: #1c1c1c;
  border: 1px solid #2d2d2d;
  color: #aaaaaa;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Timeline Components */
.timeline-item {
  position: relative;
  padding-bottom: 1.2rem;
}

.timeline-dot {
  position: absolute;
  left: -29px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #33cca6;
}

.timeline-dot.created { background: #888888; }
.timeline-dot.submitted { background: #0073ea; }
.timeline-dot.approved { background: #33cca6; }
.timeline-dot.rejected { background: #e2445c; }
.timeline-dot.change_requested { background: #FDAB3D; }

.timeline-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #888888;
  margin-bottom: 0.2rem;
}

.timeline-comment {
  font-size: 0.82rem;
  color: #f8f8f8;
  background: #0d0d0d;
  padding: 0.6rem 0.8rem;
  border: 1px solid #1b1b1b;
  border-radius: 4px;
  margin-top: 0.3rem;
  font-style: italic;
  line-height: 1.4;
}

/* Status Badges */
.req-status-pill {
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
}

.req-status-pill.draft { background: rgba(136, 136, 136, 0.12); color: #888888; border: 1px solid rgba(136, 136, 136, 0.2); }
.req-status-pill.pending { background: rgba(253, 171, 61, 0.12); color: #FDAB3D; border: 1px solid rgba(253, 171, 61, 0.2); }
.req-status-pill.approved { background: rgba(51, 204, 166, 0.12); color: #33cca6; border: 1px solid rgba(51, 204, 166, 0.2); }
.req-status-pill.rejected { background: rgba(226, 68, 92, 0.12); color: #E2445C; border: 1px solid rgba(226, 68, 92, 0.2); }
.req-status-pill.change_requested { background: rgba(253, 171, 61, 0.12); color: #FDAB3D; border: 1px solid rgba(253, 171, 61, 0.2); }

.badge-count {
  background: #e2445c;
  color: white;
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  border-radius: 10px;
  margin-left: 0.25rem;
  font-weight: bold;
}

/* Chart SVGs */
.chart-body svg {
  display: block;
  margin: 0 auto;
}

/* ==========================================
   PAGINATION & BULK-DELETE TOOLBAR
   ========================================== */
[id$="-pagination"] {
  border-top: var(--border-light);
  margin-top: 0.25rem;
  padding: 0.6rem 0.75rem;
  background: var(--raw-surface);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
}

[id$="-pagination"] button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

[id^="bulk-bar-"] {
  border-radius: var(--radius-s);
  animation: fadeIn 0.15s ease;
}

/* Bulk checkbox column */
.bulk-th { 
  background: var(--raw-surface-elevated);
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
}

tbody .bulk-row-cb {
  accent-color: var(--color-primary);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

thead .bulk-th input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
