/* Core Variables & Design System - Aligned with Next.js Dashboard */
:root {
  --background: #080808;
  --surface: #121212;
  --surface-bright: #1c1c1c;
  
  --primary: #E74E4A; /* StrawberryFrog Crimson */
  --primary-gradient: linear-gradient(135deg, #E74E4A 0%, #a32222 100%);
  --scorecard-gradient: linear-gradient(45deg, rgba(47, 91, 92, 0.25) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(231, 78, 74, 0.15) 100%);
  
  --text-main: #ffffff;
  --text-dim: #999999;
  --text-muted: #666666;
  
  /* Glassmorphism */
  --glass-bg: rgba(16, 12, 12, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(231, 78, 74, 0.15);
  
  /* Priorities (1=Low, 5=High) */
  --prio-1: #007aff;
  --prio-2: #34c759;
  --prio-3: #ffcc00;
  --prio-4: #ff9500;
  --prio-5: #ff3b30;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 9999px;
  
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(231, 78, 74, 0.15);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  background-color: #080808;
}

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #812b29 0%, #21100f 40%, #000000 100%);
  z-index: -2;
  pointer-events: none;
}

/* Brand Accent line at top */
.brand-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
  z-index: 999;
  box-shadow: 0 0 15px rgba(231, 78, 74, 0.3);
}

/* Glow spheroids from Dashboard visual elements */
.glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-sphere {
  position: absolute;
  border-radius: var(--radius-round);
  opacity: 0.18;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -150px;
  right: -50px;
}

.glow-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.3) 0%, transparent 70%);
  bottom: -250px;
  left: -150px;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-bright);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Header Styles */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(231, 78, 74, 0.35));
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast) ease;
}

.brand-logo-img:hover {
  transform: scale(1.05);
}

.brand-info h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-main);
}

.tagline {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-top: 0.25rem;
}

.session-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--glass-bg);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.user-avatar i {
  width: 15px;
  height: 15px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-email {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-indicator.online {
  background-color: var(--prio-4);
  box-shadow: 0 0 6px var(--prio-4);
}

/* Single Column Stack Layout (Focused Form Flow) */
.single-column-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1050px;
  margin: 0 auto;
  width: 100%;
}

/* Form Section Cards (Glassmorphism card) */
.form-section {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
}

.form-section:focus-within,
.form-section:has(#clientDropdownMenu:not(.hidden)) {
  z-index: 10;
}

.form-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-left: 3px solid var(--primary);
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.form-section:focus-within::before {
  opacity: 1;
}

.form-section:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 1rem;
  letter-spacing: -0.02em;
}

.step-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(231, 78, 74, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(231, 78, 74, 0.15);
}

