/*
 * Team Tracker Application Styles
 * Vanilla CSS with CSS Variables
 */

/* =================================
   CSS Reset & Base
   ================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

/* =================================
   CSS Variables (Design Tokens)
   ================================= */

:root {
  /* Primary Colors */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #dbeafe;

  /* Semantic Colors */
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;
  --color-info: #3b82f6;

  /* Neutral Colors */
  --color-background: #ffffff;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-border-muted: #f3f4f6;

  /* Typography */
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size: 15px;
  --line-height: 1.5;

  /* Spacing */
  --spacing: 0.75rem;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* Borders & Shadows */
  --border-radius: 6px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition: 0.15s ease;

  /* Icon Color Themes (Light Mode) */
  --icon-blue-bg: #dbeafe;
  --icon-blue-text: #1e40af;
  --icon-yellow-bg: #fef3c7;
  --icon-yellow-text: #92400e;
  --icon-gray-bg: #f3f4f6;
  --icon-gray-text: #6b7280;
  --icon-purple-bg: #ede9fe;
  --icon-purple-text: #6d28d9;
  --icon-green-bg: #d1fae5;
  --icon-green-text: #065f46;
  --icon-red-bg: #fee2e2;
  --icon-red-text: #991b1b;
  --icon-violet-bg: #e9d5ff;
  --icon-violet-text: #7c3aed;
}

/* =================================
   Base Element Styles
   ================================= */

body {
  font-family: var(--font-family);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Images */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Form Elements */
input, button, textarea, select {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type="checkbox"], input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
}

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

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Buttons */
button, [role="button"], input[type="submit"], input[type="button"], .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

button:hover, [role="button"]:hover, input[type="submit"]:hover, input[type="button"]:hover, .btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

button:active, [role="button"]:active {
  transform: translateY(0);
}

button:disabled, [role="button"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Secondary Button */
button.secondary, [role="button"].secondary, .btn-secondary {
  color: var(--color-text);
  background: var(--color-background);
  border-color: var(--color-border);
}

button.secondary:hover, [role="button"].secondary:hover, .btn-secondary:hover {
  background: var(--color-border-muted);
  border-color: var(--color-border);
}

/* Contrast/Outline Button */
button.contrast, [role="button"].contrast, .btn-contrast {
  color: var(--color-text);
  background: transparent;
  border-color: var(--color-border);
}

button.contrast:hover, [role="button"].contrast:hover, .btn-contrast:hover {
  background: var(--color-border-muted);
}

/* Danger Button */
button.danger, [role="button"].danger, .btn-danger {
  color: #ffffff;
  background: var(--color-danger);
  border-color: var(--color-danger);
}

button.danger:hover, [role="button"].danger:hover, .btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

tbody tr:hover {
  background: var(--color-border-muted);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 2rem;
  }
  .container-fluid {
    padding: 0 2rem;
  }
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

hgroup {
  margin-bottom: 1.5rem;
}

hgroup h1, hgroup h2, hgroup h3 {
  margin-bottom: 0.25rem;
}

hgroup p {
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Improved card styling */
.card,
article {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
}

article header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

article header h3 {
  margin-bottom: 0.25rem;
}

article header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

article footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

/* Nested cards should be lighter */
article article,
.card .card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: none;
}

/* Grid utilities */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Badge styling - more subtle */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* Alert styling - cleaner */
.alert {
  padding: 0.875rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  border-left: 3px solid;
  font-size: 0.9rem;
}

.alert strong {
  display: block;
  margin-bottom: 0.25rem;
}

.alert-notice {
  background: #eff6ff;
  color: #1e40af;
  border-color: #3b82f6;
}

.alert-alert {
  background: #fef2f2;
  color: #991b1b;
  border-color: #ef4444;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #f59e0b;
}

.alert ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.25rem;
}

.alert li {
  margin: 0.25rem 0;
}

/* Stats card - more compact */
.stat-card {
  text-align: center;
  padding: 1.25rem;
}

.stat-card h3 {
  font-size: 2rem;
  margin: 0.25rem 0 0.5rem 0;
  color: var(--primary);
  font-weight: 700;
}

.stat-card p, .stat-card h4 {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.stat-card i {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* Empty state - cleaner */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--color-text-muted);
}

.empty-state i {
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
}

/* Lists - better spacing */
ul li, ol li {
  margin-bottom: 0.5rem;
}

