/* --- NexusTask & CMP Premium Core Styling System --- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Vibrant & Harmonious Theme Colors - Inspired by Premium UI */
  --bg-dark: #030712; /* Deep pitch dark blue-black */
  --bg-card: rgba(10, 15, 30, 0.45); /* Elegant glass card */
  --border-color: rgba(255, 255, 255, 0.08); /* Sleek micro border */
  --border-focus: rgba(0, 240, 255, 0.8);   /* Radiant cyan focus */
  
  --color-primary: #00f0ff;       /* Neon Cyan */
  --color-primary-glow: rgba(0, 240, 255, 0.35);
  --color-accent-blue: #3b82f6;   /* Rich Electric Blue */
  --color-accent-purple: #8b5cf6; /* Royal Purple */
  --color-accent-orange: #f97316; /* Sunset Orange */
  --color-accent-gold: #fbbf24;   /* Radiant Gold */
  
  --color-text-main: #f8fafc;     /* Brightest crisp white */
  --color-text-muted: #94a3b8;    /* Calm slate gray */
  --color-text-dark: #64748b;     /* Darker slate */

  /* Workflow Status Accents */
  --status-intake-bg: rgba(59, 130, 246, 0.12);
  --status-intake-text: #60a5fa;
  
  --status-sourcing-bg: rgba(139, 92, 246, 0.12);
  --status-sourcing-text: #a78bfa;
  
  --status-pending-bg: rgba(249, 115, 22, 0.12);
  --status-pending-text: #fb923c;
  
  --status-confirmed-bg: rgba(16, 185, 129, 0.12);
  --status-confirmed-text: #34d399;

  /* Fonts */
  --font-sans: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'Outfit', 'Inter', sans-serif;

  /* Standard Border Radius & Premium Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--color-text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  letter-spacing: -0.2px;
}

/* Ambient Radial Glow Elements - Incredibly vivid */
.bg-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(150px);
  opacity: 0.25;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--color-primary), transparent 70%);
  top: -300px;
  left: -200px;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--color-accent-purple), transparent 70%);
  bottom: -300px;
  right: -200px;
}

.bg-glow-3 {
  background: radial-gradient(circle, var(--color-accent-orange), transparent 70%);
  top: 40%;
  left: 30%;
  width: 600px;
  height: 600px;
  opacity: 0.12;
}

/* =========================================================================
     🌌 Main Layout Container (Sidebar + Content)
     ========================================================================= */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background: rgba(3, 7, 18, 0.6);
  border-right: 1px solid var(--border-color);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  padding: 0 8px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-blue));
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px var(--color-primary-glow);
}

.logo-area h1 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-main);
  transform: translateX(4px);
}

.nav-item.active {
  background: rgba(0, 240, 255, 0.06);
  color: var(--color-primary);
  border-color: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 4px;
  background: var(--color-primary);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--color-primary);
}

.sidebar-spacer {
  flex-grow: 1;
}

/* User Profile Badge in Sidebar */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 20px;
  backdrop-filter: blur(10px);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-purple));
  color: #030712;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Content Area */
.main-content {
  flex-grow: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.page-title h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 4px;
}

.page-title p {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-sm);
  padding: 8px 16px;                         /* Compact padding */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #0284c7);
  color: #040b16;                            /* High contrast dark text on bright neon */
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.45);
}