/* Team Context Segmented Control Tabs */
.team-context-tabs {
  display: flex;
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.team-tab-btn {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: all var(--transition-normal) ease;
  user-select: none;
}

.team-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.team-tab-btn.active {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(231, 78, 74, 0.2);
}

/* Left Column Sidebar Identity Panel: Styled using dashboard scorecard gradient */
.sidebar-section {
  background: var(--scorecard-gradient);
  border-left: 2px solid var(--primary);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-glow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  box-shadow: 0 0 15px rgba(231, 78, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.profile-glow i {
  width: 20px;
  height: 20px;
}

.sidebar-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sidebar-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.12em;
}

.sidebar-header-text h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.sidebar-explanation {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 1.25rem;
}

.sidebar-watermark-icon {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 140px;
  height: 140px;
  background-image: url('sf-head.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.012;
  pointer-events: none;
}

/* Fields Grid Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.form-group {
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.form-group:last-child {
  margin-bottom: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.required {
  color: var(--primary);
}

.label-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Styled Input wrapper */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.15rem;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
}

input[type="text"],
input[type="email"],
input[type="datetime-local"],
textarea {
  width: 100%;
  padding: 0.95rem 1.15rem 0.95rem 2.85rem;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.925rem;
  outline: none;
  transition: all var(--transition-fast);
}

textarea {
  padding-left: 1.15rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(231, 78, 74, 0.4);
  box-shadow: 0 0 15px rgba(231, 78, 74, 0.1);
  background-color: rgba(0, 0, 0, 0.5);
}

input:focus + .input-icon {
  color: var(--primary);
}

/* Compact Custom Dropdown Styles */
.custom-dropdown {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.dropdown-trigger {
  width: 100%;
  padding: 0.95rem 1.15rem;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.925rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.custom-dropdown:focus-within .dropdown-trigger,
.dropdown-trigger:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(0, 0, 0, 0.5);
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.custom-dropdown:focus-within .dropdown-arrow,
.custom-dropdown:has(.dropdown-menu:not(.hidden)) .dropdown-arrow {
  color: var(--primary);
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 240px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  z-index: 400;
  overflow-y: auto;
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dropdown-item {
  padding: 0.75rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  padding-left: 1.35rem;
}

.dropdown-item.selected {
  background: rgba(231, 78, 74, 0.08);
  color: var(--primary);
  font-weight: 600;
}

/* Dashboard Filter Dropdowns Modifier */
.filter-dropdown {
  min-width: 160px;
  width: auto;
}

.filter-dropdown .dropdown-trigger {
  height: 42px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 2.25rem 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.35);
}

.filter-dropdown .dropdown-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
}

.filter-dropdown:focus-within .dropdown-arrow,
.filter-dropdown:has(.dropdown-menu:not(.hidden)) .dropdown-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.filter-dropdown .dropdown-menu {
  width: max-content;
  min-width: 100%;
}

/* Responder Section Groupings */
.responder-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 0.15rem;
}

.resp-cat-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resp-cat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-round);
  color: var(--text-dim);
  padding: 0.5rem 1.15rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.pill.selected {
  background: rgba(231, 78, 74, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(231, 78, 74, 0.08);
}

.pill.selected::before {
  content: '✓';
  font-weight: 800;
}

/* Type Select Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}

.select-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

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

.select-card .card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all var(--transition-normal);
}

.select-card:hover .card-icon {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.select-card .card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.select-card.selected {
  background: rgba(231, 78, 74, 0.03);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(231, 78, 74, 0.05);
}

.select-card.selected .card-icon {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 0 10px rgba(231, 78, 74, 0.2);
}

.select-card.selected .card-label {
  color: var(--text-main);
}

/* Specification sub-input styling */
.sub-input-wrapper {
  margin-top: 0.65rem;
  animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hidden {
  display: none !important;
}

/* Priority scale slider */
.priority-scale-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  justify-content: space-between;
}

.scale-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-high {
  color: var(--prio-1);
}

.text-low {
  color: var(--text-muted);
}

.priority-buttons {
  display: flex;
  gap: 0.85rem;
  flex: 1;
  justify-content: center;
}

.priority-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.priority-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.priority-btn.selected {
  transform: translateY(-2px);
}

.priority-btn.selected[data-value="1"] {
  background: var(--prio-1); border-color: var(--prio-1); color: #fff;
  box-shadow: 0 0 12px rgba(0, 122, 255, 0.4);
}
.priority-btn.selected[data-value="2"] {
  background: var(--prio-2); border-color: var(--prio-2); color: #fff;
  box-shadow: 0 0 12px rgba(52, 199, 90, 0.4);
}
.priority-btn.selected[data-value="3"] {
  background: var(--prio-3); border-color: var(--prio-3); color: #000;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.4);
}
.priority-btn.selected[data-value="4"] {
  background: var(--prio-4); border-color: var(--prio-4); color: #fff;
  box-shadow: 0 0 12px rgba(255, 149, 0, 0.4);
}
.priority-btn.selected[data-value="5"] {
  background: var(--prio-5); border-color: var(--prio-5); color: #fff;
  box-shadow: 0 0 12px rgba(255, 59, 48, 0.4);
}

/* File Upload Zone */
.dropzone {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px dashed var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 2.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(231, 78, 74, 0.02);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.dropzone-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.dropzone:hover .dropzone-icon {
  color: var(--primary);
  background: rgba(231, 78, 74, 0.1);
  transform: translateY(-1px);
}

.dropzone-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.browse-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.dropzone-subtext {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Upload Progress */
.upload-progress-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  position: relative;
  z-index: 3;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.25rem;
}

.upload-file-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.file-name {
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.file-size {
  color: var(--text-dim);
}

.progress-bar-wrapper {
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-round);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary-gradient);
  border-radius: var(--radius-round);
}

.upload-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-percentage {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--primary);
}

.cancel-upload-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.cancel-upload-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

/* Error Messages */
.error-msg {
  font-size: 0.725rem;
  color: var(--prio-1);
  font-weight: 600;
  display: none;
  margin-top: 0.15rem;
}

.form-group.invalid input[type="text"],
.form-group.invalid input[type="email"],
.form-group.invalid input[type="datetime-local"],
.form-group.invalid textarea,
.form-group.invalid .dropdown-trigger,
.form-group.invalid .custom-date-trigger {
  border-color: var(--prio-1);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

.form-group.invalid .error-msg {
  display: block;
}

/* Form Actions / Submit Container */
.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.submit-btn {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 1.15rem 3rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(249, 60, 60, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-normal);
  letter-spacing: 0.01em;
  width: 100%;
  justify-content: center;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(231, 78, 74, 0.35);
}

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

.submit-btn i {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-normal);
}

.submit-btn:hover i {
  transform: scale(1.1);
}

/* Success Card Overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(24px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.success-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 100%;
  padding: 3rem 2.25rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: cardSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(52, 199, 90, 0.12);
  color: var(--prio-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-badge i {
  width: 32px;
  height: 32px;
}

.success-card h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.success-intro {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.confirm-email {
  color: var(--primary);
  font-weight: 700;
}

/* Receipt Ticket structure */
.receipt-container {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  text-align: left;
  margin: 0.25rem 0;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
}

.receipt-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.receipt-id {
  font-size: 0.8rem;
  font-family: monospace;
  background: rgba(231, 78, 74, 0.08);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.receipt-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  line-height: 1.45;
}

.receipt-label {
  color: var(--text-muted);
  font-weight: 600;
}

.receipt-val {
  color: var(--text-main);
  text-align: right;
  max-width: 65%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.success-actions {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin-top: 0.75rem;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 10px 30px -5px rgba(249, 60, 60, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(231, 78, 74, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

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

.btn-primary i,
.btn-secondary i {
  width: 14px;
  height: 14px;
}

/* Modal for submissions history */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  max-width: 580px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  animation: cardSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

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

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.submissions-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.empty-list-text {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.sub-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

.sub-item-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
}

.sub-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.meta-badge {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.meta-badge.client-badge {
  background: rgba(0, 122, 255, 0.08);
  color: var(--prio-5);
  border-color: rgba(0, 122, 255, 0.12);
}

.meta-badge.prio-badge {
  font-weight: 800;
}

.meta-badge.prio-badge[data-prio="1"] { background: rgba(255, 59, 48, 0.1); color: var(--prio-1); }
.meta-badge.prio-badge[data-prio="2"] { background: rgba(255, 149, 0, 0.1); color: var(--prio-2); }
.meta-badge.prio-badge[data-prio="3"] { background: rgba(255, 204, 0, 0.1); color: var(--prio-3); }
.meta-badge.prio-badge[data-prio="4"] { background: rgba(52, 199, 90, 0.1); color: var(--prio-4); }
.meta-badge.prio-badge[data-prio="5"] { background: rgba(0, 122, 255, 0.1); color: var(--prio-5); }

.sub-item-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.4;
  white-space: pre-wrap;
}

.sub-item-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Custom Date Trigger Component */
.custom-date-trigger {
  width: 100%;
  padding: 0.95rem 1.15rem 0.95rem 2.85rem;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.925rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
  user-select: none;
}

.custom-date-trigger:hover {
  border-color: rgba(231, 78, 74, 0.35);
  background-color: rgba(0, 0, 0, 0.45);
}

.custom-date-trigger:active,
.custom-date-trigger.active {
  border-color: rgba(231, 78, 74, 0.5);
  box-shadow: 0 0 15px rgba(231, 78, 74, 0.15);
  background-color: rgba(0, 0, 0, 0.5);
}

.custom-date-trigger .input-icon {
  position: absolute;
  left: 1.15rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  width: 17px;
  height: 17px;
}

.custom-date-trigger:hover .input-icon,
.custom-date-trigger.active .input-icon {
  color: var(--primary);
}

.date-display-value {
  color: var(--text-main);
}

/* Reusable Custom Calendar Popover */
.calendar-popover {
  position: absolute;
  z-index: 500;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(14, 10, 10, 0.96);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  min-width: 320px;
  max-width: calc(100vw - 20px);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  animation: calendarFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-sizing: border-box;
}

@keyframes calendarFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.calendar-popover.hidden {
  display: none !important;
}

/* Nav header */
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.cal-month-year {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cal-nav-btn:hover {
  background: rgba(231, 78, 74, 0.1);
  border-color: rgba(231, 78, 74, 0.3);
  color: var(--primary);
  transform: translateY(-0.5px);
}

.cal-nav-btn:active {
  transform: translateY(0);
}

.cal-nav-btn i {
  width: 15px;
  height: 15px;
}

/* Weekdays */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

/* Days Grid */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-main);
  transition: all var(--transition-fast);
  user-select: none;
  border: 1px solid transparent;
}

.cal-day:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  transform: scale(1.08);
}

.cal-day.cal-day-muted {
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.35;
}

.cal-day.cal-day-muted:hover {
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.7;
}

.cal-day.today {
  border-color: rgba(231, 78, 74, 0.5);
  color: var(--primary);
  font-weight: 800;
}

.cal-day.selected {
  background: var(--primary-gradient) !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(231, 78, 74, 0.4);
  transform: scale(1.05);
}

/* Time Picker section */
.calendar-time-picker {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.time-label {
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.time-label i {
  width: 13px;
  height: 13px;
}

.time-select-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.time-spinners {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
}

.time-spinners input[type="number"] {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 35px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  padding: 0;
}

/* Remove up/down spinners on input */
.time-spinners input[type="number"]::-webkit-inner-spin-button,
.time-spinners input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.time-spinners input[type="number"] {
  -moz-appearance: textfield;
}

.time-sep {
  color: var(--text-muted);
  font-weight: 800;
  margin: 0 0.25rem;
}

.am-pm-toggle {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.am-pm-toggle:hover {
  background: rgba(231, 78, 74, 0.1);
  border-color: rgba(231, 78, 74, 0.3);
  color: var(--primary);
}

/* Footer buttons */
.calendar-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.95rem;
  margin-top: 0.15rem;
}

.cal-btn-primary,
.cal-btn-secondary {
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cal-btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(231, 78, 74, 0.2);
}

.cal-btn-primary:hover {
  box-shadow: 0 4px 12px rgba(231, 78, 74, 0.35);
  transform: translateY(-0.5px);
}

.cal-btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  border: 1px solid var(--glass-border);
}

.cal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Widescreen Calendar 2-Column Responsive Layout */
@media (min-width: 581px) {
  .calendar-popover {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 0 1.25rem;
    padding: 1.25rem;
  }

  .calendar-nav {
    grid-column: 1;
    grid-row: 1;
  }

  .calendar-weekdays {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0.5rem;
  }

  .calendar-days {
    grid-column: 1;
    grid-row: 3;
  }

  .calendar-time-picker {
    grid-column: 2;
    grid-row: 1 / 3;
    border-top: none;
    padding-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .calendar-footer {
    grid-column: 2;
    grid-row: 3;
    border-top: none;
    padding-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0;
  }

  .calendar-footer .cal-btn-primary,
  .calendar-footer .cal-btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Responders Contact Grid UI */
.responders-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal) ease;
  user-select: none;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.contact-card:active {
  transform: translateY(0);
}

.contact-card.selected {
  background: rgba(231, 78, 74, 0.04);
  border-color: rgba(231, 78, 74, 0.45);
  box-shadow: 0 0 15px rgba(231, 78, 74, 0.1);
}

/* Contact Avatar */
.contact-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  max-width: 34px;
  min-height: 34px;
  max-height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex: 0 0 34px;
  transition: all var(--transition-normal);
  box-sizing: border-box;
}

/* Department Colors */
.avatar-leadership {
  background: rgba(0, 198, 198, 0.1);
  color: #00c6c6;
  border: 1px solid rgba(0, 198, 198, 0.15);
}
.contact-card.selected .avatar-leadership {
  background: #00c6c6;
  color: #000;
}

.avatar-media {
  background: rgba(231, 78, 74, 0.1);
  color: var(--primary);
  border: 1px solid rgba(231, 78, 74, 0.15);
}
.contact-card.selected .avatar-media {
  background: var(--primary-gradient);
  color: #fff;
}

.avatar-ops {
  background: rgba(0, 122, 255, 0.1);
  color: var(--prio-5);
  border: 1px solid rgba(0, 122, 255, 0.15);
}
.contact-card.selected .avatar-ops {
  background: var(--prio-5);
  color: #fff;
}

.avatar-all {
  background: rgba(255, 149, 0, 0.1);
  color: var(--prio-2);
  border: 1px solid rgba(255, 149, 0, 0.15);
}
.contact-card.selected .avatar-all {
  background: var(--prio-2);
  color: #fff;
}

/* Contact Details */
.contact-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.contact-role {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Checkbox Indicator */
.contact-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.contact-card:hover .contact-checkbox {
  border-color: rgba(255, 255, 255, 0.45);
}

.contact-checkbox i,
.contact-checkbox svg {
  width: 10px;
  height: 10px;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast);
  stroke-width: 3.5px !important;
}

.contact-card.selected .contact-checkbox {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(231, 78, 74, 0.4);
}

.contact-card.selected .contact-checkbox i,
.contact-card.selected .contact-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   ACCOUNTS MANAGEMENT BOARD STYLES
   ========================================================================== */

/* Header Nav Buttons */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.nav-btn-link i,
.nav-btn-link svg {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.nav-btn-link:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-0.5px);
}

.nav-btn-link:hover i,
.nav-btn-link:hover svg {
  color: var(--primary);
}

.nav-btn-link.accent {
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(231, 78, 74, 0.2);
}

.nav-btn-link.accent i,
.nav-btn-link.accent svg {
  color: #fff;
}

.nav-btn-link.accent:hover {
  box-shadow: 0 6px 16px rgba(231, 78, 74, 0.35);
  background: linear-gradient(135deg, #f05a56 0%, #b82a2a 100%);
  transform: translateY(-1px);
}

/* Stats Counters Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  opacity: 0.45;
}

.stat-card.total::after { background: var(--prio-1); }
.stat-card.new::after { background: var(--prio-5); }
.stat-card.progress::after { background: var(--prio-4); }
.stat-card.completed::after { background: var(--prio-2); }

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.stat-card.total .stat-icon { color: var(--prio-1); background: rgba(0, 122, 255, 0.08); }
.stat-card.new .stat-icon { color: var(--prio-5); background: rgba(255, 59, 48, 0.08); }
.stat-card.progress .stat-icon { color: var(--prio-4); background: rgba(255, 149, 0, 0.08); }
.stat-card.completed .stat-icon { color: var(--prio-2); background: rgba(52, 199, 90, 0.08); }

.stat-icon i,
.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Filters Panel Styling */
.filters-panel {
  position: relative;
  z-index: 100;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

#boardSearch {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  padding: 0 1.15rem 0 2.75rem;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

#boardSearch:focus {
  outline: none;
  border-color: rgba(231, 78, 74, 0.4);
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 12px rgba(231, 78, 74, 0.1);
}

.filters-group {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
}

.filter-dropdown-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-dropdown-wrapper label {
  font-size: 0.675rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select {
  padding: 0.75rem 2.25rem 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666666' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 11px;
}

.filter-select:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(0, 0, 0, 0.45);
}

.filter-select:focus {
  border-color: rgba(231, 78, 74, 0.4);
}

/* Kanban Board Layout */
.board-kanban-container {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 4rem;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.board-column {
  flex: 1;
  min-width: 320px;
  background: rgba(16, 12, 12, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 600px;
  transition: border-color var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

.board-column.drag-hover {
  border-color: rgba(231, 78, 74, 0.75);
  background: rgba(231, 78, 74, 0.05);
  box-shadow: 0 0 25px rgba(231, 78, 74, 0.18), inset 0 0 15px rgba(231, 78, 74, 0.04);
  animation: columnGlowPulse 1.5s infinite alternate ease-in-out;
}

@keyframes columnGlowPulse {
  0% {
    border-color: rgba(231, 78, 74, 0.4);
    box-shadow: 0 0 15px rgba(231, 78, 74, 0.08), inset 0 0 10px rgba(231, 78, 74, 0.02);
  }
  100% {
    border-color: rgba(231, 78, 74, 0.8);
    box-shadow: 0 0 30px rgba(231, 78, 74, 0.25), inset 0 0 20px rgba(231, 78, 74, 0.06);
  }
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
}

.column-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.column-title h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  letter-spacing: 0.01em;
}

.column-count {
  font-family: 'Outfit', sans-serif;
  font-size: 0.725rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.board-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
  min-height: 200px;
  max-height: 820px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom scrollbar for columns */
.board-cards-list::-webkit-scrollbar {
  width: 6px;
}

.board-cards-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 4px;
}

.board-cards-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: background var(--transition-fast);
}

.board-cards-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Draggable states */
.board-card {
  cursor: grab;
  user-select: none;
}

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

.board-card.dragging {
  opacity: 0.15 !important;
  border: 1.5px dashed var(--glass-border) !important;
  background: rgba(255, 255, 255, 0.01) !important;
  box-shadow: none !important;
  transform: scale(0.96);
}

/* Adjust card layouts when inside narrow columns */
.board-column .board-card .info-grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 0;
}

.board-column .board-card .card-controls-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.board-column .board-card .control-group {
  flex: 1;
  min-width: 0;
}

.board-column .board-card .status-dropdown.custom-dropdown,
.board-column .board-card .assign-dropdown {
  width: 100%;
}

/* Open dropdowns upwards for last cards to prevent clipping at the bottom of the column */
.board-cards-list .board-card:last-child:not(:only-child) .status-dropdown .dropdown-menu,
.board-cards-list .board-card:nth-last-child(2):not(:first-child) .status-dropdown .dropdown-menu {
  top: auto;
  bottom: calc(100% + 6px);
  animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.board-cards-list .board-card:last-child:not(:only-child) .assign-dropdown .assign-menu,
.board-cards-list .board-card:nth-last-child(2):not(:first-child) .assign-dropdown .assign-menu {
  top: auto;
  bottom: calc(100% + 5px);
  animation: slideUp 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.board-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-normal);
  position: relative;
  overflow: visible; /* Required for absolute custom dropdowns */
  z-index: 2;
  animation: cardAppear 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.board-card.urgent-card {
  border-color: rgba(255, 59, 48, 0.25);
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.04);
}

.board-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-left: 3px solid var(--primary);
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.board-card:focus-within::before,
.board-card:hover::before {
  opacity: 1;
}

.board-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.board-card:focus-within,
.board-card:has(.dropdown-menu:not(.hidden)),
.board-card:has(.assign-menu:not(.hidden)) {
  z-index: 50;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
}

.list-row:focus-within,
.list-row:has(.dropdown-menu:not(.hidden)),
.list-row:has(.assign-menu:not(.hidden)) {
  z-index: 500 !important;
}

.board-card-header {
  padding: 0.85rem 1.15rem 0.55rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  user-select: none;
}

.card-id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  gap: 0.65rem;
}

.card-id {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(231, 78, 74, 0.1);
  padding: 0.125rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card-timestamp {
  font-family: 'Outfit', sans-serif;
  font-size: 0.675rem;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.125rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.01em;
}

.card-timestamp svg,
.card-timestamp i {
  width: 11px;
  height: 11px;
  stroke-width: 2.5;
  color: #ffffff !important;
  opacity: 0.85;
}


.card-summary {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
  overflow-wrap: break-word;
  word-break: break-word;
}

.board-card:hover .card-summary {
  color: var(--primary);
}

.board-card-body {
  padding: 0.75rem 1.15rem;
}

/* Info Grid inside Cards */
.info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.muted-email {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 400;
}

.due-val {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.due-val.urgent {
  color: var(--prio-1);
}

.due-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.due-val.urgent .due-icon {
  color: var(--prio-1);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Metadata badges in board cards */
.meta-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
}

.client-badge {
  background: rgba(0, 198, 198, 0.08);
  color: #00c6c6;
  border-color: rgba(0, 198, 198, 0.15);
}

.type-badge {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
}

.prio-badge {
  font-weight: 800;
}

.prio-badge[data-prio="1"] { background: rgba(255, 59, 48, 0.08); color: var(--prio-1); border-color: rgba(255, 59, 48, 0.15); }
.prio-badge[data-prio="2"] { background: rgba(255, 149, 0, 0.08); color: var(--prio-2); border-color: rgba(255, 149, 0, 0.15); }
.prio-badge[data-prio="3"] { background: rgba(255, 204, 0, 0.08); color: var(--prio-3); border-color: rgba(255, 204, 0, 0.15); }
.prio-badge[data-prio="4"] { background: rgba(52, 199, 90, 0.08); color: var(--prio-4); border-color: rgba(52, 199, 90, 0.15); }
.prio-badge[data-prio="5"] { background: rgba(0, 122, 255, 0.08); color: var(--prio-5); border-color: rgba(0, 122, 255, 0.15); }

/* Specifications Expandable Block */
.expanded-details {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.details-text-box strong {
  display: block;
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.details-text-box p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-main);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

.details-file-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--glass-border);
  padding: 0.65rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.details-file-box:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(231, 78, 74, 0.4);
}

.details-file-box:hover .mock-download-link {
  background: rgba(231, 78, 74, 0.1);
  color: var(--primary);
  border-color: rgba(231, 78, 74, 0.3);
}

.details-file-box i,
.details-file-box svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.file-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.attachment-label-text,
.file-size-span {
  flex-shrink: 0;
  white-space: nowrap;
}

.file-name-span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  min-width: 0;
  color: var(--text-main);
  font-weight: 600;
}


.mock-download-link {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-fast);
}

.mock-download-link:hover {
  background: rgba(231, 78, 74, 0.1);
  color: var(--primary);
  border-color: rgba(231, 78, 74, 0.3);
}

/* Card Control Selectors Row */
.card-controls-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-top: 0;
  border-top: none;
}

.expanded-details:not(.hidden) ~ .card-controls-row {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 1.25rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.1rem;
}

/* Status Selector custom Dropdown */
.status-dropdown.custom-dropdown {
  min-width: 120px;
  width: auto;
}

.status-trigger {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 1.5px solid transparent !important;
  transition: all var(--transition-fast);
  user-select: none;
  width: 100%;
}

.status-trigger .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-trigger .status-text {
  flex-grow: 1;
}

.status-trigger i,
.status-trigger svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.status-trigger.status-new {
  background: rgba(255, 59, 48, 0.08);
  color: var(--prio-5);
  border-color: rgba(255, 59, 48, 0.15);
}
.status-trigger.status-new .status-dot {
  background: var(--prio-5);
  box-shadow: 0 0 6px var(--prio-5);
}

.status-trigger.status-in-progress {
  background: rgba(255, 149, 0, 0.08);
  color: var(--prio-4);
  border-color: rgba(255, 149, 0, 0.15);
}
.status-trigger.status-in-progress .status-dot {
  background: var(--prio-4);
  box-shadow: 0 0 6px var(--prio-4);
}

.status-trigger.status-completed {
  background: rgba(52, 199, 90, 0.08);
  color: var(--prio-2);
  border-color: rgba(52, 199, 90, 0.15);
}
.status-trigger.status-completed .status-dot {
  background: var(--prio-2);
  box-shadow: 0 0 6px var(--prio-2);
}

.status-trigger:hover {
  filter: brightness(1.15);
}

.status-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.status-option .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-new-dot { background: var(--prio-5); }
.status-progress-dot { background: var(--prio-4); }
.status-completed-dot { background: var(--prio-2); }

/* Assign Contact dropdown checklist selector */
.assign-dropdown {
  position: relative;
}

.assign-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  width: 100%;
}