article ul, article ol {
  margin: 0;
  padding-left: 0;
}

article ul li {
  list-style: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

article ul li:last-child {
  border-bottom: none;
}

/* Table improvements */
table {
  font-size: 0.9rem;
}

table td, table th {
  padding: 0.75rem 0.5rem;
}

/* Button improvements - more compact and refined */
button, [role="button"], input[type="submit"], input[type="button"] {
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 6px;
  transition: all 0.15s ease;
}

/* Primary action buttons */
a[role="button"]:not(.secondary):not(.contrast),
button:not(.secondary):not(.contrast),
input[type="submit"],
input[type="button"] {
  background: var(--primary);
  border-color: var(--primary);
}

a[role="button"]:not(.secondary):not(.contrast):hover,
button:not(.secondary):not(.contrast):hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Smaller icon buttons */
button i, [role="button"] i {
  margin-right: 0.35rem;
  font-size: 0.875em;
}

[role="button"] i:last-child:only-child,
button i:last-child:only-child {
  margin-right: 0;
}

[role="group"] {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

[role="group"] [role="button"],
[role="group"] button {
  margin: 0;
}

/* Form improvements */
input, select, textarea {
  font-size: 0.9rem;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

/* Navigation - flexbox layout */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0;
  padding: 0;
}

/* Logo styling */
.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  flex-shrink: 0;
}

nav ul li strong {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 600;
}

/* Navigation links with icons */
nav ul li a {
  font-size: 0.8125rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

nav ul li a i {
  font-size: 0.875rem;
  opacity: 0.85;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}

nav ul li a:not(.active):hover {
  background-color: var(--color-border-muted);
  color: var(--color-text);
  transform: translateY(-1px);
}

nav ul li a:not(.active):hover i {
  opacity: 1;
}

nav ul li a.active {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}

nav ul li a.active i {
  opacity: 1;
}

/* Logout link styling */
nav ul li a.nav-logout {
  color: var(--color-text-muted);
}

nav ul li a.nav-logout:hover {
  color: var(--color-danger);
  background-color: rgba(220, 38, 38, 0.1);
}

/* Brand link special styling */
nav ul:first-child li a {
  padding: 0.25rem 0;
}

nav ul:first-child li a:hover strong {
  color: var(--primary);
}

/* Responsive navigation - hide text on tablets */
@media (max-width: 992px) {
  nav ul li a .nav-text {
    display: none;
  }

  nav ul li a {
    padding: 0.45rem 0.625rem;
    justify-content: center;
  }

  nav ul li strong {
    display: none;
  }

  .nav-logo {
    margin: 0 auto;
  }
}

/* Responsive navigation - show everything on desktop */
@media (min-width: 993px) {
  nav ul li a i {
    margin-right: 0;
  }
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.text-red { color: #dc2626; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* Icon improvements */
i.fas, i.fa {
  font-size: 0.95em;
  opacity: 0.85;
}

/* Icon spacing in buttons */
button i:first-child:not(:last-child),
[role="button"] i:first-child:not(:last-child) {
  margin-right: 0.4rem;
}

button i:last-child:not(:first-child),
[role="button"] i:last-child:not(:first-child) {
  margin-left: 0.4rem;
}

/* Definition list improvements */
dl {
  margin: 0;
}

dt {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
}

/* Metadata styling */
.metadata {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.metadata i {
  font-size: 0.8rem;
}

/* Container improvements */
.container {
  padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 2rem 2rem;
  }
}

/* Small text helper */
small {
  font-size: 0.85rem;
}

/* =================================
   List Card Component Styles
   ================================= */

.list-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr));
}

.list-card {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 0;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  overflow: hidden;
}

.list-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.list-card.overdue {
  border-left: 3px solid #dc2626;
}

.list-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.list-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* =================================
   Icon Status Colors (Unified)
   Using CSS variables for automatic dark mode support
   ================================= */

/* Blue: completed, in_progress, standup, info, time */
.list-card-icon.completed, .list-card-icon.in_progress, .list-card-icon.standup,
.detail-hero-icon.completed, .detail-hero-icon.in_progress, .detail-hero-icon.standup,
.stat-box-icon.info, .stat-box-icon.in_progress, .stat-box-icon.time,
.action-item-icon.in_progress {
  background: var(--icon-blue-bg);
  color: var(--icon-blue-text);
}

/* Yellow: pending, not_started, demo, priority, action, on_leave */
.list-card-icon.pending, .list-card-icon.not_started, .list-card-icon.demo, .list-card-icon.on_leave,
.detail-hero-icon.pending, .detail-hero-icon.not_started, .detail-hero-icon.demo, .detail-hero-icon.on_leave,
.stat-box-icon.priority, .stat-box-icon.action,
.action-item-icon.pending {
  background: var(--icon-yellow-bg);
  color: var(--icon-yellow-text);
}

/* Gray: cancelled, paused, inactive, age */
.list-card-icon.cancelled, .list-card-icon.paused, .list-card-icon.inactive,
.detail-hero-icon.cancelled, .detail-hero-icon.paused, .detail-hero-icon.inactive,
.stat-box-icon.age,
.action-item-icon.cancelled {
  background: var(--icon-gray-bg);
  color: var(--icon-gray-text);
}

/* Purple: calendar, all_hands, transferred, date, context */
.list-card-icon.calendar, .list-card-icon.all_hands, .list-card-icon.transferred,
.detail-hero-icon.calendar, .detail-hero-icon.all_hands, .detail-hero-icon.transferred,
.stat-box-icon.date, .stat-box-icon.context,
.related-card-icon {
  background: var(--icon-purple-bg);
  color: var(--icon-purple-text);
}

/* Green: retrospective, active, progress, completed (stat), attendees */
.list-card-icon.retrospective, .list-card-icon.active,
.detail-hero-icon.retrospective, .detail-hero-icon.active,
.stat-box-icon.progress, .stat-box-icon.completed, .stat-box-icon.attendees,
.action-item-icon.completed {
  background: var(--icon-green-bg);
  color: var(--icon-green-text);
}

/* Violet: planning */
.list-card-icon.planning,
.detail-hero-icon.planning {
  background: var(--icon-violet-bg);
  color: var(--icon-violet-text);
}

/* Red: overdue */
.stat-box-icon.overdue {
  background: var(--icon-red-bg);
  color: var(--icon-red-text);
}

.list-card-title {
  flex: 1;
  min-width: 0;
}

.list-card-title h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.list-card-title h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.list-card-title h3 a:hover {
  color: var(--primary);
}

.list-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.list-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.list-card-meta i {
  font-size: 0.75rem;
  opacity: 0.7;
}

.list-card-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.list-card-content {
  padding: 0 1.25rem 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.list-card-content p {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.list-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: var(--color-background);
}

.list-card-actions {
  display: flex;
  gap: 0.5rem;
}

.list-card-actions [role="button"] {
  padding: 0.35rem 0.625rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .list-card-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .list-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .list-card-badge {
    align-items: flex-start;
    flex-direction: row;
  }

  .list-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .list-card-actions {
    width: 100%;
  }

  .list-card-actions [role="button"] {
    flex: 1;
  }
}

/* Theme toggle button - more compact */
#theme-toggle {
  padding: 0.4rem 0.625rem;
  min-width: auto;
  margin: 0;
  font-size: 0.8125rem;
}

#theme-toggle i {
  margin: 0;
  font-size: 0.875rem;
}

