* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0f1117;
  --color-surface-1: #1a1d27;
  --color-surface-2: #252a36;
  --color-text: #e1e4ea;
  --color-text-muted: #9ca3af;
  --color-border: #374151;
  --color-border-muted: #4b5563;
  --color-primary: #3b82f6;
  --color-primary-soft: #60a5fa;
  --color-success: #22c55e;
  --color-success-dark: #16a34a;
  --color-danger: #ef4444;
  --color-danger-soft: #f87171;
  --color-warning: #f59e0b;
  --color-warning-dark: #d97706;
  --color-gold: #fbbf24;
  --color-yellow: #facc15;
  --color-violet: #8b5cf6;
  --color-violet-dark: #6d28d9;
  --color-white: #fff;
  --color-black: #000;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8);
}

/* Spotlight Section */
.spotlight-section {
  margin-bottom: var(--space-8);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spotlight-header {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
  color: var(--color-bg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.spotlight-badge::before {
  content: '✨';
  font-size: 0.875rem;
}

.spotlight-card {
  display: block;
  background: linear-gradient(135deg, var(--color-surface-1) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.spotlight-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

.spotlight-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
}

.spotlight-activity {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 200px;
}

.spotlight-activity img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border-radius: var(--radius-sm);
}

.spotlight-activity-info {
  display: flex;
  flex-direction: column;
}

.spotlight-activity-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
}

.spotlight-activity-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.spotlight-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.spotlight-team {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
  max-width: 300px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-time-rank {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.spotlight-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.spotlight-rank {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.spotlight-rank.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
  color: var(--color-bg);
}

.spotlight-rank.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
  color: var(--color-bg);
}

.spotlight-rank.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
  color: var(--color-white);
}

.spotlight-wr {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-warning) 100%);
  color: var(--color-bg);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
  animation: wr-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

@keyframes wr-pulse {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(251, 191, 36, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.7);
    transform: scale(1.02);
  }
}

/* World Record spotlight card styling */
.spotlight-wr-card {
  border: 2px solid var(--color-gold);
  animation: wr-border-glow 3s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(251, 191, 36, 0.02) 100%);
}

@keyframes wr-border-glow {
  0%,
  100% {
    box-shadow:
      0 0 10px rgba(251, 191, 36, 0.3),
      inset 0 0 20px rgba(251, 191, 36, 0.05);
  }
  50% {
    box-shadow:
      0 0 25px rgba(251, 191, 36, 0.6),
      inset 0 0 30px rgba(251, 191, 36, 0.1);
  }
}

/* Bounty Section Styles */
.bounty-section {
  margin: 1rem 0 1.5rem;
}

.bounty-header {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.bounty-badge {
  background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.bounty-card {
  display: block;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
  border: 2px solid var(--color-warning);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
  text-decoration: none;
  transition: all 0.2s ease;
}

.bounty-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
}

.bounty-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.bounty-left {
  flex: 1;
}

.bounty-right {
  display: flex;
  align-items: center;
}

.bounty-header-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: 0.5rem;
}

.bounty-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 4px;
}

.bounty-left h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
  margin: 0;
}

.bounty-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.bounty-details span {
  color: var(--color-text);
  font-size: 0.95rem;
}

.bounty-reward {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-warning) 100%);
  color: var(--color-bg);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  white-space: nowrap;
}

.bounty-progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: 0.5rem;
}

.bounty-progress span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.bounty-pending-badge {
  font-size: 0.875rem;
  color: var(--color-primary-soft);
  font-weight: 600;
  margin-left: 0.5rem;
}

.bounty-card-password {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.5rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-warning) 100%);
  color: var(--color-bg);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  width: fit-content;
  white-space: nowrap;
}

.bounty-card-password:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.bounty-card-password:active,
.bounty-card-password.copied {
  transform: scale(0.95);
  background: linear-gradient(135deg, var(--color-warning-dark) 0%, #b45309 100%);
}

.bounty-progress-bar {
  width: 200px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bounty-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-warning) 100%);
  border-radius: var(--radius-sm);
  transition: width 0.3s ease;
}

@media (max-width: 600px) {
  .bounty-content {
    flex-direction: column;
    text-align: center;
  }

  .bounty-right {
    margin-top: 1rem;
  }

  .bounty-progress-bar {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .spotlight-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .spotlight-details {
    align-items: flex-start;
    width: 100%;
  }

  .spotlight-team {
    text-align: left;
    max-width: 100%;
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-surface-1);
}

.header-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-title-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: 0.25rem;
}

.page-title-icon {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border-radius: var(--radius-sm);
}

.header-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.header-logo-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: 0.25rem;
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: contain;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

.btn-success {
  background-color: var(--color-success);
  color: white;
}

.btn-success:hover {
  background-color: var(--color-success-dark);
}