.assign-trigger:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.15);
}

.assignee-avatars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  overflow: hidden;
}

.no-assignees {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-left: 0.15rem;
}

.assignee-avatars .contact-avatar {
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 800;
  flex: 0 0 20px;
}

.assign-add-btn {
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
  transition: all var(--transition-fast);
  flex: 0 0 20px;
}

.assign-trigger:hover .assign-add-btn {
  color: var(--primary);
  border-color: rgba(231, 78, 74, 0.35);
  background: rgba(231, 78, 74, 0.05);
}

.assign-add-btn i,
.assign-add-btn svg {
  width: 11px;
  height: 11px;
}

.assign-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: auto;
  right: 0;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  z-index: 100;
  padding: 0.75rem 1rem;
  animation: slideDown 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-height: none;
  overflow: visible;
}

.assign-menu-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
}

.assign-search-wrapper {
  margin-bottom: 0.5rem;
  width: 100%;
}

.assign-search-input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

.assign-search-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.assign-category-header {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0 0.15rem 0;
  margin-top: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.assign-category-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.assign-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  padding-right: 0.25rem;
}

/* Custom assign checkboxes list */
.assign-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  user-select: none;
  padding: 0.15rem 0;
}

.assign-option input[type="checkbox"] {
  display: none;
}

.assign-option .checkbox-custom {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  display: inline-block;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.assign-option input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.assign-option input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.assign-option:hover {
  color: var(--text-main);
}

.assign-option:hover .checkbox-custom {
  border-color: rgba(255, 255, 255, 0.4);
}

.contact-avatar.mini {
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  min-height: 18px;
  max-height: 18px;
  border-radius: 3px;
  font-size: 0.5rem;
  font-weight: 800;
  flex: 0 0 18px;
}

.assign-name {
  flex-grow: 1;
}

.assign-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.55rem;
}