/* =================================
   Dark Mode Support
   ================================= */

[data-theme="dark"] {
  /* Primary Colors */
  --primary: #60a5fa;
  --primary-hover: #3b82f6;
  --primary-light: rgba(59, 130, 246, 0.2);

  /* Neutral Colors */
  --color-background: #111827;
  --color-surface: #1f2937;
  --color-text: #f9fafb;
  --color-text-muted: #9ca3af;
  --color-border: #374151;
  --color-border-muted: #1f2937;

  /* Semantic Colors */
  --color-success: #22c55e;
  --color-warning: #fbbf24;
  --color-danger: #ef4444;
  --color-info: #60a5fa;

  /* Icon Color Themes (Dark Mode) */
  --icon-blue-bg: rgba(59, 130, 246, 0.2);
  --icon-blue-text: #93c5fd;
  --icon-yellow-bg: rgba(251, 191, 36, 0.2);
  --icon-yellow-text: #fbbf24;
  --icon-gray-bg: rgba(107, 114, 128, 0.2);
  --icon-gray-text: #9ca3af;
  --icon-purple-bg: rgba(139, 92, 246, 0.2);
  --icon-purple-text: #c4b5fd;
  --icon-green-bg: rgba(16, 185, 129, 0.2);
  --icon-green-text: #6ee7b7;
  --icon-red-bg: rgba(239, 68, 68, 0.2);
  --icon-red-text: #fca5a5;
  --icon-violet-bg: rgba(139, 92, 246, 0.2);
  --icon-violet-text: #c4b5fd;
}

