/*
 * Team Tracker Application Styles
 * Using Pico CSS for semantic, classless styling
 */

@import url("https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css");

/* Custom overrides and utilities */
:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --pico-font-size: 15px;
  --pico-line-height: 1.5;
  --pico-spacing: 0.75rem;
}

/* Typography refinements */
body {
  font-size: 0.9375rem;
  line-height: 1.6;
}

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(--pico-muted-color);
  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(--pico-muted-color);
  font-size: 0.9rem;
}

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

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

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

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

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

/* Nested cards should be lighter */
article article,
.card .card {
  background: var(--pico-background-color);
  border: 1px solid var(--pico-muted-border-color);
  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(--pico-muted-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

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

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

.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(--pico-muted-border-color);
}

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 tweaks - cleaner and more compact with icons */
nav {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--pico-muted-border-color);
  background: var(--pico-card-background-color);
}

nav ul {
  gap: 0.25rem;
  align-items: center;
}

nav ul li {
  margin: 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(--pico-color);
  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(--pico-secondary-background);
  color: var(--pico-color);
  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(--pico-muted-color);
}

nav ul li a.nav-logout:hover {
  color: var(--pico-del-color);
  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(--pico-muted-color);
  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(--pico-muted-color);
  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(--pico-muted-color);
}

.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(--pico-card-background-color);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 0;
  border: 1px solid var(--pico-card-border-color, rgba(0,0,0,0.08));
  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(--pico-muted-border-color);
}

