/* Boola-Inspired Minimal Design System */
/* Monochrome Apple-style aesthetic with clean typography */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Backgrounds */
  --background: 0 0% 100%;           /* Pure white */
  --foreground: 0 0% 0%;             /* Pure black */
  
  /* Components */
  --card: 0 0% 100%;
  --card-foreground: 0 0% 0%;
  
  /* Interactive Elements */
  --primary: 0 0% 0%;                /* Black primary */
  --primary-foreground: 0 0% 100%;   /* White on black */
  
  /* Muted Elements */
  --muted: 0 0% 96%;                 /* Light gray */
  --muted-foreground: 0 0% 45%;      /* Medium gray */
  
  /* Form Elements */
  --border: 0 0% 90%;                /* Light gray borders */
  --input: 0 0% 90%;                 /* Input backgrounds */
  --ring: 0 0% 0%;                   /* Black focus rings */
  
  /* Status Colors */
  --success: 120 100% 25%;           /* Dark green */
  --warning: 45 100% 51%;            /* Orange */
  --danger: 0 100% 50%;              /* Red */
  
  /* Shadows */
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  font-feature-settings: 'liga' 1, 'calt' 1;
  
  /* Subtle dot pattern background */
  background-image: radial-gradient(circle at 1px 1px, rgb(0 0 0 / 0.02) 1px, transparent 0);
  background-size: 24px 24px;
  
  /* Account for fixed header and sidebar */
  padding-top: 60px;
  margin-left: 280px;
  transition: margin-left 0.3s ease;
}