[data-theme="dark"] .list-card {
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .list-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Icon colors now handled by CSS variables in unified icon section */

[data-theme="dark"] .badge-success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

[data-theme="dark"] .badge-warning {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

[data-theme="dark"] .badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

[data-theme="dark"] .badge-info {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

[data-theme="dark"] .badge-secondary {
  background: rgba(107, 114, 128, 0.2);
  color: #d1d5db;
  border-color: rgba(255,255,255,0.1);
}

/* =================================
   Detail Page Styles
   ================================= */

/* Hero Header */
.detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.detail-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  /* Default color - overridden by status classes in unified icon section */
  background: var(--icon-blue-bg);
  color: var(--icon-blue-text);
}

.detail-hero-content {
  flex: 1;
  min-width: 0;
}

.detail-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.detail-hero h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  line-height: 1.3;
}

.detail-hero-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-hero-subtitle .separator {
  opacity: 0.5;
}

.detail-hero-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.detail-hero-actions [role="button"] {
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0;
}

.stat-box-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
}

.stat-box-link:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.stat-box-link:hover h4 {
  color: var(--primary);
}

/* =================================
   Dual Panel Grid (Side-by-Side)
   ================================= */

.dual-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.panel-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 0;
}

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

.panel-card header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.panel-count {
  background: var(--color-border-muted);
  color: var(--color-text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.panel-card footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

.panel-card footer [role="button"] {
  flex: 1;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
}

.panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--color-text-muted);
  gap: 0.5rem;
}

.panel-empty i {
  font-size: 1.5rem;
  opacity: 0.3;
}

.panel-more {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: var(--color-border-muted);
}

/* Compact List Items */
.compact-list {
  display: flex;
  flex-direction: column;
}

.compact-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.compact-list-item:last-child {
  border-bottom: none;
}

.compact-list-item:hover {
  background: var(--color-border-muted);
  text-decoration: none;
}

.compact-list-item.overdue {
  border-left: 3px solid #dc2626;
}

.compact-list-item.stale {
  border-left: 3px solid #f59e0b;
}

.compact-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.compact-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-item-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.compact-item-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mini-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  max-width: 100px;
}

.mini-progress-fill {
  height: 100%;
  border-radius: 2px;
}

.mini-progress-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 32px;
}

.compact-item-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.compact-item-badge.overdue {
  background: var(--icon-red-bg);
  color: var(--icon-red-text);
}

.compact-item-badge.stale {
  background: var(--icon-yellow-bg);
  color: var(--icon-yellow-text);
}

@media (max-width: 768px) {
  .dual-panel-grid {
    grid-template-columns: 1fr;
  }
}

/* History Link Bar */
.history-link-bar {
  margin-bottom: 1.5rem;
}

.history-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.history-link:hover {
  border-color: var(--primary);
  background: var(--color-border-muted);
  text-decoration: none;
}

.history-link i:first-child {
  font-size: 1.1rem;
  color: var(--primary);
}

.history-link span:first-of-type {
  font-weight: 500;
}

.history-link-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.history-link i:last-child {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Client Trigger Link */
.client-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0.75rem;
  margin: -0.5rem -0.75rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.client-trigger:hover {
  background: var(--color-border-muted);
  text-decoration: none;
}

.client-trigger strong {
  color: var(--color-text);
}

.client-trigger small {
  color: var(--color-text-muted);
}

.client-trigger .trigger-arrow {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.client-trigger:hover .trigger-arrow {
  opacity: 1;
}

/* =================================
   Modal Styles
   ================================= */

.modal {
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  width: 90%;
  background: var(--color-surface);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.modal-content header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}

.modal-content header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-close {
  background: none;
  border: none;
  padding: 0.5rem;
  margin: -0.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  border-radius: 6px;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--color-border-muted);
  color: var(--color-text);
  transform: none;
}

.modal-body {
  padding: 1rem 1.5rem 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  color: var(--color-text-muted);
}

.modal-empty i {
  font-size: 2rem;
  opacity: 0.3;
  margin-bottom: 0.75rem;
}

/* Assignment Items in Modal */
.assignment-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

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

.assignment-item.active {
  border-color: #86efac;
  background: #f0fdf4;
}

[data-theme="dark"] .assignment-item.active {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
}

.assignment-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--icon-gray-bg);
  color: var(--icon-gray-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assignment-item.active .assignment-icon {
  background: var(--icon-green-bg);
  color: var(--icon-green-text);
}

.assignment-content {
  flex: 1;
  min-width: 0;
}

.assignment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.assignment-header strong {
  font-size: 0.95rem;
}

.assignment-description {
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.stat-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  /* Colors handled by unified icon section */
}

.stat-box-content {
  flex: 1;
}

.stat-box-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.25rem 0;
  color: var(--color-text);
}