.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 color variants */
.list-card-icon.completed,
.list-card-icon.in_progress { background: #dbeafe; color: #1e40af; }
.list-card-icon.pending,
.list-card-icon.not_started { background: #fef3c7; color: #92400e; }
.list-card-icon.cancelled,
.list-card-icon.paused { background: #f3f4f6; color: #6b7280; }
.list-card-icon.calendar { background: #ede9fe; color: #6d28d9; }
.list-card-icon.standup { background: #dbeafe; color: #1e40af; }
.list-card-icon.retrospective { background: #d1fae5; color: #065f46; }
.list-card-icon.planning { background: #e9d5ff; color: #7c3aed; }
.list-card-icon.demo { background: #fef3c7; color: #92400e; }
.list-card-icon.all_hands { background: #ede9fe; color: #6d28d9; }

/* Engineer status colors */
.list-card-icon.active { background: #d1fae5; color: #065f46; }
.list-card-icon.inactive { background: #f3f4f6; color: #6b7280; }
.list-card-icon.on_leave { background: #fef3c7; color: #92400e; }
.list-card-icon.transferred { background: #ede9fe; color: #6d28d9; }

.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(--pico-color);
  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(--pico-muted-color);
  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(--pico-muted-border-color);
}

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

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

.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: #60a5fa;
  --primary-hover: #3b82f6;
}

[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);
}

[data-theme="dark"] .list-card-icon.completed,
[data-theme="dark"] .list-card-icon.in_progress {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

[data-theme="dark"] .list-card-icon.pending,
[data-theme="dark"] .list-card-icon.not_started {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

[data-theme="dark"] .list-card-icon.cancelled,
[data-theme="dark"] .list-card-icon.paused {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

[data-theme="dark"] .list-card-icon.calendar {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

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

[data-theme="dark"] .list-card-icon.retrospective {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

[data-theme="dark"] .list-card-icon.planning {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

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

[data-theme="dark"] .list-card-icon.all_hands {
  background: rgba(79, 70, 229, 0.2);
  color: #a5b4fc;
}

/* Engineer status dark mode */
[data-theme="dark"] .list-card-icon.active {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

[data-theme="dark"] .list-card-icon.inactive {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

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

[data-theme="dark"] .list-card-icon.transferred {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

[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(--pico-card-background-color);
  border-radius: 12px;
  border: 1px solid var(--pico-card-border-color);
  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;
  background: #dbeafe;
  color: #1e40af;
}

.detail-hero-icon.completed,
.detail-hero-icon.in_progress { background: #dbeafe; color: #1e40af; }
.detail-hero-icon.pending,
.detail-hero-icon.not_started { background: #fef3c7; color: #92400e; }
.detail-hero-icon.cancelled,
.detail-hero-icon.paused { background: #f3f4f6; color: #6b7280; }
.detail-hero-icon.calendar { background: #ede9fe; color: #6d28d9; }
.detail-hero-icon.standup { background: #dbeafe; color: #1e40af; }
.detail-hero-icon.retrospective { background: #d1fae5; color: #065f46; }
.detail-hero-icon.planning { background: #e9d5ff; color: #7c3aed; }
.detail-hero-icon.demo { background: #fef3c7; color: #92400e; }
.detail-hero-icon.all_hands { background: #ede9fe; color: #6d28d9; }

/* Engineer status colors for detail hero */
.detail-hero-icon.active { background: #d1fae5; color: #065f46; }
.detail-hero-icon.inactive { background: #f3f4f6; color: #6b7280; }
.detail-hero-icon.on_leave { background: #fef3c7; color: #92400e; }
.detail-hero-icon.transferred { background: #ede9fe; color: #6d28d9; }

.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(--pico-muted-color);
  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(--pico-card-background-color);
  border: 1px solid var(--pico-card-border-color);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0;
}

.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;
}

.stat-box-icon.priority { background: #fef3c7; color: #92400e; }
.stat-box-icon.info { background: #dbeafe; color: #1e40af; }
.stat-box-icon.overdue { background: #fee2e2; color: #991b1b; }
.stat-box-icon.context { background: #e9d5ff; color: #7c3aed; }
.stat-box-icon.progress { background: #d1fae5; color: #065f46; }
.stat-box-icon.age { background: #f3f4f6; color: #6b7280; }
.stat-box-icon.date { background: #ede9fe; color: #6d28d9; }
.stat-box-icon.time { background: #dbeafe; color: #1e40af; }
.stat-box-icon.action { background: #fef3c7; color: #92400e; }
.stat-box-icon.attendees { background: #d1fae5; color: #065f46; }
.stat-box-icon.completed { background: #d1fae5; color: #065f46; }
.stat-box-icon.in_progress { background: #dbeafe; color: #1e40af; }

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

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

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

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

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

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

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

/* Related Card */
.related-card {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-card-border-color);
  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;
  background: #ede9fe;
  color: #6d28d9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.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: var(--pico-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 8px;
}

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

.action-item-icon.completed { background: #d1fae5; color: #065f46; }
.action-item-icon.in_progress { background: #dbeafe; color: #1e40af; }
.action-item-icon.pending { background: #fef3c7; color: #92400e; }
.action-item-icon.cancelled { background: #f3f4f6; color: #6b7280; }

.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(--pico-color);
  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(--pico-background-color);
  border: 1px solid var(--pico-muted-border-color);
  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 adjustments */
[data-theme="dark"] .detail-hero-icon.completed,
[data-theme="dark"] .detail-hero-icon.in_progress,
[data-theme="dark"] .stat-box-icon.info,
[data-theme="dark"] .stat-box-icon.in_progress,
[data-theme="dark"] .stat-box-icon.time,
[data-theme="dark"] .action-item-icon.in_progress {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

[data-theme="dark"] .detail-hero-icon.pending,
[data-theme="dark"] .detail-hero-icon.not_started,
[data-theme="dark"] .stat-box-icon.priority,
[data-theme="dark"] .stat-box-icon.action,
[data-theme="dark"] .action-item-icon.pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

[data-theme="dark"] .detail-hero-icon.cancelled,
[data-theme="dark"] .detail-hero-icon.paused,
[data-theme="dark"] .stat-box-icon.age,
[data-theme="dark"] .action-item-icon.cancelled {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

[data-theme="dark"] .detail-hero-icon.calendar,
[data-theme="dark"] .stat-box-icon.date,
[data-theme="dark"] .stat-box-icon.context,
[data-theme="dark"] .related-card-icon {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

[data-theme="dark"] .detail-hero-icon.retrospective,
[data-theme="dark"] .stat-box-icon.progress,
[data-theme="dark"] .stat-box-icon.completed,
[data-theme="dark"] .stat-box-icon.attendees,
[data-theme="dark"] .action-item-icon.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

[data-theme="dark"] .detail-hero-icon.demo,
[data-theme="dark"] .stat-box-icon.overdue {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* Engineer status dark mode for detail hero */
[data-theme="dark"] .detail-hero-icon.active {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

[data-theme="dark"] .detail-hero-icon.inactive {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

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

[data-theme="dark"] .detail-hero-icon.transferred {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

/* =================================
   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);
}