.btn-danger {
  background-color: var(--color-danger);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-secondary {
  background-color: var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  background-color: var(--color-border-muted);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.table-container {
  background-color: var(--color-surface-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color: var(--color-surface-2);
}

th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

td {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-surface-2);
}

tbody tr {
  transition: all 0.2s ease;
}

tbody tr.has-proof {
  cursor: pointer;
}

tbody tr.has-proof:hover {
  background-color: var(--color-surface-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

tbody tr:not(.has-proof):hover {
  background-color: #1f232d;
}

.rank-1 {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, transparent 100%);
}

.rank-1 .rank-cell {
  color: var(--color-yellow);
}

.rank-2 {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.1) 0%, transparent 100%);
}

.rank-2 .rank-cell {
  color: #cbd5e1;
}

.rank-3 {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, transparent 100%);
}

.rank-3 .rank-cell {
  color: var(--color-warning-dark);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
}

.rank-1 .rank-badge {
  background-color: var(--color-yellow);
  color: var(--color-bg);
}

.rank-2 .rank-badge {
  background-color: #cbd5e1;
  color: var(--color-bg);
}

.rank-3 .rank-badge {
  background-color: var(--color-warning-dark);
  color: var(--color-bg);
}

.rank-other .rank-badge {
  background-color: var(--color-border);
  color: var(--color-text-muted);
}

/* World Record styling */
.world-record-row {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
  border-left: 4px solid var(--color-gold);
  animation: world-record-glow 3s ease-in-out infinite;
}

@keyframes world-record-glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(251, 191, 36, 0.2);
  }
  50% {
    box-shadow:
      0 0 20px rgba(251, 191, 36, 0.4),
      0 0 40px rgba(251, 191, 36, 0.1);
  }
}

.world-record-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-warning) 100%);
  color: var(--color-bg);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
}

.world-record-row .time-cell {
  color: var(--color-gold);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.time-cell {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
}

.team-cell {
  font-weight: 500;
}

.proof-btn {
  background-color: var(--color-border);
  color: var(--color-text);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.proof-btn:hover {
  background-color: var(--color-border-muted);
}

.video-row {
  background-color: var(--color-bg);
}

.video-row td {
  padding: 0;
}

.video-container {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}

.video-container.expanded {
  max-height: 700px;
  padding: 1.5rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-black);
  max-width: 100%;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  text-decoration: none;
  padding: 1rem;
  background-color: var(--color-surface-1);
  border-radius: var(--radius-md);
}

.video-link:hover {
  text-decoration: underline;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-black);
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--color-surface-1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group input::placeholder {
  color: #6b7280;
}

.modal-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 2000;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.toast.success {
  background-color: var(--color-success);
  color: white;
}

.toast.error {
  background-color: var(--color-danger);
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-8);
}

.login-card {
  background-color: var(--color-surface-1);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.login-card h1 {
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.login-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.best-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--color-success);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.dimmed {
  opacity: 0.55;
}

.actions-cell {
  display: flex;
  gap: var(--space-2);
}

.btn-icon {
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background-color: var(--color-border);
  color: var(--color-text);
}

.submissions-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-surface-1);
}

.submissions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: 1rem;
}

.submissions-header h2 {
  font-size: 1.25rem;
}

.count-badge {
  background-color: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.count-badge.empty {
  background-color: var(--color-border);
}

.submission-card {
  background-color: var(--color-surface-1);
  border: 1px solid var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submission-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.submission-time {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text);
}

.submission-team {
  font-weight: 500;
  color: var(--color-text);
}

.discord-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #5865f2;
  color: white;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.world-record-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-warning) 100%);
  color: var(--color-bg);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.world-record-submission {
  border-left: 4px solid var(--color-gold);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(251, 191, 36, 0.02) 100%);
}

.submission-proof {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.submission-proof:hover {
  text-decoration: underline;
}

.submission-date {
  color: #6b7280;
  font-size: 0.875rem;
}

.submission-actions {
  display: flex;
  gap: var(--space-2);
}

/* Proof embed container for admin review queues */
.submission-card {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submission-card:hover {
  background-color: var(--color-surface-2);
}

.submission-card.has-proof {
  cursor: pointer;
}

.proof-embed-container {
  display: none;
  width: 100%;
  margin-top: 0;
}

.proof-embed-container.expanded {
  display: block;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.submission-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Prevent proof toggle when clicking buttons or checkboxes */
.submission-actions button,
.submission-actions input[type='checkbox'] {
  cursor: pointer;
}

/* Submission card slide animations */
@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.submission-card.slide-out {
  animation: slideOutLeft 0.3s ease forwards;
}

.submission-card.slide-in {
  animation: slideInRight 0.3s ease forwards;
}

/* Queue position counter animation */
@keyframes counterChange {
  0% {
    transform: scale(1);
    color: var(--color-text-muted);
  }
  50% {
    transform: scale(1.1);
    color: var(--color-primary);
  }
  100% {
    transform: scale(1);
    color: var(--color-text-muted);
  }
}

.queue-position {
  text-align: center;
  padding: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.queue-position.counter-animate {
  animation: counterChange 0.3s ease;
}

.header-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.header-links a:hover {
  color: var(--color-text);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  th,
  td {
    padding: 0.75rem 1rem;
  }

  .submission-card {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