.stat-box-content small {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.stat-box-content progress {
  margin-top: 0.5rem;
  width: 100%;
}

/* Content Section */
.content-section {
  line-height: 1.7;
  color: var(--color-text);
}

.content-section p {
  margin-bottom: 1rem;
}

/* Related Card */
.related-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.related-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  /* Colors handled by unified icon section (defaults to purple) */
}

.related-card-content {
  flex: 1;
}

.related-card-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.related-card-content p {
  margin: 0.25rem 0 0 0;
  font-size: 0.95rem;
}

.related-card-action [role="button"] {
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
}

/* Action Items List */
.action-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.action-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.action-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Colors handled by unified icon section */
}

.action-item-content {
  flex: 1;
}

.action-item-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.action-item-content h4 a {
  color: var(--color-text);
  text-decoration: none;
}

.action-item-content h4 a:hover {
  color: var(--primary);
}

.action-item-content p {
  margin: 0;
  font-size: 0.85rem;
}

.action-item-content .separator {
  opacity: 0.5;
  margin: 0 0.25rem;
}

.action-item-actions [role="button"] {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

/* Attendees List */
.attendees-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.attendee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.attendee-badge i {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .detail-hero {
    flex-direction: column;
    padding: 1.5rem;
  }

  .detail-hero-icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }

  .detail-hero h1 {
    font-size: 1.5rem;
  }

  .detail-hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .detail-hero-actions [role="button"] {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .action-item-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .action-item-actions {
    width: 100%;
  }

  .action-item-actions [role="button"] {
    width: 100%;
  }
}

/* Dark mode icon colors now handled by CSS variables in unified icon section */

/* =================================
   Login Page Enhancements
   ================================= */

/* Dark mode gradient for login icon */
[data-theme="dark"] .login-icon-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
}

/* Login card shadow */
.login-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .login-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* =================================
   Navigation Dark Mode
   ================================= */

[data-theme="dark"] .nav-logo {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

[data-theme="dark"] nav ul li a.nav-logout:hover {
  background-color: rgba(239, 68, 68, 0.15);
}

/* =================================
   Attention Required Banner
   ================================= */

.attention-banner {
  background: #fef2f2;
  border: 2px solid #fecaca;
  border-left: 4px solid #dc2626;
}

.attention-banner header h3 {
  color: #dc2626;
  margin-bottom: 0;
}

.attention-banner header h3 i {
  margin-right: 0.5rem;
}

.attention-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.attention-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.attention-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--icon-red-bg);
  color: var(--icon-red-text);
}

.attention-content {
  flex: 1;
  min-width: 0;
}

.attention-content strong {
  display: block;
  font-size: 0.95rem;
}

.attention-content strong a {
  color: var(--color-text);
}

.attention-content strong a:hover {
  color: var(--primary);
}

.attention-content p {
  margin: 0.25rem 0 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* =================================
   1-on-1 Prep Summary
   ================================= */

.prep-summary {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
}

.prep-summary header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom-color: #bae6fd;
}

