/* These styles are generated from project.scss. */

/* Alert styles */
.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* Common B2B professional styling */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #f8fafc;
}

/* Page headers */
h1 {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

/* Card-based layout */
/* Global responsive container */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem;
  overflow-x: hidden;
}

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

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

/* Animation keyframes for spinning status badges */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.spinning {
  animation: spin 1s linear infinite;
}

.content-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

/* Button styles - consistent across pages */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.btn-primary {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: #374151;
  border-color: #d1d5db;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
  text-decoration: none;
}

.btn-danger {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: white;
  text-decoration: none;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Project templates list styling */
.templates-list {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Responsive breakpoints for templates */
@media (min-width: 768px) {
  .templates-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .templates-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.template-block {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.875rem;
  margin-bottom: 0;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.template-block:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.template-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #1f2937;
}

.template-controls {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.template-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.template-steps {
  padding: 1rem;
}

.template-steps h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.add-step-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

/* Step management buttons - different from template actions */
.step-actions {
  display: flex;
  gap: 0.25rem;
}

.btn-step {
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  border-radius: 3px;
}

.btn-step.btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.btn-step.btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.btn-step.btn-secondary:hover {
  background: #e5e7eb;
  color: #4b5563;
}

.btn-step.btn-danger:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Projects table styling */
.table-container {
  overflow-x: auto;
}

.projects-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.projects-table th {
  background: #f8fafc;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

.projects-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.projects-table tr:hover {
  background-color: #f8fafc;
}

.project-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.project-cell {
  background-color: #f8fafc;
  border-right: 2px solid #e5e7eb;
  vertical-align: middle;
}

/* Step cell layout */
.step-cell {
  min-width: 120px;
  padding: 0.5rem;
}

.step-name {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.step-status,
.step-owner {
  margin-bottom: 0.25rem;
}

/* Badge styles - consistent status and owner indicators */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Base status badge class */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.status-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Status badge colors */
.status-badge-open {
  background-color: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.status-badge-in_progress {
  background-color: #3b82f6;
  color: white;
  border: 1px solid #2563eb;
}

.status-badge-closed {
  background-color: #10b981;
  color: white;
  border: 1px solid #059669;
}

/* ===========================
   3D PUSHABLE BADGE SYSTEM
   ========================== */

:root {
  /* Badge sizing */
  --badge-size: 40px;
  /* Color palette */
  --badge-blue: hsl(210, 70%, 50%);
  --badge-green: hsl(145, 65%, 45%);
  --badge-green-dark: hsl(145, 65%, 25%);
  --badge-grey: hsl(220, 10%, 50%);
  --badge-grey-dark: hsl(220, 10%, 25%);
  --badge-orange: hsl(25, 85%, 50%);
  --badge-orange-dark: hsl(25, 85%, 25%);

  /* Edge colors */
  --edge-blue: hsl(210, 60%, 30%);
  --edge-blue-dark: hsl(210, 60%, 20%);
  --edge-green: hsl(145, 55%, 25%);
  --edge-green-dark: hsl(145, 55%, 15%);
  --edge-grey: hsl(220, 10%, 30%);
  --edge-grey-dark: hsl(220, 10%, 20%);
  --edge-orange: hsl(25, 75%, 30%);
  --edge-orange-dark: hsl(25, 75%, 20%);

  /* Shadow */
  --badge-shadow: rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-slow: 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
  --transition-fast: 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
  --transition-click: 80ms cubic-bezier(0.4, 0, 0.6, 1);
}

/* Base pushable badge */
.pushable-badge {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  width: var(--badge-size);
  height: var(--badge-size);
  border-radius: 50%;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  perspective: 800px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pushable-badge .badge-shadow,
.pushable-badge .badge-edge,
.pushable-badge .badge-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.pushable-badge .badge-shadow {
  background: var(--badge-shadow);
  transform: translateY(2px);
  /* Reduced shadow offset */
  filter: blur(2px);
  /* Reduced blur */
  transition: transform var(--transition-slow);
}

.pushable-badge .badge-edge {
  background: linear-gradient(to top,
      var(--edge-blue-dark) 0%,
      var(--edge-blue) 50%,
      var(--edge-blue-dark) 100%);
}

.pushable-badge .badge-front {
  background: radial-gradient(circle at 50% 40%, var(--badge-blue) 0%, var(--badge-blue) 90%);
  transform: translateY(-2px);
  /* Reduced lift for compact layout */
  transition: transform var(--transition-slow), background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 12px;
  /* Smaller font for compact badges */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}

/* Hover: green transition */
.pushable-badge:hover:not(:disabled) .badge-front {
  background: radial-gradient(circle at 50% 50%, var(--badge-green) 0%, var(--badge-green) 90%);
  transform: translateY(-3px) scale(1.02);
  /* Reduced hover effects for compact */
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.pushable-badge:hover:not(:disabled) .badge-shadow {
  transform: translateY(3px) scale(1.03);
  /* Reduced shadow movement */
  transition: transform var(--transition-fast);
}

.pushable-badge:hover:not(:disabled) .badge-edge {
  background: linear-gradient(to top,
      var(--edge-green-dark) 0%,
      var(--edge-green) 50%,
      var(--edge-green-dark) 100%);
}

/* Active: pressed state with dark center */
.pushable-badge:active:not(:disabled) .badge-front {
  transform: translateY(-1px) scale(0.97);
  background: radial-gradient(circle at 50% 55%,
      var(--badge-green-dark) 0%,
      var(--badge-green-dark) 50%,
      var(--badge-green) 70%,
      var(--badge-green) 100%);
  transition: transform var(--transition-click), background var(--transition-click);
}

.pushable-badge:active:not(:disabled) .badge-shadow {
  transform: translateY(2px) scale(0.95);
  transition: transform var(--transition-click);
}

/* Disabled state */
.pushable-badge:disabled,
.pushable-badge.disabled {
  cursor: not-allowed;
  filter: grayscale(60%) brightness(0.8);
}

.pushable-badge:disabled .badge-front,
.pushable-badge.disabled .badge-front {
  background: radial-gradient(circle at 50% 50%, #999 0%, #666 90%);
  color: #ccc;
  text-shadow: none;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

.pushable-badge:disabled .badge-edge,
.pushable-badge.disabled .badge-edge {
  background: linear-gradient(to top,
      var(--edge-grey-dark) 0%,
      var(--edge-grey) 50%,
      var(--edge-grey-dark) 100%);
}

/* Badge Color Variants */

/* Grey badges (unassigned status) */
.pushable-badge.badge-grey .badge-edge {
  background: linear-gradient(to top,
      var(--edge-grey-dark) 0%,
      var(--edge-grey) 50%,
      var(--edge-grey-dark) 100%);
}

.pushable-badge.badge-grey .badge-front {
  background: radial-gradient(circle at 50% 40%, var(--badge-grey) 0%, var(--badge-grey) 90%);
}

/* Orange badges (assigned status) */
.pushable-badge.badge-orange .badge-edge {
  background: linear-gradient(to top,
      var(--edge-orange-dark) 0%,
      var(--edge-orange) 50%,
      var(--edge-orange-dark) 100%);
}

.pushable-badge.badge-orange .badge-front {
  background: radial-gradient(circle at 50% 40%, var(--badge-orange) 0%, var(--badge-orange) 90%);
}

/* Green badges (complete status) - different hover behavior */
.pushable-badge.badge-green .badge-edge {
  background: linear-gradient(to top,
      var(--edge-green-dark) 0%,
      var(--edge-green) 50%,
      var(--edge-green-dark) 100%);
}

.pushable-badge.badge-green .badge-front {
  background: radial-gradient(circle at 50% 40%, var(--badge-green) 0%, var(--badge-green) 90%);
}

/* Green badges hover to grey (re-open action) */
.pushable-badge.badge-green:hover:not(:disabled) .badge-front {
  background: radial-gradient(circle at 50% 50%, var(--badge-grey) 0%, var(--badge-grey) 90%);
}

.pushable-badge.badge-green:hover:not(:disabled) .badge-edge {
  background: linear-gradient(to top,
      var(--edge-grey-dark) 0%,
      var(--edge-grey) 50%,
      var(--edge-grey-dark) 100%);
}

/* Icon sizing within badges */
.pushable-badge .badge-front .fas,
.pushable-badge .badge-front .spinner-border {
  font-size: 12px;
  /* Smaller icons for compact badges */
}

.pushable-badge .badge-front .spinner-border {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

/* 3D Pushable Star and Rectangle Action Buttons */
.pushable-action {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  perspective: 800px;
  transition: filter var(--transition-fast);
}

.pushable-action .action-shadow,
.pushable-action .action-edge,
.pushable-action .action-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all var(--transition-fast);
}

.pushable-action .action-shadow {
  background: var(--shadow-color);
  transform: translateY(3px);
  filter: blur(3px);
  transition: transform var(--transition-slow);
}

.pushable-action .action-edge {
  background: linear-gradient(to top,
      var(--edge-blue-dark) 0%,
      var(--edge-blue) 50%,
      var(--edge-blue-dark) 100%);
}

.pushable-action .action-front {
  background: radial-gradient(circle at 50% 40%, var(--badge-blue) 0%, var(--badge-blue) 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.875rem;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
  transition: transform var(--transition-slow), background var(--transition-fast);
}

/* Hover effects - general */
.pushable-action:hover:not(:disabled) .action-front {
  background: radial-gradient(circle at 50% 50%, var(--badge-green) 0%, var(--badge-green) 90%);
  transform: translateY(-4px) scale(1.05);
}

.pushable-action:hover:not(:disabled) .action-shadow {
  transform: translateY(4px) scale(1.05);
}

.pushable-action:hover:not(:disabled) .action-edge {
  background: linear-gradient(to top,
      var(--edge-green-dark) 0%,
      var(--edge-green) 50%,
      var(--edge-green-dark) 100%);
}

/* Override general hover for star - use yellow */
.pushable-star:hover:not(:disabled) .action-front {
  background: radial-gradient(circle at 50% 50%, #eab308 0%, #d97706 90%) !important;
  color: #451a03;
}

.pushable-star:hover:not(:disabled) .action-edge {
  background: linear-gradient(to top,
      #a16207 0%,
      #eab308 50%,
      #a16207 100%) !important;
}

/* Active click */
.pushable-action:active:not(:disabled) .action-front {
  transform: translateY(-1px) scale(0.98);
  background: radial-gradient(circle at 50% 55%,
      var(--badge-green-dark) 0%,
      var(--badge-green-dark) 50%,
      var(--badge-green) 70%,
      var(--badge-green) 100%);
}

.pushable-action:active:not(:disabled) .action-shadow {
  transform: translateY(2px) scale(0.98);
}

/* Simple follow button styles */
.btn-follow {
  background: transparent;
  border: 2px solid #eab308;
  border-radius: 6px;
  padding: 6px 8px;
  color: #eab308;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.btn-follow:hover {
  background-color: #eab308;
  color: white;
}

.btn-follow.following {
  background-color: #eab308;
  color: white;
}

.btn-follow.following:hover {
  background-color: #ca8a04;
  border-color: #ca8a04;
}

/* Rounded rectangle for archive button */
.pushable-archive {
  width: 80px;
  height: 32px;
}

.pushable-archive .action-shadow,
.pushable-archive .action-edge,
.pushable-archive .action-front {
  border-radius: 8px;
}

/* Archive button hover: red instead of green */
.pushable-archive:hover:not(:disabled) .action-front {
  background: radial-gradient(circle at 50% 50%, #ef4444 0%, #dc2626 90%);
  transform: translateY(-4px) scale(1.05);
}

.pushable-archive .action-text {
  margin-left: 4px;
  font-size: 0.75rem;
}

.pushable-archive:hover:not(:disabled) .action-edge {
  background: linear-gradient(to top,
      #991b1b 0%,
      #dc2626 50%,
      #991b1b 100%);
}

.pushable-archive:active:not(:disabled) .action-front {
  transform: translateY(-1px) scale(0.98);
  background: radial-gradient(circle at 50% 55%,
      #991b1b 0%,
      #991b1b 50%,
      #ef4444 70%,
      #ef4444 100%);
}

/* Special colors for star (follow) button */

/* Star button sizing */
.pushable-star {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.pushable-star .action-shadow {
  background: #f59e0b;
  border-radius: 6px;
}

.pushable-star .action-edge,
.pushable-star .action-front {
  border-radius: 6px;
}

.pushable-star .action-front {
  font-size: 0.875rem;
}

/* Not followed: yellow border, white inside */
.pushable-star .action-edge {
  background: linear-gradient(to top,
      #f59e0b 0%,
      #fbbf24 50%,
      #f59e0b 100%);
}

.pushable-star .action-front {
  background: radial-gradient(circle at 50% 40%, white 0%, #fefce8 90%);
  color: #f59e0b;
}

/* Following state: solid yellow */
.pushable-star.following .action-edge {
  background: linear-gradient(to top,
      #f59e0b 0%,
      #fbbf24 50%,
      #f59e0b 100%);
}

.pushable-star.following .action-front {
  /* Keep the same base as not-followed (white base) */
  background: radial-gradient(circle at 50% 40%, white 0%, #fefce8 90%);
  /* Make the star icon solid yellow via currentColor */
  color: #fbbf24;
}

/* Hover: yellow border, white background for both states */
.pushable-star:hover:not(:disabled) .action-edge {
  background: linear-gradient(to top,
      #f59e0b 0%,
      #fbbf24 50%,
      #f59e0b 100%);
}

.pushable-star:hover:not(:disabled) .action-front {
  background: radial-gradient(circle at 50% 50%, #fefce8 0%, #fef3c7 90%);
  color: #f59e0b;
}

/* Simple follow button styles */
.btn-follow {
  background: transparent;
  border: 2px solid #eab308;
  border-radius: 6px;
  padding: 6px 8px;
  color: #eab308;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.btn-follow:hover {
  background-color: #eab308;
  color: white;
}

.btn-follow.following {
  background-color: #eab308;
  color: white;
}

.btn-follow.following:hover {
  background-color: #ca8a04;
  border-color: #ca8a04;
}

/* Project actions alignment */
.project-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Status badge icon transitions */
.pushable-badge .status-icon,
.pushable-badge .hover-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pushable-badge .status-icon {
  opacity: 1;
  transform: scale(1);
}

.pushable-badge .hover-icon {
  opacity: 0;
  transform: scale(0.8);
}

.pushable-badge:hover .status-icon {
  opacity: 0;
  transform: scale(0.8);
}

.pushable-badge:hover .hover-icon {
  opacity: 1;
  transform: scale(1);
}

/* OLD STATUS BADGE STYLES - COMMENTED OUT - NOW USING 3D PUSHABLE SYSTEM
.status-badge-round .status-icon,
.status-badge-round .hover-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.status-badge-round .status-icon {
  opacity: 1;
  transform: scale(1);
}

.status-badge-round .hover-icon {
  opacity: 0;
  transform: scale(0.8);
}

.status-badge-round .status-square {
  font-size: 12px;
  color: white;
}

.status-badge-round .fas.fa-check,
.status-badge-round .fas.fa-redo {
  font-size: 14px;
}

.status-badge-round .spinner-border {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

/* Hover effects for round badges */
.status-badge-round.status-badge-unassigned:hover {
  background-color: #374151;
  border-color: #4b5563;
}

.status-badge-round.status-badge-assigned:hover {
  background-color: #10b981 !important;
  border-color: #059669 !important;
}

.status-badge-round.status-badge-assigned:hover .status-icon {
  opacity: 0;
  transform: scale(0.8);
}

.status-badge-round.status-badge-assigned:hover .hover-icon {
  opacity: 1;
  transform: scale(1);
}

.status-badge-round.status-badge-complete:hover {
  background-color: #374151 !important;
  border-color: #4b5563 !important;
  color: white !important;
}

.status-badge-round.status-badge-complete:hover .status-icon {
  opacity: 0;
  transform: scale(0.8);
}

.status-badge-round.status-badge-complete:hover .hover-icon {
  opacity: 1;
  transform: scale(1);
}

END OLD STATUS BADGE STYLES */
/* Legacy Status Badge Styles (for backwards compatibility) */

/* Legacy Status Badge Styles (for backwards compatibility) */
.status-badge {
  min-width: 100px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0 .5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Override for round badges */
.status-badge.status-badge-round {
  min-width: auto;
  height: auto;
  gap: 0;
  padding: 0;
  overflow: visible;
}

.status-label,
.action-label {
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.status-label {
  opacity: 1;
  transform: translateY(0);
}

.action-label {
  opacity: 0;
  transform: translateY(100%);
}

.status-badge:hover .status-label {
  opacity: 0;
  transform: translateY(-100%);
}

.status-badge:hover .action-label {
  opacity: 1;
  transform: translateY(0);
}

.status-badge .spinner-border {
  width: 12px;
  height: 12px;
}

.status-badge i {
  font-size: 12px;
}

/* Legacy hover background transitions */
.status-badge.not-started:hover {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
}

.status-badge.in-progress:hover {
  background-color: var(--bs-success) !important;
  color: #fff !important;
}

.status-badge.done:hover {
  background-color: var(--bs-warning) !important;
  color: #212529 !important;
}

/* Non-clickable status badge */
.status-badge.non-clickable {
  cursor: default;
}

.status-badge.non-clickable:hover .status-label {
  opacity: 1;
  transform: translateY(0);
}

.status-badge.non-clickable:hover .action-label {
  opacity: 0;
  transform: translateY(100%);
}

/* Owner badge colors - improved design */
.badge.bg-secondary {
  background-color: #6b7280;
  color: white;
  border: 1px solid #4b5563;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.badge.bg-secondary:hover {
  background-color: #4b5563;
  border-color: #374151;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.badge.bg-primary {
  background-color: #ea580c;
  color: white;
  border: 1px solid #c2410c;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.badge.bg-primary:hover {
  background-color: #c2410c;
  border-color: #9a3412;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.badge.bg-success {
  background-color: #16a34a;
  color: white;
  border: 1px solid #15803d;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.badge.bg-success:hover {
  background-color: #15803d;
  border-color: #166534;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.badge.bg-light {
  background-color: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
  font-weight: 500;
  font-style: normal;
}

.badge.bg-light:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
  color: #374151;
  transition: all 0.15s ease;
}

/* Form styles */
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background-color: white;
  color: #374151;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select.form-select-sm,
input[type="text"].form-select-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Empty state styling */
.text-muted {
  color: #6b7280;
  font-style: normal;
  font-weight: 500;
}

/* No owner badge specific styling */
.badge.bg-light.text-muted {
  background-color: #f8fafc;
  color: #6b7280;
  border: 1px dashed #d1d5db;
  font-weight: 500;
}

/* User avatar styling */
.user-avatar {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar img {
  transition: opacity 0.15s ease;
}

.user-avatar:hover img {
  opacity: 0.9;
}

/* Avatar sizes */
.user-avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 0.625rem;
}

.user-avatar-md {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.user-avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

/* Ensure projects container has full width */
#projects-container {
  width: 100%;
}

/* Organization projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 100%;
  width: 100%;
  justify-content: stretch;
  /* Prevent horizontal overflow */
  overflow-x: hidden;
}

/* Responsive breakpoints - mobile first approach */
/* Mobile: Always single column for optimal mobile experience */
@media (max-width: 767px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  /* Ensure cards fill width properly on mobile */
  .project-card {
    width: 100%;
    margin: 0;
    min-width: 0;
  }
}

/* Tablet: Allow 2 columns only on larger tablets */
@media (min-width: 768px) and (max-width: 1199px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Desktop: 3 columns for large screens */
@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.project-card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.875rem;
  background: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  max-width: none !important;
  width: 100%;
  box-sizing: border-box;
}

.project-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.project-meta {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.project-meta-text {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  line-height: 1.4;
}

.project-meta-text strong {
  color: #374151;
  font-weight: 500;
}

.meta-separator {
  margin: 0 0.125rem;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .project-meta-text {
    font-size: 0.6875rem;
  }
}

/* Make progress bar more compact */
.project-meta .progress {
  height: 4px !important;
  min-width: 60px;
  max-width: 100px;
  flex: 1;
  margin: 0 !important;
}

.project-meta .progress .progress-bar {
  font-size: 0 !important;
  /* Hide percentage text */
}

.project-actions {
  flex-shrink: 0;
}

.follow-button {
  transition: transform 0.15s ease;
}

.follow-button:hover {
  transform: scale(1.1);
}

.follow-button.following {
  color: #eab308 !important;
}

.follow-button.not-following {
  color: #eab308 !important;
}

/* Projects preview grid for dashboard */
.projects-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.project-preview-card {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f9fafb;
  transition: border-color 0.15s ease;
}

.project-preview-card:hover {
  border-color: #d1d5db;
}

.project-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.project-preview-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.project-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.project-preview-meta .separator {
  color: #d1d5db;
}

/* Utility spacing */
.mt-3 {
  margin-top: 1rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.p-3 {
  padding: 1rem;
}

/* Inline Editing Styles */
.template-name:hover .edit-icon,
td:hover .edit-icon {
  opacity: 1 !important;
}

.template-name-edit-form,
.step-name-edit-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.template-name-input,
.step-name-input {
  border: 2px solid #3b82f6;
  border-radius: 4px;
  padding: 0.375rem 0.75rem;
  font-size: inherit;
  font-weight: inherit;
}

.template-name-input:focus,
.step-name-input:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.edit-icon {
  transition: opacity 0.2s;
  font-size: 0.875rem;
}

/* Project Steps within Cards - Updated for Compact Design */
.project-steps {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.step-row:last-child {
  border-bottom: none;
}

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

.step-name {
  font-weight: 500;
  color: #374151;
}

.step-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.step-status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.step-owner {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #6b7280;
}

/* Template-specific styling */
.template-step-row .step-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-step-form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.template-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Icon buttons */
.btn-icon {
  padding: 0.25rem 0.5rem;
  border: none;
  background: none;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.btn-icon:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.btn-icon.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.btn-icon.btn-secondary:hover {
  background-color: rgba(107, 114, 128, 0.1);
}

/* Inline editing styles */
.template-name:hover .edit-icon,
td:hover .edit-icon {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.template-name-edit-form,
.step-name-edit-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.template-name-input,
.step-name-input {
  border: 2px solid #3b82f6;
  border-radius: 4px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.template-name-input:focus,
.step-name-input:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Make clickable areas more obvious */
.template-name[hx-get],
td[hx-get] {
  transition: background-color 0.2s ease;
}

.template-name[hx-get]:hover,
td[hx-get]:hover {
  background-color: #f3f4f6;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
}

/* Project-specific inline editing styles */
.project-title {
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 4px;
  padding: 0.125rem 0.25rem;
  /* Match .inline-editable padding */
  margin: -0.125rem -0.25rem;
  /* Adjust margin to match new padding */
}

.project-title:hover {
  background-color: #f3f4f6;
}

.project-title:hover .w-4 {
  opacity: 1 !important;
}

.step-name {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 3px;
  padding: 0.125rem 0.25rem;
  margin: -0.125rem -0.25rem;
}

.step-name:hover {
  background-color: #f3f4f6;
  transform: translateX(2px);
}

.step-name:hover .w-3 {
  opacity: 1 !important;
}

/* Project and template title hover effects */
.project-title[style*="cursor: pointer"],
.template-name[style*="cursor: pointer"] {
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 0.125rem 0.25rem;
  margin: -0.125rem -0.25rem;
}

.project-title[style*="cursor: pointer"]:hover,
.template-name[style*="cursor: pointer"]:hover {
  background-color: #f3f4f6;
  transform: translateX(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.inline-edit-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 10;
}

.inline-edit-form-small {
  gap: 0.25rem;
}

.inline-edit-input {
  flex: 1;
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
}

.inline-edit-input:focus {
  box-shadow: 0 0 0 2px #3b82f6;
}

/* Hide any duplicate or orphaned inline edit forms */
.inline-edit-form+.inline-edit-form {
  display: none;
}

/* Ensure forms are properly contained */
.project-title .inline-edit-form,
.step-name .inline-edit-form {
  width: 100%;
  max-width: 100%;
}

.inline-edit-actions {
  display: flex;
  gap: 0.25rem;
}

.inline-edit-actions-small {
  gap: 0.125rem;
}

.inline-edit-save,
.inline-edit-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.inline-edit-save {
  background-color: #10b981;
  color: white;
}

.inline-edit-save:hover {
  background-color: #059669;
}

.inline-edit-cancel {
  background-color: #6b7280;
  color: white;
}

.inline-edit-cancel:hover {
  background-color: #4b5563;
}

/* Project card archive button */
.project-archive-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.project-archive-btn:hover {
  color: #dc2626;
  border-color: #dc2626;
  background-color: #fef2f2;
}

/* Audit Timeline styles */
.timeline {
  margin: 1rem 0;
}

.timeline-item {
  display: flex;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #e5e7eb;
}

.timeline-marker {
  flex-shrink: 0;
  margin-right: 1rem;
}

.timeline-content {
  flex: 1;
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.timeline-user {
  font-weight: 600;
  color: #1f2937;
}

.timeline-action {
  color: #6b7280;
}

.timeline-object {
  font-weight: 500;
  color: #374151;
}

.timeline-time {
  color: #9ca3af;
  font-size: 0.75rem;
  margin-left: auto;
}

.timeline-description {
  color: #4b5563;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.timeline-changes {
  font-size: 0.75rem;
  color: #6b7280;
}

.change-item {
  margin-bottom: 0.25rem;
}

.old-value {
  color: #dc2626;
  text-decoration: line-through;
}

.new-value {
  color: #059669;
  font-weight: 500;
}

.pagination-wrapper {
  margin-top: 2rem;
  text-align: center;
}

.step-links {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.step-links a {
  color: #3b82f6;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #d1d5db;
}

.step-links a:hover {
  background-color: #f3f4f6;
}

.step-links .current {
  padding: 0.25rem 0.5rem;
  background-color: #3b82f6;
  color: white;
  border-radius: 4px;
}

/* Empty state styling */
.empty-state {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

/* Section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 2rem;
}

.section-header h1 {
  margin: 0;
  flex-shrink: 0;
}

.search-container {
  flex: 1;
  max-width: 600px;
  min-width: 300px;
}

.section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

/* Project sections */
.projects-section {
  margin-bottom: 2rem;
}

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

.mt-4 {
  margin-top: 1.5rem;
}

.section-title {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Archive button styling */
.archive-btn {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.archive-btn i {
  margin-right: 0.25rem;
  font-size: 0.625rem;
}

/* Project actions alignment */
.project-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Inline editing styles */
.inline-editable {
  cursor: pointer;
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.inline-editable:hover {
  background-color: #f3f4f6;
}

.template-name {
  cursor: pointer;
}

.step-name {
  cursor: pointer;
}

.template-controls {
  display: flex;
  gap: 0.5rem;
}

.step-info {
  flex: 1;
}

.step-form {
  padding: 1rem;
}

.flex-container {
  display: flex;
}

.flex-item {
  flex: 1;
}

.full-width-input {
  width: 100%;
}

.inline-form {
  display: inline;
}

.follow-button {
  border: none;
  background: transparent;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.inline-template-edit {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.template-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.add-step-form form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.template-name-edit-form {
  flex-direction: column;
  gap: 0.5rem;
}

.flex-gap {
  gap: 0.5rem;
}

.step-name-edit-form {
  gap: 0.5rem;
  align-items: center;
}

.form-add-step {
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.badge-with-avatar {
  align-items: center;
  gap: 0.5rem;
  border-radius: 20px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.template-name-edit-form {
  flex-direction: column;
  gap: 0.5rem;
}

.step-name-edit-form {
  gap: 0.5rem;
  align-items: center;
}

.project-title-input {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.125rem 0.25rem;
  /* Match .inline-editable padding */
  width: 100%;
  max-width: 400px;
}

.step-name-input {
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  padding: 0.125rem 0.375rem;
  width: 100%;
  max-width: 200px;
}

/* Template creation form styling */
.template-creation-form {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

/* Template information highlighting in search results */
.template-info {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: 0.5rem;
}

.template-name {
  color: #2563eb;
  font-weight: 600;
  background-color: #eff6ff;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  border: 1px solid #dbeafe;
}

/* Toast notification */
.toast-notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  max-width: 400px;
  margin: 0;
  padding: 1rem;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-icon {
  background: #10b981;
  color: white;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.toast-message {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-action {
  color: #065f46;
  text-decoration: underline;
  font-size: 0.875rem;
}

/* Step name styling */
.step-name {
  cursor: pointer;
}

/* Language switcher */
.language-switcher form {
  display: inline;
}

.language-select {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Search functionality */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-container {
  display: flex;
  align-items: center;
}

.search-form {
  width: 100%;
  display: block;
}

.search-input {
  border: none;
  padding: 0.5rem 0.75rem;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  flex: 1;
  min-width: 0;
}

.search-input:focus {
  outline: none;
}

.search-form:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.search-button {
  border: none;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  color: #6b7280;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e5e7eb;
}

.search-button:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Improved step styling */
.step-container {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s;
}

.step-container:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.step-name {
  font-weight: 500;
  color: #1f2937;
  font-size: 0.95rem;
}

.step-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.875rem;
}

.step-owner-info,
.step-status-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Improved owner styling */
.step-owner-cell,
.step-owner-select {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.375rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-owner-cell:hover,
.step-owner-select:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

/* Improved dropdown behavior */
.step-owner-select select,
.step-status-select select {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  cursor: pointer;
}

/* Visual feedback for critical actions */
.critical-action {
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.critical-action.holding {
  cursor: not-allowed;
  transform: scale(0.98);
  opacity: 0.8;
}

.critical-action .hold-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  width: 0%;
  transition: width 0.05s linear;
  z-index: 10;
  border-radius: 0 0 4px 4px;
}

.critical-action.action-complete {
  background-color: #10b981 !important;
  border-color: #059669 !important;
  color: white !important;
  transform: scale(1.02);
}

.critical-action.action-complete .hold-progress {
  background: #10b981;
  width: 100% !important;
}

/* Step delete button styling */
.step-delete-btn {
  min-width: 20px;
  min-height: 20px;
  background: #dc2626 !important;
  border-radius: 3px !important;
  margin-left: 8px !important;
}

.step-delete-btn .action-front {
  background: #dc2626 !important;
  border-radius: 3px !important;
}

.step-delete-btn .action-front i {
  color: white !important;
  font-size: 12px !important;
}

/* Owner avatar initials styling */
.owner-avatar-initials {
  width: 16px;
  height: 16px;
  font-size: 0.625rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  background-color: #22c55e;
}

/* Enhanced dropdown behavior styles */
.dropdown-opening {
  transform: scale(1.02);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-owner-select select.auto-opened,
.step-status-select select.auto-opened {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #f8fafc;
}

.filter-dropdown select.dropdown-active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: scale(1.02);
}

.filter-dropdown select.filter-changed {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background-color: #f0fdf4;
}

/* Enhanced visual feedback for dropdowns */
.step-status:hover,
.step-owner:hover {
  cursor: pointer;
  background-color: rgba(59, 130, 246, 0.05);
  border-left: 3px solid #3b82f6;
  transition: all 0.2s ease;
}

/* Filter page specific enhancements */
.filter-container .filter-dropdown {
  position: relative;
}

.filter-container .filter-dropdown::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #6b7280;
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.filter-container .filter-dropdown.dropdown-active::before {
  transform: translateY(-50%) rotate(180deg);
}

/* Projects grid improvements for filtered view */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem;
  margin-top: 1rem;
  width: 100%;
  justify-content: stretch;
}

.project-card {
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.project-title a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
}

.project-title a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.project-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.matching-steps {
  margin-top: 1rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.matching-steps h4 {
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.empty-state {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  margin: 2rem 0;
}

/* Unified Step Card Styling */
.project-steps {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.75rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  flex: 1;
}

.step-name {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: flex-start;
}

.step-name-text {
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
}

.step-name-text:hover {
  color: #1f2937;
}

.step-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  min-height: 40px;
  margin-top: auto;
}

.step-status-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.step-owner-info {
  flex-shrink: 0;
  position: relative;
  max-width: 150px;
  overflow: hidden;
  min-width: 120px;
}

/* Owner badge container styles */
.owner-badge-container {
  position: relative;
  display: flex;
  align-items: center;
}

.owner-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  max-width: 100%;
  overflow: hidden;
}

.owner-badge:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.owner-badge.has-owner {
  background: #dbeafe;
  border-color: #93c5fd;
}

.owner-badge.has-owner:hover {
  background: #bfdbfe;
  border-color: #60a5fa;
}

.owner-badge.no-owner {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #6b7280;
}

.owner-badge.no-owner:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

/* Status-based color coordination */
/* Unassigned status - grey (default styles already handle this) */

/* Assigned status - orange */
.owner-badge.status-assigned.has-owner {
  background: #fed7aa;
  border-color: #fdba74;
  color: #ea580c;
}

.owner-badge.status-assigned.has-owner:hover {
  background: #fdba74;
  border-color: #fb923c;
}

.owner-badge.status-assigned.no-owner {
  background: #fed7aa;
  border-color: #fdba74;
  color: #ea580c;
}

.owner-badge.status-assigned.no-owner:hover {
  background: #fdba74;
  border-color: #fb923c;
}

/* Complete status - green */
.owner-badge.status-complete.has-owner {
  background: #bbf7d0;
  border-color: #86efac;
  color: #16a34a;
}

.owner-badge.status-complete.has-owner:hover {
  background: #86efac;
  border-color: #4ade80;
}

.owner-badge.status-complete.no-owner {
  background: #bbf7d0;
  border-color: #86efac;
  color: #16a34a;
}

.owner-badge.status-complete.no-owner:hover {
  background: #86efac;
  border-color: #4ade80;
}

/* Template-specific step card styles */
.template-card .step-card-compact {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.template-card .step-card-compact:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.template-card .step-compact-right {
  /* Template steps don't need the fixed widths for status/owner since they don't have them */
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.template-card .btn-danger {
  background-color: #dc2626;
  color: white;
  border: 1px solid #b91c1c;
}

.template-card .btn-danger:hover {
  background-color: #b91c1c;
  border-color: #991b1b;
}

/* Template action buttons styling to match step buttons */
.template-actions .btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.template-actions .btn-icon.btn-danger {
  background-color: #dc2626;
  color: white;
  border: 1px solid #b91c1c;
}

.template-actions .btn-icon.btn-danger:hover {
  background-color: #b91c1c;
  border-color: #991b1b;
  transform: scale(1.05);
}

.owner-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.owner-avatar-placeholder {
  background: #9ca3af;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.owner-name {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* New Round Owner Badge Styles */
.owner-badge-round {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Old owner badge styles - replaced by pushable system
.owner-badge-round:hover {
  transform: scale(1.1);
  border-color: #cbd5e1;
}

.owner-badge-round.has-owner {
  background: #dbeafe;
  border-color: #93c5fd;
}

.owner-badge-round.has-owner:hover {
  border-color: #60a5fa;
}

.owner-badge-round.no-owner {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #6b7280;
}

.owner-badge-round.no-owner:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.owner-badge-round.status-assigned.has-owner {
  background: #fed7aa;
  border-color: #fdba74;
  color: #ea580c;
}

.owner-badge-round.status-assigned.has-owner:hover {
  border-color: #fb923c;
}

.owner-badge-round.status-assigned.no-owner {
  background: #fed7aa;
  border-color: #fdba74;
  color: #ea580c;
}

.owner-badge-round.status-assigned.no-owner:hover {
  border-color: #fb923c;
}

.owner-badge-round.status-complete.has-owner {
  background: #bbf7d0;
  border-color: #86efac;
  color: #16a34a;
}

.owner-badge-round.status-complete.has-owner:hover {
  border-color: #4ade80;
}

.owner-badge-round.status-complete.no-owner {
  background: #bbf7d0;
  border-color: #86efac;
  color: #16a34a;
}

.owner-badge-round.status-complete.no-owner:hover {
  border-color: #4ade80;
}

.owner-badge-round.play-button {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #059669;
  color: white;
}

.owner-badge-round.play-button:hover {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: #047857;
  transform: scale(1.15);
}

.owner-badge-round.play-button .owner-avatar-placeholder {
  background: transparent;
  color: white;
}

.owner-badge-round.disabled {
  cursor: not-allowed !important;
  opacity: 0.6;
}

.owner-badge-round.disabled:hover {
  transform: none !important;
  border-color: inherit !important;
  background: inherit !important;
}
*/

/* Avatar styling within pushable badges */
.pushable-badge .owner-avatar-round {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.pushable-badge .owner-avatar-placeholder {
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  /* Smaller font */
  font-weight: 600;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Play button specific styling */
.pushable-badge.play-button .owner-avatar-placeholder {
  background: transparent;
  border: none;
}

.pushable-badge.play-button .owner-avatar-placeholder .fas {
  font-size: 14px;
  /* Smaller icon for compact badges */
}

/* Remove old owner badge styles - they're replaced by pushable system */

/* Owner selection form styling */
.owner-select-form {
  position: relative;
  z-index: 10;
}

.owner-select-dropdown {
  min-width: 150px;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.owner-select-dropdown:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

/* When dropdown is expanded (size > 1) */
.owner-select-dropdown[size]:not([size="1"]) {
  position: absolute;
  z-index: 1000;
  top: 0;
  left: 0;
  min-width: 150px;
  max-height: 120px;
  background: white;
  border: 1px solid #60a5fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.step-completion-toggle {
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-size: 0.875rem;
}

.step-completion-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Unassigned state - gray triangle (play button) */
.step-completion-toggle.unassigned {
  background: #f3f4f6;
  border-color: #9ca3af;
  border-radius: 50%;
}

.step-completion-toggle.unassigned:hover {
  background: #e5e7eb;
  border-color: #6b7280;
}

/* Unassigned disabled state */
.step-completion-toggle.unassigned:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.step-completion-toggle.unassigned:disabled:hover {
  background: #f3f4f6;
  /* Same as normal, no hover effect when disabled */
  border-color: #9ca3af;
  transform: none;
}

/* Assigned state - orange circle */
.step-completion-toggle.assigned {
  background: #fed7aa;
  border-color: #fb923c;
  border-radius: 50%;
}

.step-completion-toggle.assigned:hover {
  background: #fdba74;
  border-color: #f97316;
}

/* Complete state - green circle */
.step-completion-toggle.complete {
  background: #10b981;
  border-color: #059669;
  border-radius: 50%;
}

.step-completion-toggle.complete:hover {
  background: #059669;
  border-color: #047857;
}

.completion-check {
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

/* Unassigned - gray triangle play icon */
/* Icon colors for each status */

/* Unassigned - gray play icon */
.step-completion-toggle.unassigned .completion-check {
  color: #6b7280;
}

/* Assigned - white stop icon on orange background */
.step-completion-toggle.assigned .completion-check {
  color: white;
  font-weight: bold;
}

/* Complete - white checkmark on green background */
.step-completion-toggle.complete .completion-check {
  color: white !important;
  font-weight: bold;
  font-size: 1rem;
}

/* Complete disabled state */
.step-completion-toggle.complete:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Complete disabled checkmark should still be white on green */
.step-completion-toggle.complete:disabled .completion-check {
  color: white !important;
  font-weight: bold;
}

.step-completion-toggle.complete:disabled:hover {
  background: #10b981;
  /* Keep green background */
  border-color: #059669;
  transform: none;
  /* Disable scale transform when disabled */
}

.step-owner-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  min-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Template-specific styling */
.template-step-card .step-content {
  justify-content: space-between;
}

.template-step-card .step-name {
  flex: 1;
}

.empty-step {
  background: #f9fafb;
  border-style: dashed;
  color: #6b7280;
  text-align: center;
}

/* Fixed width for project cards - 2 per row */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem;
  width: 100%;
  justify-content: stretch;
}

.project-card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.25rem;
  background: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  box-sizing: border-box;
  min-height: 200px;
  overflow: visible;
  /* Allow 3D badge effects to show */
}

.project-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Compact Steps Design */
.steps-header {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 1rem 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

/* Responsive steps grid */
@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

.step-card-compact {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.5rem;
  transition: all 0.15s ease;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.step-card-compact:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.step-compact-content {
  display: flex;
  align-items: center;
  /* Center align for vertical alignment with badges */
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  min-height: 40px;
  flex-wrap: wrap;
}

/* Mobile: Stack vertically */
@media (max-width: 767px) {
  .step-compact-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .step-compact-right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.step-compact-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  /* Ensure vertical alignment with badges */
}

.step-compact-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* Increased margin between badges */
  flex-shrink: 0;
  flex-wrap: wrap;
  min-width: 0;
}

.step-compact-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.step-name-compact {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.2;
  cursor: pointer;
  word-break: break-word;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.125rem 0.25rem;
  margin: 0;
}

.step-name-compact:hover {
  color: #1f2937;
  background-color: #f3f4f6;
  border-radius: 4px;
}

.step-compact-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.5rem;
  /* Add some space before comment button */
}

.btn-compact {
  width: 36px;
  /* Even bigger */
  height: 36px;
  border-radius: 8px;
  /* More rounded like a post-it */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  /* Bigger font */
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fbbf24;
  /* Always yellow like a post-it */
  color: #92400e;
  /* Darker yellow-brown text */
  box-shadow: 0 3px 6px rgba(251, 191, 36, 0.4);
}

.btn-compact:hover {
  transform: scale(1.15);
  /* Even bigger hover effect */
  background: #f59e0b;
  /* Darker yellow on hover */
  box-shadow: 0 6px 12px rgba(251, 191, 36, 0.5);
}

.step-owner-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.step-compact-status {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Compact Badge Styles */
.step-compact-status .badge {
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
  height: 28px;
  display: flex;
  align-items: center;
  border-radius: 4px;
}

/* Responsive Design for Compact Layout */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .step-card-compact {
    min-height: 50px;
  }

  .step-compact-left {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .steps-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* Enhanced Search Styling */
.enhanced-search-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: stretch;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.enhanced-search {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  font-size: 0.875rem;
  outline: none;
  background: transparent;
  flex: 1;
  min-width: 0;
}

.enhanced-search-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.enhanced-search-wrapper .search-button {
  border: none;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  color: #6b7280;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e5e7eb;
  flex-shrink: 0;
  position: relative;
  min-width: 40px;
}

.enhanced-search-wrapper .search-button:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Force disable all search suggestions - Updated 2025-08-29 */
.search-suggestions,
.search-dropdown,
.autocomplete-dropdown,
[data-suggestions],
.enhanced-search-wrapper .suggestions {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  z-index: -9999 !important;
}

/* Disable browser autocomplete dropdowns */
.enhanced-search-wrapper input::-webkit-list-button,
.enhanced-search-wrapper input::-webkit-calendar-picker-indicator {
  display: none !important;
}

/* Search Help Styles */
.search-help {
  position: relative;
  margin-top: 0.5rem;
}

.search-help-toggle {
  display: flex;
  justify-content: flex-end;
}

.search-help-toggle .btn-link {
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.search-help-toggle .btn-link:hover {
  background-color: #f8f9fa;
  text-decoration: none;
}

.search-help-content {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  min-width: 400px;
  max-width: 500px;
}

.search-help-content .card {
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.search-examples {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-example {
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.search-example:last-child {
  border-bottom: none;
}

.search-example code {
  background-color: #f3f4f6;
  color: #374151;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.8rem;
  min-width: 120px;
  display: inline-block;
  margin-right: 0.75rem;
}

.search-example::after {
  content: attr(title);
  flex: 1;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Responsive search help */
@media (max-width: 768px) {
  .search-help-content {
    position: fixed;
    top: auto;
    right: 1rem;
    left: 1rem;
    min-width: auto;
    max-width: none;
  }
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  display: none !important;
  /* Force hide the dropdown */
}

.search-suggestions.show {
  display: block;
}

.search-suggestion {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
}

.search-suggestion:hover {
  background: #f9fafb;
}

.search-suggestion:last-child {
  border-bottom: none;
}

.suggestion-type {
  font-weight: 500;
  color: #374151;
}

.suggestion-description {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.125rem;
}

/* Step comment button styles - 3D pushable design */
.pushable-comment {
  --badge-size: 24px;
  --badge-yellow: #fbbf24;
  --badge-yellow-light: #fde047;
  --edge-yellow: #f59e0b;
  --edge-yellow-dark: #eab308;
  --shadow-yellow: #f59e0b;

  background: transparent;
  border: none;
  padding: 0;
  margin-right: 0.25rem;
  cursor: pointer;
  outline-offset: 4px;
  position: relative;
  width: var(--badge-size);
  height: var(--badge-size);
}

.pushable-comment .action-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: var(--shadow-yellow);
  transform: translateY(2px);
  transition: transform 300ms cubic-bezier(.3, .7, .4, 1);
}

.pushable-comment .action-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(to top,
      var(--edge-yellow-dark) 0%,
      var(--edge-yellow) 50%,
      var(--edge-yellow-dark) 100%);
}

.pushable-comment .action-front {
  display: flex;
  position: relative;
  padding: 0;
  border-radius: 4px;
  font-size: 12px;
  color: #ffffff;
  /* white icon/text on yellow badge */
  background: radial-gradient(circle at 50% 50%, var(--badge-yellow-light) 0%, var(--badge-yellow) 90%);
  will-change: transform;
  transform: translateY(-4px);
  transition: transform 300ms cubic-bezier(.3, .7, .4, 1);
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Note icon should be white over yellow */
.pushable-comment .action-front i {
  color: #ffffff;
  background: none;
  padding: 0;
}

.pushable-comment:hover:not(:disabled) .action-front {
  transform: translateY(-6px);
  background: radial-gradient(circle at 50% 50%, #fde047 0%, #f59e0b 90%);
}

.pushable-comment:hover:not(:disabled) .action-shadow {
  transform: translateY(4px);
}

.pushable-comment:active:not(:disabled) .action-front {
  transform: translateY(-2px);
  transition: transform 150ms cubic-bezier(.3, .7, .4, 1);
}

.pushable-comment:active:not(:disabled) .action-shadow {
  transform: translateY(1px);
  transition: transform 150ms cubic-bezier(.3, .7, .4, 1);
}

/* When comment has content - brighter yellow */
.pushable-comment.has-comment .action-front {
  background: radial-gradient(circle at 50% 50%, #fde047 0%, #eab308 90%);
  color: #ffffff;
}

.pushable-comment.has-comment:hover:not(:disabled) .action-front {
  background: radial-gradient(circle at 50% 50%, #fef08a 0%, #fbbf24 90%);
}

/* Comment modal customizations */
#step-comment-modal .modal-content {
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#step-comment-modal .modal-header {
  background-color: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

#step-comment-modal .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Template inline style replacements */
.step-comment-modal {
  display: block;
  background-color: rgba(0, 0, 0, 0.5);
}

.step-owner-modal {
  display: block;
  background-color: rgba(0, 0, 0, 0.5);
}

.comment-success-alert {
  z-index: 9999;
  max-width: 300px;
}

/* Step Owner Modal Customizations */
.step-owner-modal .modal-content {
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.step-owner-modal .modal-header {
  background-color: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.step-owner-modal .user-list {
  max-height: 300px;
  overflow-y: auto;
}

.step-owner-modal .user-option {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-owner-modal .user-option:hover {
  background-color: #f8f9fa;
}

.step-owner-modal .user-option:last-child {
  border-bottom: none;
}

.step-owner-modal .user-option.selected {
  background-color: #e3f2fd;
  border-color: #2196f3;
}

.step-owner-modal .user-avatar,
.step-owner-modal .user-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e5e7eb;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.875rem;
}

.step-owner-modal .user-avatar-placeholder.no-owner {
  background-color: #f3f4f6;
  color: #9ca3af;
}

.step-owner-modal .user-info {
  flex: 1;
  min-width: 0;
}

.step-owner-modal .user-name {
  font-weight: 500;
  color: #333;
  margin: 0 0 0.125rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-owner-modal .user-email {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-owner-modal .user-check {
  opacity: 0;
  transition: opacity 0.15s ease;
  color: #2196f3;
}

.step-owner-modal .user-option.selected .user-check {
  opacity: 1;
}

.step-owner-modal .user-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

.step-owner-modal .user-option.disabled:hover {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Owner Selection Popup Styles */
.owner-search-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.owner-option {
  padding: 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.owner-option:hover {
  background-color: #f8f9fa;
}

.owner-option:last-child {
  border-bottom: none;
}

.owner-option.selected {
  background-color: #e3f2fd;
  border-color: #2196f3;
}

.owner-option img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.owner-option .owner-info {
  flex: 1;
  min-width: 0;
}

.owner-option .owner-name {
  font-weight: 500;
  color: #333;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-option .owner-email {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ownerSearchInput {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

#ownerSearchInput:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* Mobile responsive improvements */
@media (max-width: 767px) {

  /* Fix 3D button behavior on mobile - reduce animation and improve touch */
  .pushable-star,
  .pushable-comment {
    /* Reduce button bounce on mobile for better touch response */
    transition: transform 0.1s ease;
  }

  .pushable-star:active:not(:disabled) .action-front,
  .pushable-comment:active:not(:disabled) .action-front {
    /* Ensure pressed state works properly on mobile */
    transform: translateY(2px);
    transition: transform 0.05s;
  }

  .pushable-star:active:not(:disabled) .action-shadow,
  .pushable-comment:active:not(:disabled) .action-shadow {
    transform: translateY(0px);
    transition: transform 0.05s;
  }

  /* Fix yellow color stuck issue on mobile */
  .pushable-star:hover:not(:disabled) .action-front {
    background: radial-gradient(circle at 50% 50%, #fefce8 0%, #fef3c7 90%) !important;
    color: #f59e0b !important;
  }

  /* Ensure proper touch target sizes */
  .pushable-star,
  .pushable-comment {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  /* Template card improvements for mobile */
  .template-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 1rem !important;
    box-sizing: border-box;
  }

  .template-card .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .template-card .template-name {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .template-card .btn-primary {
    width: 100%;
    margin-top: 0.75rem;
    font-size: 1rem;
    padding: 0.75rem;
    z-index: 10;
    position: relative;
  }

  /* Fix overlapping issues */
  .template-card .card-body {
    padding-bottom: 4rem;
    /* Space for button */
    position: relative;
  }

  .template-actions {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 5;
  }

  /* Prevent horizontal scroll on mobile */
  body {
    overflow-x: hidden;
  }

  .page-container {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .content-card {
    margin: 0;
    border-radius: 0;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Fix search container on mobile */
  .search-container {
    overflow-x: hidden;
    max-width: 100%;
  }

  .enhanced-search-wrapper {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .search-input {
    font-size: 16px;
    /* Prevent zoom on iOS */
    min-width: 0;
  }
}
