/* Core CSS variables and Reset */
:root {
  --bg-dark: #0b0f19;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(22, 32, 51, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Modal defaults */
  --modal-bg: #111827;
  
  /* Transition timings */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Default theme is MTB (Lime Green) */
  --primary: #84cc16; /* lime-500 */
  --primary-rgb: 132, 204, 22;
  --primary-glow: rgba(132, 204, 22, 0.15);
  --primary-hover: #a3e635; /* lime-400 */
  --accent-glow: radial-gradient(circle, rgba(132, 204, 22, 0.12) 0%, transparent 60%);
}

/* Theme overrides based on body class */
body.theme-running {
  --primary: #f97316; /* orange-500 */
  --primary-rgb: 249, 115, 22;
  --primary-glow: rgba(249, 115, 22, 0.15);
  --primary-hover: #fb923c; /* orange-400 */
  --accent-glow: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 60%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Background glows */
.glow-bg {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(100px);
  opacity: 0.45;
  transition: background var(--transition-slow);
}

body.theme-mtb .bg-1 {
  background: radial-gradient(circle, rgba(132, 204, 22, 0.15) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}
body.theme-mtb .bg-2 {
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
  bottom: -10%;
  right: -10%;
}

body.theme-running .bg-1 {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}
body.theme-running .bg-2 {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
  bottom: -10%;
  right: -10%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* App Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.35);
  transition: all var(--transition-normal);
}
body.theme-running .logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #ef4444 100%);
}

.logo-text h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.sub-logo {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

/* Modality Switcher (Sliding Tabs) */
.modality-switcher {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 30px;
  display: flex;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.switch-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 20px;
  border-radius: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-normal);
  outline: none;
}

.switch-btn:hover {
  color: var(--text-primary);
}

.switch-btn.active {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
}

/* Cards Glassmorphism styling */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: border var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Stats Section */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-normal), border var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.stat-icon {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background var(--transition-normal), color var(--transition-normal);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Interactive Filters Card */
.filters-section {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

#search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 12px 48px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-normal);
  outline: none;
}

#search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  background: rgba(0, 0, 0, 0.45);
}

.clear-search-btn {
  position: absolute;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.clear-search-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.gender-options {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3px;
  display: flex;
}

.gender-options .filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 17px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 5px;
}

.gender-options .filter-btn:hover {
  color: var(--text-primary);
}

.gender-options .filter-btn.active {
  background: var(--primary);
  color: var(--bg-dark);
}

/* Custom dropdown form-select */
.form-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 20px;
  padding: 8px 32px 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: all var(--transition-fast);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.form-select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* Category Chips */
.categories-filter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.categories-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.chip.active {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Results section info */
.table-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.results-card {
  overflow: hidden;
}

/* Results Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.results-table th {
  padding: 1.1rem 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.results-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  vertical-align: middle;
  transition: background var(--transition-fast);
}

.results-table tr {
  transition: all var(--transition-fast);
}

.results-table tr:hover td {
  background: var(--bg-card-hover);
}

/* Column Widths & Alignments */
.col-rank { width: 80px; text-align: center; }
.col-bib { width: 90px; text-align: center; }
.col-name { font-weight: 600; }
.col-city { color: var(--text-secondary); }
.col-cat { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.85rem; }
.col-time { font-family: monospace; font-weight: 600; font-size: 1rem; text-align: center; }
.col-diff { font-family: monospace; color: var(--text-secondary); font-size: 0.9rem; text-align: center; }
.col-actions { text-align: center; width: 140px; }

.results-table th.col-rank,
.results-table th.col-bib,
.results-table th.col-time,
.results-table th.col-diff,
.results-table th.col-actions {
  text-align: center;
}

/* Medal / Position Badge Styles */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
}

.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  color: #1a1a1a;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.rank-2 {
  background: linear-gradient(135deg, #e0e0e0 0%, #808080 100%);
  color: #1a1a1a;
  box-shadow: 0 0 10px rgba(224, 224, 224, 0.3);
}

.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

.rank-dnf, .rank-dns {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.75rem;
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: 700;
  font-family: inherit;
}

.bib-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Ver Diploma Button */
.btn-action {
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-action:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.35);
  transform: scale(1.03);
}

.btn-action:active {
  transform: scale(0.97);
}

.btn-action.disabled {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
}

/* Empty State Styling */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

/* Footer Section */
.app-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.5rem 0.5rem 0 0.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  gap: 1rem;
}

.credits {
  font-style: italic;
}

/* Modals System (Dialog) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 750px;
  max-height: 90vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--modal-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal.open .modal-content {
  transform: scale(1);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(var(--primary-rgb), 0.2);
}

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

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.modal-runner-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.modal-runner-info span {
  font-weight: 600;
  color: var(--primary);
}

.close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.close-btn:hover {
  color: var(--text-primary);
  background: rgba(239, 68, 68, 0.15);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

/* PDF.js canvas and loading */
.canvas-container {
  width: 100%;
  max-width: 600px;
  position: relative;
  aspect-ratio: 1.414 / 1; /* A4 aspect ratio (Landscape) */
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#diploma-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  z-index: 10;
  transition: opacity var(--transition-normal);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-runner-details-summary {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-runner-details-summary span {
  color: var(--text-primary);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}

.action-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none;
  text-decoration: none;
}

.download-btn {
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
}

.download-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.5);
  transform: translateY(-1px);
}

.download-btn:active {
  transform: translateY(0);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-color-hover);
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .app-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem 0.5rem 2rem 0.5rem;
    gap: 1rem;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .gender-options {
    width: 100%;
  }
  
  .gender-options .filter-btn {
    flex: 1;
    justify-content: center;
  }
  
  .form-select {
    width: 100%;
  }

  /* Responsive Table -> Card conversion */
  .results-table thead {
    display: none;
  }
  
  .results-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 2px solid var(--border-color);
    padding: 1.25rem 1rem;
    gap: 0.6rem;
    position: relative;
  }
  
  .results-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.2rem 0.5rem;
    border: none;
  }
  
  .results-table td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.15rem;
    letter-spacing: 0.05em;
  }

  .results-table tr:hover td {
    background: transparent;
  }
  
  .results-table tr:hover {
    background: var(--bg-card-hover);
  }

  /* Highlight Name and Rank on Mobile cards */
  .results-table td.col-name {
    grid-column: span 2;
    font-size: 1.05rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  
  .results-table td.col-name::before {
    display: none; /* Hide 'Competidor' label on mobile since it's obvious */
  }

  .results-table td.col-rank {
    align-items: flex-start;
  }
  
  .results-table td.col-actions {
    grid-column: span 2;
    align-items: stretch;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }
  
  .results-table td.col-actions::before {
    display: none; /* Hide label */
  }
  
  .results-table td.col-actions .btn-action {
    justify-content: center;
    padding: 10px;
    font-size: 0.9rem;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .modal-runner-details-summary {
    justify-content: space-around;
    padding-bottom: 0.5rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions .action-btn {
    justify-content: center;
  }
}