.prep-summary header h3 {
  color: #0369a1;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.prep-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.prep-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prep-stat-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prep-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

/* =================================
   Goals List Enhanced
   ================================= */

.goals-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.goal-card {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.goal-card:hover {
  border-color: var(--primary);
}

.goal-card.overdue {
  border-left: 3px solid #dc2626;
}

.goal-card.stale {
  border-left: 3px solid #f59e0b;
}

.goal-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.goal-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.goal-title {
  flex: 1;
  min-width: 0;
}

.goal-title h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.goal-title h4 a {
  color: var(--color-text);
  text-decoration: none;
}

.goal-title h4 a:hover {
  color: var(--primary);
}

.goal-title p {
  margin: 0;
  font-size: 0.85rem;
}

.goal-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.progress-bar-container {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 40px;
  text-align: right;
}

.goal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.goal-meta i {
  margin-right: 0.25rem;
  opacity: 0.7;
}

/* =================================
   1-on-1 Cards Enhanced
   ================================= */

.one-on-one-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.one-on-one-card {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.one-on-one-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.one-on-one-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--icon-purple-bg);
  color: var(--icon-purple-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.one-on-one-title {
  flex: 1;
}

.one-on-one-title h4 {
  margin: 0;
  font-size: 0.95rem;
}

.one-on-one-title h4 a {
  color: var(--color-text);
}

.one-on-one-title h4 a:hover {
  color: var(--primary);
}

.one-on-one-title p {
  margin: 0.25rem 0 0 0;
  font-size: 0.8rem;
}

.one-on-one-stats {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem;
  background: var(--color-surface);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.one-on-one-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.one-on-one-stat .stat-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.one-on-one-stat .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.one-on-one-stat.has-pending {
  background: rgba(220, 38, 38, 0.1);
  border-radius: 4px;
  padding: 0.5rem;
  margin: -0.5rem;
}

.one-on-one-preview {
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.one-on-one-preview p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Action item row overdue styling */
.action-item-row.overdue {
  border-left: 3px solid #dc2626;
}

/* =================================
   Dark Mode - Dashboard Components
   ================================= */

[data-theme="dark"] .attention-banner {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

[data-theme="dark"] .attention-item {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .prep-summary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
  border-color: rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .prep-summary header {
  border-bottom-color: rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .prep-summary header h3 {
  color: #38bdf8;
}

[data-theme="dark"] .prep-stat {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .goal-card {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .one-on-one-card {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .one-on-one-stats {
  background: var(--color-background);
}

[data-theme="dark"] .action-item-row {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* =================================
   Responsive - Dashboard Components
   ================================= */

@media (max-width: 768px) {
  .attention-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .attention-item [role="button"] {
    width: 100%;
  }

  .prep-grid {
    grid-template-columns: 1fr 1fr;
  }

  .one-on-one-stats {
    flex-direction: column;
    gap: 0.75rem;
  }

  .one-on-one-stat {
    flex-direction: row;
    justify-content: space-between;
  }

  .goal-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .prep-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================
   Unified Profile Card
   ================================= */

.profile-card {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.profile-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.profile-card-actions [role="button"] {
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
}

.profile-card-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.5rem;
}

.profile-identity {
  display: flex;
  gap: 1.25rem;
}

.profile-identity-icon {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  background: var(--icon-blue-bg);
  color: var(--icon-blue-text);
}

.profile-identity-icon.active {
  background: var(--icon-green-bg);
  color: var(--icon-green-text);
}

.profile-identity-icon.inactive {
  background: var(--icon-gray-bg);
  color: var(--icon-gray-text);
}

.profile-identity-icon.on_leave {
  background: var(--icon-yellow-bg);
  color: var(--icon-yellow-text);
}

.profile-identity-icon.transferred {
  background: var(--icon-purple-bg);
  color: var(--icon-purple-text);
}

.profile-identity-content {
  flex: 1;
  min-width: 0;
}

.profile-identity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.profile-identity-content h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.profile-identity-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-identity-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-identity-meta i {
  width: 1rem;
  text-align: center;
  opacity: 0.7;
}

.profile-identity-client {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.profile-identity-client strong {
  font-size: 0.95rem;
  color: var(--color-text);
}

.profile-identity-client small {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-text-muted);
}

.profile-technologies {
  border-left: 1px solid var(--color-border);
  padding-left: 2rem;
}

.profile-tech-section {
  margin-bottom: 1.25rem;
}

.profile-tech-section:last-child {
  margin-bottom: 0;
}

.profile-tech-section h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-tech-section h4 i {
  font-size: 0.85rem;
  opacity: 0.7;
}

.profile-top-tech-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-top-tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-top-tech-item strong {
  font-size: 0.95rem;
}

.profile-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Responsive Profile Card */
@media (max-width: 768px) {
  .profile-card-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-technologies {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .profile-identity-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .profile-identity-content h1 {
    font-size: 1.25rem;
  }

  .profile-card-header {
    flex-direction: column;
    gap: 1rem;
  }

  .profile-card-actions {
    width: 100%;
  }

  .profile-card-actions [role="button"] {
    flex: 1;
  }
}