.btn-assign-save {
  background: var(--primary-gradient);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-assign-save:hover {
  filter: brightness(1.1);
  transform: translateY(-0.5px);
}

/* Card Action Footer */
.board-card-footer {
  padding: 0.55rem 1.15rem 0.75rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-btn-toggle {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-btn-toggle:hover {
  color: var(--text-main);
}

.card-btn-toggle i,
.card-btn-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.card-btn-edit {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-btn-edit i,
.card-btn-edit svg {
  width: 12px;
  height: 12px;
}

.card-btn-edit:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-0.5px);
}

.card-btn-edit:active {
  transform: translateY(0);
}

.card-btn-delete {
  background: rgba(255, 59, 48, 0.04);
  border: 1px solid rgba(255, 59, 48, 0.1);
  color: var(--prio-1);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-btn-delete i,
.card-btn-delete svg {
  width: 12px;
  height: 12px;
}

.card-btn-delete:hover {
  background: var(--prio-1);
  color: #fff;
  border-color: var(--prio-1);
  box-shadow: 0 4px 10px rgba(255, 59, 48, 0.25);
  transform: translateY(-0.5px);
}

.card-btn-delete:active {
  transform: translateY(0);
}

/* Empty State / Not found */
.empty-list-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  gap: 1rem;
}

.empty-list-state i,
.empty-list-state svg {
  width: 44px;
  height: 44px;
  opacity: 0.6;
}

.empty-list-state p {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ==========================================================================
   ACCOUNTS BOARD RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 992px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .filters-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  
  .search-wrapper {
    max-width: 100%;
  }

  .view-toggle-group {
    display: flex !important;
    width: 100% !important;
  }
  
  .view-toggle-btn {
    flex: 1 !important;
  }

  .filters-group {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .status-dropdown {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filters-group {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .board-card-header {
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
  }

  .board-card-body {
    padding: 1rem 1.25rem;
  }

  .board-card-footer {
    padding: 0.5rem 1.25rem 1.25rem 1.25rem;
  }

  .priority-scale-container {
    gap: 0.5rem;
    padding: 0.6rem 0.5rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .priority-buttons {
    gap: 0.35rem;
    flex-wrap: nowrap;
    justify-content: center;
    flex: none;
  }

  .priority-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .scale-label {
    font-size: 0.65rem;
  }

  .team-context-tabs {
    width: 100% !important;
    display: flex !important;
  }

  .team-tab-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 0.5rem 0.25rem !important;
    font-size: 0.775rem !important;
  }

  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .file-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dropzone {
    padding: 1.5rem 1rem;
  }

  .dropzone-subtext {
    font-size: 0.65rem;
    text-align: center;
    line-height: 1.4;
  }
}

/* ==========================================================================
   VIEW TOGGLE & LIST VIEW STYLES
   ========================================================================== */

/* View Toggle Switch */
.view-toggle-group {
  display: inline-flex;
  align-items: center;
  height: 42px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.5rem;
  padding: 0 0.85rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  font-family: inherit;
}

.view-toggle-btn i,
.view-toggle-btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

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

.view-toggle-btn.active {
  color: var(--text-main);
  background: var(--primary);
  box-shadow: 0 0 12px rgba(231, 78, 74, 0.4);
}

.view-toggle-btn.active i,
.view-toggle-btn.active svg {
  opacity: 1;
}

/* List View Layout */
.board-list-container {
  width: 100%;
  margin-bottom: 4rem;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.board-list-container.hidden {
  display: none;
}

.list-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: rgba(16, 12, 12, 0.85);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  padding: 0.75rem 1.25rem 1.25rem 1.25rem;
  /* Add padding bottom to accommodate open dropdowns on the last row */
  padding-bottom: 140px;
  margin-bottom: -140px;
}

.list-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0 1rem;
  margin-top: -1rem;
  text-align: left;
}

.list-table th {
  padding: 1.25rem 1.25rem 0.5rem 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.list-row td {
  padding: 1.25rem;
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  vertical-align: middle;
  position: relative;
  overflow: visible;
  transition: all var(--transition-normal);
}

.list-row td:first-child {
  border-left: 1px solid var(--glass-border);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  position: relative;
  padding-left: 2rem;
}

.list-row td:last-child {
  border-right: 1px solid var(--glass-border);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* Premium Left Accent indicator (matching board card::before) */
.list-row td:first-child::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-left: 3px solid var(--primary);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 2;
}

.list-row:hover td {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.15);
}

.list-row:hover td:first-child::before {
  opacity: 1;
}

/* Urgent indicators */
.list-row.urgent-row td:first-child::before {
  opacity: 1;
  background: var(--prio-1);
}

.list-row.urgent-row td {
  border-color: rgba(255, 59, 48, 0.15);
  background: rgba(255, 59, 48, 0.015);
}

.list-row.urgent-row:hover td {
  background: rgba(255, 59, 48, 0.035);
  border-color: rgba(255, 59, 48, 0.25);
}

/* Stacking context for dropdowns inside table rows */
.list-row:has(.dropdown-menu:not(.hidden)) {
  position: relative;
  z-index: 10;
}

.list-row:has(.dropdown-menu:not(.hidden)) td {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Expand Collapse Row Connective design */
.list-row.row-expanded td {
  border-bottom-color: transparent;
  background: rgba(255, 255, 255, 0.035);
}

.list-row.row-expanded td:first-child {
  border-bottom-left-radius: 0;
}

.list-row.row-expanded td:last-child {
  border-bottom-right-radius: 0;
}

.list-mobile-details-cell {
  display: none;
}

/* Expanded Detail Row */
.list-expanded-row td {
  padding: 0 2rem 2rem 2rem;
  background: rgba(8, 8, 8, 0.55) !important;
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  border-top: none;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  overflow: visible;
  transition: all var(--transition-fast);
}

.list-expanded-row.hidden {
  display: none;
}

.expanded-row-content {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.expanded-row-meta-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  padding: 0.25rem 0.5rem 1rem 0.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.meta-grid-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.meta-grid-item strong {
  font-size: 0.725rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.list-meta-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.expanded-row-content .details-text-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1.15rem;
  border-radius: var(--radius-sm);
}

.expanded-row-content .details-text-box strong {
  display: block;
  font-size: 0.725rem;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
  letter-spacing: 0.05em;
}

.expanded-row-content .details-text-box p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: pre-wrap;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: break-word;
}

.expanded-row-content .details-file-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(231, 78, 74, 0.03);
  border: 1px dashed rgba(231, 78, 74, 0.15);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm);
}

.expanded-row-content .details-file-box i,
.expanded-row-content .details-file-box svg {
  color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.expanded-row-content .details-file-box .file-meta {
  flex-grow: 1;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.expanded-row-content .details-file-box .file-meta strong {
  color: var(--text-main);
}

.expanded-row-content .details-file-box .mock-download-link {
  color: var(--text-dim);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.expanded-row-content .details-file-box .mock-download-link:hover {
  color: var(--primary);
}

.expanded-row-content .list-expanded-due {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.expanded-row-content .list-expanded-due strong {
  font-size: 0.725rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.expanded-row-content .list-expanded-due .due-val {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.expanded-row-content .list-expanded-due .due-val i,
.expanded-row-content .list-expanded-due .due-val svg {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
}

.expanded-row-content .list-expanded-due .due-val.urgent {
  background: rgba(255, 59, 48, 0.08);
  border-color: rgba(255, 59, 48, 0.25);
  color: var(--prio-1);
}

.expanded-row-content .list-expanded-due .due-val.urgent i,
.expanded-row-content .list-expanded-due .due-val.urgent svg {
  color: var(--prio-1);
}

/* Summary / Title cell */
.td-summary {
  cursor: pointer;
}

.list-summary-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.list-row:hover .list-summary-title {
  color: var(--primary);
}

/* Card ID design matching board cards */
.list-row .card-id {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(231, 78, 74, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid rgba(231, 78, 74, 0.15);
}

/* Requester info matching board card style */
.list-requester-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.list-requester-info .requester-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.list-requester-info .requester-email {
  font-family: 'Outfit', sans-serif;
  font-size: 0.725rem;
  color: var(--text-dim);
}

/* Needed By Date / Timestamp matching board card styling */
.list-timestamp {
  font-family: 'Outfit', sans-serif;
  font-size: 0.675rem;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.01em;
}

.list-timestamp i,
.list-timestamp svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.5;
  color: #ffffff !important;
  opacity: 0.85;
}

.list-timestamp.urgent {
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.15);
  color: var(--prio-1);
}

.list-timestamp.urgent i,
.list-timestamp.urgent svg {
  color: var(--prio-1) !important;
}

/* Dropdowns sizing adjustments inside table rows */
.list-row .custom-dropdown .dropdown-trigger {
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
}

.list-row .status-dropdown.custom-dropdown {
  min-width: 130px;
}

.list-row .assign-dropdown.custom-dropdown {
  min-width: 90px;
}

/* Action buttons */
.td-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.list-btn-toggle,
.list-btn-delete,
.list-btn-edit {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.list-btn-toggle:hover,
.list-btn-edit:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.list-btn-toggle:hover .list-toggle-icon {
  transform: scale(1.1);
}

.list-btn-delete:hover {
  background: rgba(231, 78, 74, 0.1);
  border-color: rgba(231, 78, 74, 0.3);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(231, 78, 74, 0.15);
}

.list-toggle-icon,
.toggle-icon,
.list-btn-toggle i,
.list-btn-toggle svg,
.card-btn-toggle i,
.card-btn-toggle svg {
  transform-origin: center !important;
  transition: transform var(--transition-fast) !important;
}

/* Auto-rotate chevrons when cards or rows are expanded */
.row-expanded .list-toggle-icon,
.row-expanded .toggle-icon,
.row-expanded .list-btn-toggle svg,
.row-expanded .list-btn-toggle i,
.row-expanded .card-btn-toggle svg,
.row-expanded .card-btn-toggle i {
  transform: rotate(180deg) !important;
}

.list-toggle-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
  transform-origin: center !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

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

/* Media Query Adaptations for List Table */
@media (max-width: 1024px) {
  .list-table-wrapper {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .list-row:has(.dropdown-menu:not(.hidden)) td {
    background: inherit;
  }
}

/* --- Authentication & Authorization Styles --- */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #812b29 0%, #21100f 50%, #000000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.auth-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px rgba(231, 78, 74, 0.5));
}

.auth-card h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.auth-copy {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.google-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #1a1a1a;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.google-signin-btn:hover {
  background: #f2f2f2;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.google-signin-btn.outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.google-signin-btn.outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.google-signin-btn.text {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 0.5rem;
}

.google-signin-btn.text:hover {
  color: #ffffff;
  background: transparent;
}

.google-icon {
  width: 18px;
  height: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'Outfit', sans-serif;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-error-msg {
  margin-top: 1rem;
  color: var(--prio-1);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
  padding: 0.6rem;
  border-radius: 8px;
}

.auth-denied-icon {
  font-size: 3rem;
  color: var(--prio-1);
  margin-bottom: 1.25rem;
  display: inline-flex;
}

.auth-denied-icon svg {
  width: 54px;
  height: 54px;
}

.auth-user-info {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.auth-user-info span {
  font-weight: 700;
  color: #ffffff;
}

.auth-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Header Profile CSS */
.header-profile-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.8rem 0.4rem 1rem;
  border-radius: 30px;
}

.header-user-email {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 180px;
}

.btn-header-signout {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.btn-header-signout:hover {
  color: var(--primary);
  background: rgba(231, 78, 74, 0.1);
}

.btn-header-signout svg {
  width: 15px;
  height: 15px;
}

/* Show edit button only when request is expanded */
.card-btn-delete,
.card-btn-edit {
  display: none !important;
}
.board-card.row-expanded .card-btn-edit {
  display: flex !important;
}

.list-btn-delete,
.list-btn-edit {
  display: none !important;
}
.list-row.row-expanded .list-btn-edit {
  display: inline-flex !important;
}

/* Custom Delete Modal */
.delete-modal-overlay {
  animation: fadeIn 0.2s ease-out forwards;
}

.delete-modal-card {
  max-width: 440px !important;
  animation: cardSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delete-modal-body {
  padding: 2rem 1.5rem 1.5rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.delete-warning-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3b30;
  margin-bottom: 1.25rem;
}

.delete-warning-icon svg {
  width: 28px;
  height: 28px;
}

.delete-warning-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.delete-warning-text strong {
  color: #fff;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.delete-warning-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.delete-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.15);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.delete-modal-footer button {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.delete-modal-footer .btn-cancel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
}

.delete-modal-footer .btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.delete-modal-footer .btn-delete-confirm {
  background: #ff3b30;
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
}

.delete-modal-footer .btn-delete-confirm:hover {
  background: #ff453a;
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.35);
  transform: translateY(-0.5px);
}

.delete-modal-footer .btn-delete-confirm:active {
  transform: translateY(0);
}

.delete-modal-footer .btn-delete-confirm svg {
  width: 14px;
  height: 14px;
}

.delete-modal-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.2s ease-in;
}

.delete-modal-card.slide-down {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.2s ease-in;
}

/* ==========================================================================
   MOBILE & ACCESSIBILITY RESPONSIVE ADAPTATIONS (PORTRAIT/LANDSCAPE)
   ========================================================================== */

/* 1. General Viewport Improvements */
body::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
}

/* 2. Smaller Padding on Container on Small Screens */
@media (max-width: 600px) {
  .container {
    padding: 1.5rem 1rem !important;
  }
}

/* 3. Header Adaptation on Mobile (Prevents horizontal overflow and clipping) */
@media (max-width: 650px) {
  .app-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.25rem !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1.5rem !important;
  }
  .brand {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .brand-logo-img {
    width: 48px !important;
    height: 48px !important;
  }
  .brand-info h1 {
    font-size: 1.45rem !important;
    text-align: center !important;
  }
  .brand-info p {
    text-align: center !important;
  }
  .header-nav {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }
  .header-profile-badge {
    padding: 0.5rem 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .header-user-email {
    max-width: 120px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .nav-btn-link {
    font-size: 0.825rem !important;
    padding: 0.5rem 0.85rem !important;
  }
}

/* 4. Form Sections on Mobile */
@media (max-width: 580px) {
  .form-section {
    padding: 1.5rem !important;
    border-radius: var(--radius-md) !important;
  }
  .sidebar-header {
    gap: 0.75rem !important;
  }
  .sidebar-header-text h3 {
    font-size: 1.1rem !important;
  }
  .sidebar-badge {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.45rem !important;
  }
  .sidebar-explanation {
    font-size: 0.825rem !important;
    margin-bottom: 1.5rem !important;
  }
}

/* 5. Custom Reusable Calendar Mobile Bottom Sheet (Transforms calendar overlay) */
@media (max-width: 480px) {
  .calendar-popover {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7) !important;
    z-index: 99999 !important;
    animation: slideUpMobile 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }
  
  @keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to { transform: none; }
  }
  
  /* Ensure proper size constraints for calendar grid inside bottom sheet */
  .calendar-days {
    gap: 2px !important;
  }
  .calendar-days span {
    height: 38px !important;
    width: 38px !important;
    line-height: 38px !important;
    font-size: 0.85rem !important;
  }
  .calendar-time-picker {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
  }
  .calendar-time-picker input {
    width: 50px !important;
    height: 35px !important;
    font-size: 0.9rem !important;
  }
}

/* 6. Board & Columns mobile optimizations */
@media (max-width: 768px) {
  .board-kanban-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 1rem !important;
  }
  .board-column {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  /* Card control dropdowns trap within columns on mobile, ensure they show */
  .board-card-body {
    overflow: visible !important;
  }

  /* Stack dropdown filters vertically to prevent screen overflow */
  .filters-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
    width: 100% !important;
  }
  
  .filter-dropdown-wrapper {
    width: 100% !important;
  }
  
  .filter-dropdown {
    width: 100% !important;
  }
  
  .filter-dropdown .dropdown-trigger {
    width: 100% !important;
    justify-content: space-between !important;
  }
}

/* 7. Success popup ticket responsive view */
@media (max-width: 480px) {
  .success-card {
    padding: 2rem 1.25rem !important;
    gap: 1rem !important;
  }
  .success-card h2 {
    font-size: 1.35rem !important;
  }
  .receipt-container {
    padding: 1rem !important;
  }
  .receipt-header h4 {
    font-size: 0.85rem !important;
  }
  .receipt-header p {
    font-size: 0.65rem !important;
  }
  .receipt-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding-bottom: 0.5rem !important;
  }
  .receipt-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  .receipt-label {
    font-size: 0.725rem !important;
  }
  .receipt-value {
    font-size: 0.825rem !important;
    text-align: left !important;
  }
}

/* 8. Auth / Login viewport updates */
@media (max-width: 480px) {
  .auth-overlay {
    padding: 1.25rem !important;
  }
  .auth-card {
    padding: 2rem 1.25rem !important;
    border-radius: 16px !important;
  }
  .auth-card h2 {
    font-size: 1.35rem !important;
  }
  .auth-subtitle {
    font-size: 0.75rem !important;
  }
  .auth-copy {
    font-size: 0.8rem !important;
  }
}

/* 9. Mobile Board Tabs switcher styles */
@media (max-width: 768px) {
  .mobile-board-tabs {
    display: flex !important;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    gap: 0.25rem;
  }
  .board-tab-btn {
    flex: 1;
    background: transparent;
    border: 1px solid transparent !important;
    color: var(--text-dim);
    padding: 0.65rem 0.5rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
  }
  .board-tab-btn.active {
    background: rgba(231, 78, 74, 0.1) !important;
    border-color: rgba(231, 78, 74, 0.25) !important;
    color: #fff;
    box-shadow: var(--shadow-glow);
  }
  
  /* Show only the active column on mobile */
  .board-kanban-container {
    overflow-x: hidden !important; /* disable horizontal scroll */
  }
  .board-column {
    display: none !important;
  }
  
  .board-kanban-container.show-New #col-New,
  .board-kanban-container.show-InProgress #col-InProgress,
  .board-kanban-container.show-Completed #col-Completed {
    display: flex !important;
  }
}

/* 10. List view responsive table card transformations */
@media (max-width: 768px) {
  .list-table-wrapper {
    padding: 1rem !important;
    margin-bottom: 0 !important;
    padding-bottom: 1rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .list-table, 
  .list-table thead, 
  .list-table tbody, 
  .list-table th, 
  .list-table td, 
  .list-table tr {
    display: block !important;
    width: 100% !important;
  }
  
  .list-table {
    min-width: 100% !important;
  }
  
  .list-table thead {
    display: none !important; /* hide header rows */
  }
  .list-row {
    box-sizing: border-box !important;
    background: var(--surface) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    box-shadow: var(--shadow-soft) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    position: relative !important;
    overflow: visible !important;
    transition: background var(--transition-normal), border-color var(--transition-normal), border-radius var(--transition-normal), margin-bottom var(--transition-normal) !important;
  }
  /* Card Accent line on Mobile List Card */
  .list-row::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-left: 4px solid var(--primary);
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal), border-radius var(--transition-normal);
    z-index: 10;
  }

  .list-row:hover::before {
    opacity: 1;
  }

  .list-row.urgent-row::before {
    opacity: 1;
    background: var(--prio-1) !important;
  }

  .list-row.urgent-row {
    border-color: rgba(255, 59, 48, 0.25) !important;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.04) !important;
  }

  /* Keep single continuous card styling for mobile list row */
  .list-row.row-expanded {
    border-bottom-left-radius: var(--radius-md) !important;
    border-bottom-right-radius: var(--radius-md) !important;
    margin-bottom: 1.25rem !important;
    border-bottom: 1px solid var(--glass-border) !important;
  }

  .list-row.row-expanded::before {
    border-bottom-left-radius: var(--radius-md) !important;
  }
  
  .list-row td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    text-align: right !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .list-row td[data-label] {
    padding: 0.5rem 0 !important; /* spacious padding between fields */
  }

  /* Align requester text (name & email) to the right on mobile */
  .list-row .list-requester-info {
    align-items: flex-end !important;
    text-align: right !important;
    gap: 0.45rem !important;
  }

  .list-row .list-requester-info .requester-name {
    font-size: 0.925rem !important;
  }

  .list-row .list-requester-info .requester-email {
    font-size: 0.775rem !important;
  }
  
  /* Add label prefix to each table cell on mobile */
  .list-row td[data-label]::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.725rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
  }
  
  .list-row td:first-child {
    border-radius: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
  }
  
  .list-row td:first-child::before {
    display: none !important;
  }
  
  /* Flex order definitions to layout list row card exactly like the board card */
  .list-row td.summary-cell {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
    text-align: left !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding-bottom: 0.5rem !important;
    order: 1 !important;
  }

  .list-mobile-details-cell {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    order: 2 !important;
    text-align: left !important;
  }

  .list-mobile-details-cell.hidden {
    display: none !important;
  }

  .list-mobile-details-cell .expanded-row-content {
    width: 100% !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0 !important;
    margin: 1rem 0 1.25rem 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.35rem !important;
    align-items: stretch !important;
    text-align: left !important;
  }

  .list-mobile-details-cell .details-text-box,
  .list-mobile-details-cell .details-file-box {
    width: 100% !important;
    text-align: left !important;
  }

  .list-mobile-details-cell .details-text-box *,
  .list-mobile-details-cell .details-file-box * {
    text-align: left !important;
  }

  .list-row td[data-label="Requester"] {
    order: 3 !important;
  }

  .list-row td[data-label="Date Created"] {
    order: 4 !important;
  }

  .list-row td[data-label="Status"] {
    order: 5 !important;
  }

  .list-row td[data-label="POC"] {
    order: 6 !important;
  }
  
  .list-row td.td-actions-cell {
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding-top: 0.75rem !important;
    margin-top: 0.25rem !important;
    justify-content: flex-end !important;
    order: 7 !important;
  }

  .list-row td.td-actions-cell::before {
    display: none !important;
  }
  
  /* Hide the separate details row entirely on mobile */
  .list-expanded-row {
    display: none !important;
  }
  
  .list-expanded-row td {
    display: none !important;
  }

  .expanded-row-meta-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 0.25rem 0 1rem 0 !important; /* remove horizontal padding */
  }

  .expanded-row-meta-grid .meta-grid-item {
    align-items: flex-start !important;
    text-align: left !important;
  }
}

/* Custom CC Autocomplete Dropdown */
.cc-history-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 162px; /* Up to 4 rows max */
  overflow-y: auto;
  background-color: rgba(26, 26, 32, 0.98);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  
  /* Flexbox settings for horizontal wrapping */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  box-sizing: border-box;
}
.cc-history-item {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.cc-history-item:hover, .cc-history-item.selected {
  background-color: rgba(231, 78, 74, 0.15);
  border-color: rgba(231, 78, 74, 0.4);
  color: var(--text-main);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(231, 78, 74, 0.15);
}

/* Mobile Optimizations for CC Autocomplete Dropdown */
@media (max-width: 576px) {
  .cc-history-dropdown {
    padding: 0.6rem;
    gap: 0.4rem;
    max-height: 152px; /* Up to 4 rows max on mobile */
  }
  .cc-history-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 5px;
    max-width: 100%;
  }
}

/* Page Loader Styles */
.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  width: 100%;
  min-height: 320px;
  text-align: center;
  box-sizing: border-box;
}

.page-loader .spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(255, 255, 255, 0.04);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(231, 78, 74, 0.1);
}

.page-loader p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Auth Body Scroll Lock */
.auth-body {
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  position: fixed;
}