body.sidebar-collapsed {
  margin-left: 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  left: 0;
  top: 60px;
  width: 280px;
  height: calc(100vh - 60px);
  background: hsl(var(--card));
  border-right: 1px solid hsl(var(--border));
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.sidebar.collapsed .sidebar-header {
  padding: 1rem;
  justify-content: center;
}

.sidebar.collapsed .sidebar-toggle {
  margin: 0;
  position: relative;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-logo {
  opacity: 0;
  pointer-events: none;
}

.sidebar-logo h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  position: relative;
}

.sidebar-logo h1::after {
  content: 'BETA';
  position: absolute;
  top: -6px;
  right: -32px;
  font-size: 0.5rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.sidebar-toggle:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 2rem;
}

.sidebar.collapsed .nav-section {
  margin-bottom: 1rem;
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-section-title {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.sidebar-nav .nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1rem;
}

.sidebar.collapsed .sidebar-nav .nav-links {
  padding: 0 0.5rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.sidebar.collapsed .sidebar-nav .nav-link {
  padding: 0.75rem;
  justify-content: center;
  gap: 0;
}

.sidebar.collapsed .sidebar-nav .nav-link span {
  opacity: 0;
  position: absolute;
  left: 50px;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  z-index: 1001;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-nav .nav-link:hover span {
  opacity: 1;
}

.sidebar-nav .nav-link:hover {
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
}

.sidebar-nav .nav-link.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.nav-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  flex-shrink: 0;
}

.sidebar-nav .nav-link.active .nav-icon {
  opacity: 1;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.sidebar.collapsed .sidebar-footer {
  padding: 0.5rem;
}

.sidebar-instance-info {
  padding: 1rem;
  background: hsl(var(--muted) / 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-instance-info {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.sidebar-instance-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  display: block;
  margin-bottom: 0.25rem;
}

.sidebar-instance-name {
  font-weight: 600;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.admin-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar.collapsed .admin-section {
  align-items: center;
}

.sidebar.collapsed .admin-section .admin-badge,
.sidebar.collapsed .admin-section .btn {
  width: auto;
  padding: 0.5rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.collapsed .admin-section .admin-badge span,
.sidebar.collapsed .admin-section .btn span {
  display: none;
}

.sidebar.collapsed .admin-section .btn {
  min-width: 40px;
}

/* Mobile toggle button */
.mobile-sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 500; }

p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

/* Header - Updated for sidebar */
.header {
  display: none;
}

.header-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-section h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  position: relative;
}

.logo-section h1::after {
  content: 'BETA';
  position: absolute;
  top: -6px;
  right: -32px;
  font-size: 0.5rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
}

.yale-logo {
  width: 32px;
  height: 32px;
}

/* Hide old navigation */
.navigation {
  display: none;
}

/* Instance Status Strip - Updated for sidebar */
.instance-status-strip {
  background: hsl(var(--muted) / 0.3);
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.75rem 0;
  font-size: 0.875rem;
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

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

.instance-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instance-label {
  font-weight: 500;
  color: hsl(var(--foreground));
}

.instance-badge {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.scheduler-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--danger));
  animation: pulse 2s infinite;
}

.status-dot.active {
  background: hsl(var(--success));
}

.status-dot.warning {
  background: hsl(var(--warning));
}

.status-text {
  font-weight: 500;
  color: hsl(var(--foreground));
}

.status-timestamp {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-left: 0.5rem;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
}

/* Page Title - Updated for new layout */
.page-title-band {
  background: hsl(var(--background));
  padding: 2rem 0;
  text-align: center;
}

.page-title-band .container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.page-title-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

/* Sections */
.section {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.section-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-content {
  padding: 1.5rem;
}

.main-content {
  padding: 0 1rem;
}

/* Forms - Minimal */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  background: hsl(var(--input));
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Buttons - Clean */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover:not(:disabled) {
  background: hsl(var(--primary) / 0.9);
}

.btn-secondary {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-secondary:hover {
  background: hsl(var(--muted) / 0.8);
}

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

/* File Upload - Minimal */
.file-upload-area {
  border: 2px dashed hsl(var(--border));
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  background: hsl(var(--muted) / 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-area:hover {
  border-color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.5);
}

.file-upload-area.dragover {
  border-color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.7);
  transform: scale(1.02);
}

/* Cards */
.analysis-result,
.analysis-card,
.criterion-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.analysis-card:hover,
.criterion-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Score Elements */
.score-circle,
.mini-score-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow);
}

.score-circle {
  width: 80px;
  height: 80px;
  font-size: 1.5rem;
}

.mini-score-circle {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.score-excellent { background: hsl(var(--success)); }
.score-strong { background: hsl(var(--primary)); }
.score-moderate { background: hsl(var(--warning)); color: hsl(var(--foreground)); }
.score-weak { background: hsl(var(--danger) / 0.8); }
.score-poor { background: hsl(var(--danger)); }

/* Grid Layouts */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 0;
}

/* Footer - Minimal */
/* Footer - Minimal */
.footer {
  border-top: none !important;
  padding: 1.5rem 0 !important;
  margin-top: 4rem !important;
  background: #000000 !important;
  color: #ffffff !important;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  gap: 2rem;
}

.footer-left {
  flex: 1;
}

.footer-right {
  text-align: right;
}

.footer-instance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-yale-logo {
  height: 16px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-instance-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.footer-infrastructure {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Remove old footer styles */
.footer-content h3,
.footer-content p,
.footer-content ul,
.footer-content ul li,
.footer-bottom,
.footer-bottom .powered-by {
  display: none;
}

/* Admin Elements */
.admin-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(var(--foreground));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Loading States */
.loading-analyses {
  text-align: center;
  padding: 3rem;
  color: hsl(var(--muted-foreground));
}

.no-analyses {
  text-align: center;
  padding: 4rem 2rem;
  color: hsl(var(--muted-foreground));
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  
  .section-content {
    padding: 1rem;
  }
  
  .main-content {
    padding: 0 0.5rem;
  }
  
  /* Mobile responsive */
  .sidebar {
    width: 280px;
    transition: transform 0.3s ease;
  }
  
  .sidebar.mobile-collapsed {
    transform: translateX(-100%);
  }
  
  .sidebar.collapsed {
    width: 280px;
    transform: none;
  }
  
  .mobile-sidebar-toggle {
    display: block;
  }
  
  body {
    margin-left: 0;
  }
  
  body.sidebar-collapsed {
    margin-left: 0;
  }
  
  .header,
  .instance-status-strip {
    margin-left: 0;
  }
  
  .header-content {
    justify-content: space-between;
  }
  
  .instance-status-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  .scheduler-status {
    justify-content: center;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .page-title-section h1 {
    font-size: 2rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .file-upload-area {
    padding: 2rem 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: left;
    gap: 1rem;
  }
  
  .footer-right {
    text-align: left;
  }
  
  .use-case-cards {
    grid-template-columns: 1fr;
  }
  
  .use-case-actions {
    flex-direction: column;
  }
  
  .use-case-meta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* Use Cases - Minimal Design */
.use-case-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1rem;
  padding: 0;
}

.use-case-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.use-case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.use-case-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.use-case-card h3 a {
  text-decoration: none;
  color: hsl(var(--foreground)) !important;
  transition: color 0.2s ease;
}

.use-case-card h3 a:hover {
  color: hsl(var(--foreground) / 0.7) !important;
}

.use-case-card h3 a:visited {
  color: hsl(var(--foreground)) !important;
}

.use-case-description {
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.use-case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: hsl(var(--muted) / 0.3);
  border-radius: 6px;
  border: 1px solid hsl(var(--border));
}

.use-case-meta .meta-item {
  text-align: center;
  font-size: 0.75rem;
}

.use-case-meta .meta-value {
  display: block;
  font-weight: 600;
  color: hsl(var(--foreground));
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.use-case-meta .meta-label {
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.use-case-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.use-case-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
}

/* Stats - Minimal Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0;
}

.stat-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  line-height: 1.4;
}

.stat-content {
  width: 100%;
  text-align: center;
}

.stat-icon {
  display: none;
}

/* Table Styles */
.table-container {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0;
}

.runs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: transparent;
}

.runs-table thead {
  background: hsl(var(--muted) / 0.5);
  border-bottom: 1px solid hsl(var(--border));
}

.runs-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  border: none;
  white-space: nowrap;
}

.runs-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  vertical-align: middle;
}

.runs-table tbody tr:last-child td {
  border-bottom: none;
}

.runs-table tbody tr {
  transition: background-color 0.15s ease;
}

.runs-table tbody tr:hover {
  background: hsl(var(--muted) / 0.3);
}

.runs-table code {
  background: hsl(var(--muted) / 0.8);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.75rem;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.runs-table .status-success {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: 1px solid hsl(var(--success) / 0.2);
}

.runs-table .status-error {
  background: hsl(var(--danger) / 0.1);
  color: hsl(var(--danger));
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: 1px solid hsl(var(--danger) / 0.2);
}

.runs-table .status-warning {
  background: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: 1px solid hsl(var(--warning) / 0.2);
}

.runs-table .btn {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.runs-table .btn:hover {
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.runs-table .btn-sm {
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
}

.runs-table .btn-secondary {
  background: hsl(var(--muted) / 0.5);
  border-color: hsl(var(--border));
}

.runs-table .btn-secondary:hover {
  background: hsl(var(--muted));
  border-color: hsl(var(--border));
}

/* Responsive table */
@media (max-width: 1024px) {
  .table-container {
    overflow-x: auto;
  }
  
  .runs-table {
    min-width: 800px;
  }
}

@media (max-width: 768px) {
  .runs-table th,
  .runs-table td {
    padding: 0.75rem 1rem;
  }
  
  .runs-table th {
    font-size: 0.8rem;
  }
  
  .runs-table td {
    font-size: 0.8rem;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}