/* Data Table / Pipeline View */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.pipeline-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pipeline-table th {
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.pipeline-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.table-row {
  transition: var(--transition-smooth);
  cursor: pointer;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-row:last-child td {
  border-bottom: none;
}

.request-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.request-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-intake {
  background: var(--status-intake-bg);
  color: var(--status-intake-text);
}
.status-intake .status-indicator { background: var(--status-intake-text); }

.status-sourcing {
  background: var(--status-sourcing-bg);
  color: var(--status-sourcing-text);
}
.status-sourcing .status-indicator { background: var(--status-sourcing-text); }

.status-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
}
.status-pending .status-indicator { background: var(--status-pending-text); }

.status-confirmed {
  background: var(--status-confirmed-bg);
  color: var(--status-confirmed-text);
}
.status-confirmed .status-indicator { background: var(--status-confirmed-text); }

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: rgba(8, 12, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  overflow: hidden;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

.modal-overlay.hidden .modal-content {
  transform: translateY(30px) scale(0.98);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28); /* Accessible high contrast border */
  border-radius: var(--radius-sm);
  padding: 8px 12px;                          /* Compact high data density */
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2); /* Clear active focus ring */
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
:root {
  --bg-dark: #0f111a;
  --bg-card: rgba(30, 34, 45, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f8f9fa;
  --text-muted: #a0a6b5;
  --accent-color: #6366f1;
  --accent-hover: #4f46e5;
  
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --orange-color: #f97316;

  --font-family: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  /* Subtle animated gradient background */
  background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
              radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.05), transparent 25%);
  background-color: var(--bg-dark);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

.text-accent { color: var(--accent-color); }
.text-success { color: var(--success-color); }
.text-muted { color: var(--text-muted); }

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

:root {
  --bg-dark: #040b16;
  --bg-card: rgba(10, 25, 47, 0.65);
  --card-border: rgba(255, 255, 255, 0.18); /* Crisper, accessible borders */
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;                     /* High-contrast slate text */
  --accent-color: #00f0ff;                    /* Cohesive neon cyan accent */
  --accent-hover: #38bdf8;
  
  --success-color: #10b981;
  --warning-color: #fbbf24;                  /* Brighter amber warning */
  --danger-color: #f87171;                   /* Brighter red for error states */
  --orange-color: #f97316;

  --font-family: 'Inter', 'Open Sans', sans-serif;
  --transition: all 0.15s ease-in-out;        /* Snappy 0.15s transition */
}

/* Accent Utilities */
.text-accent { color: var(--accent-color); }
.text-success { color: var(--success-color); }
.text-muted { color: var(--text-muted); }

.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

/* View As Dropdown Layout */
.view-as-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 12px;                         /* High Density */
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
}

.view-as-container label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.view-as-container select {
  background: transparent;
  color: var(--text-main);
  border: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.view-as-container select option {
  background: #040b16;
}

/* Dashboard Container */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.hidden {
  display: none !important;
}

/* High-Density Glass Card */
/* High-Density Glass Card with Premium Styling */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.3);
}

.glass-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text-main);
  letter-spacing: -0.3px;
}

.glass-card .subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

/* Dashboard Layout Grids */
.manager-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;                                  /* Compact spacing */
}

.workload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Workload Metrics */
.metrics-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 8px;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.metric-value {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.2));
}

.metric-label {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* High-Density Aging Buckets */
.aging-buckets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bucket {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.bucket:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.bucket-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
}

.bucket-value {
  font-weight: 700;
  font-size: 14px;
}

.bucket-green { border-left-color: var(--status-confirmed-text); color: var(--status-confirmed-text); }
.bucket-yellow { border-left-color: var(--color-accent-gold); color: var(--color-accent-gold); }
.bucket-orange { border-left-color: var(--color-accent-orange); color: var(--color-accent-orange); }
.bucket-red { border-left-color: #ef4444; color: #ef4444; }
.bucket-critical { border-left-color: #ef4444; color: #ef4444; box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.1); }

/* High-Density Ticket Lists */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;                         /* High Density spacing */
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: default;
}

.ticket-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
}

.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ticket-title {
  font-weight: 600;
  color: var(--text-main);
  font-size: 14px;
}

.ticket-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

.status-badge {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-working {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-section {
  animation: fadeIn 0.2s ease-out forwards;
}

/* Charts Layout Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.chart-card {
  display: flex;
  flex-direction: column;
}

.chart-container {
  position: relative;
  height: 260px;                              /* Compact height */
  width: 100%;
  margin-top: 8px;
}

/* =========================================================================
   👑 Premium Header Profile Badge
   ========================================================================= */
.header-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(10, 25, 47, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.05);
  transition: var(--transition-smooth);
}

.header-profile-badge:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
}

.header-profile-badge .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-blue));
  color: #040b16;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.header-profile-badge .user-info {
  display: flex;
  flex-direction: column;
}

.header-profile-badge .user-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-profile-badge .user-role {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-profile-badge .icon-btn {
  margin-left: 8px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.header-profile-badge .icon-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* =========================================================================
   💼 Partner & Provider Directory Directory Grid & Cards
   ========================================================================= */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.provider-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.provider-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Internal Spotlight Card */
.provider-card.internal-partner {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.8), rgba(4, 11, 22, 0.9));
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.provider-card.internal-partner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 240, 255, 0.03), transparent);
  transform: rotate(45deg);
  animation: shine 6s infinite linear;
  pointer-events: none;
}

@keyframes shine {
  0% { transform: translate(-30%, -30%) rotate(45deg); }
  100% { transform: translate(30%, 30%) rotate(45deg); }
}

.provider-card.internal-partner:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
  border-color: var(--color-primary);
}

.provider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.provider-title-group h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.provider-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  border: 1px solid var(--border-color);
}

.provider-card.internal-partner .provider-badge {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-primary);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}

.provider-description {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.provider-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-main);
}

.contact-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.provider-services h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.services-list li {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-list li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
}

/* =========================================================================
   📈 Interactive Aging Cards & Buckets
   ========================================================================= */
.bucket {
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.bucket:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.bucket.active-filter {
  background: rgba(0, 240, 255, 0.08) !important;
  border-left-width: 8px !important;
  border-color: rgba(0, 240, 255, 0.3) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.bucket-green.active-filter { border-left-color: var(--success-color) !important; box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
.bucket-yellow.active-filter { border-left-color: var(--warning-color) !important; box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
.bucket-orange.active-filter { border-left-color: var(--orange-color) !important; box-shadow: 0 0 15px rgba(249, 115, 22, 0.2); }
.bucket-red.active-filter { border-left-color: var(--danger-color) !important; box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
.bucket-critical.active-filter { border-left-color: #991b1b !important; box-shadow: 0 0 15px rgba(153, 27, 27, 0.2); }

/* =========================================================================
   🚩 Dashboard Active Filter Banner
   ========================================================================= */
.filter-banner {
  animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(0, 240, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

/* =========================================================================
   📊 Overall Team Summary Status Distribution Breakdown
   ========================================================================= */
.summary-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.status-distribution {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.status-distribution h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.distribution-bar {
  display: flex;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--card-border);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dist-segment {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dist-new {
  background: linear-gradient(90deg, #6366f1, #818cf8);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.4);
}

.dist-working {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.dist-completed {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.4);
}

.distribution-legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-new {
  background-color: #818cf8;
  box-shadow: 0 0 8px #818cf8;
}

.legend-working {
  background-color: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.legend-completed {
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.legend-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.legend-text span {
  color: var(--text-main);
  font-weight: 600;
}

/* =========================================================================
   💎 PREMIUM GLASSMORPHIC WIDGET DASHBOARD CSS (MATCHING THE FIRST REFERENCE)
   ========================================================================= */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.col-8 {
  grid-column: span 8;
}

.col-4 {
  grid-column: span 4;
}

@media (max-width: 1024px) {
  .col-8, .col-4 {
    grid-column: span 12;
  }
}

.widget-card {
  position: relative;
  overflow: hidden;
  background: rgba(13, 15, 24, 0.45) !important;
  backdrop-filter: blur(35px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

.widget-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.1), transparent 60%);
  pointer-events: none;
}

.widget-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.widget-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px !important;
}

.widget-value-large {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
}

.widget-subtitle {
  font-size: 13px;
  color: #00f0ff;
  font-weight: 500;
  margin-top: 4px;
}

.widget-subtitle.success {
  color: #34d399;
}

.widget-clock {
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

/* Progress Ring CSS */
.progress-ring-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-ring-svg {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  stroke: rgba(255, 255, 255, 0.04);
}

.progress-ring-bar {
  stroke: url(#progress-gradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

/* Timer styles */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.timer-circle {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-ring-bar {
  stroke: url(#timer-gradient);
  stroke-linecap: round;
}

.timer-display {
  position: absolute;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.timer-btn {
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* Tasks list matching photo */
.widget-task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.widget-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.widget-task-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.widget-task-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(56, 189, 248, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.widget-task-checkbox.checked {
  background: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.widget-task-checkbox.checked::after {
  content: '✓';
  color: #000;
  font-size: 11px;
  font-weight: 900;
}

.widget-task-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
}

.widget-task-status.completed {
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
}

.widget-task-status.working {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.widget-task-status.pending {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
}

/* Pulsating wave anim */
.wave-svg {
  width: 100%;
  height: 60px;
  margin-top: 15px;
}

.wave-path {
  fill: none;
  stroke: url(#wave-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  animation: wavePulse 4s infinite ease-in-out;
}

@keyframes wavePulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.7) translateY(10px); }
}

/* Deliveries / Activities Vertical Bar Chart */
.delivery-bars {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 120px;
  padding: 10px 10px 0;
  margin-top: 15px;
}

.delivery-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 10%;
}

.delivery-bar-track {
  position: relative;
  width: 10px;
  height: 80px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  overflow: hidden;
}

.delivery-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, #38bdf8, #818cf8);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  transition: height 0.5s ease;
}

.delivery-day {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

/* Shortcuts widget grid */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.shortcut-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shortcut-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  transform: scale(1.03);
}

.shortcut-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  color: #38bdf8;
}

.shortcut-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Status system list items */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.status-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

.status-bar {
  height: 100%;
  background: #38bdf8;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.3);
}
