* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0f1117;
  color: #e1e4ea;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Spotlight Section */
.spotlight-section {
  margin-bottom: 2rem;
  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: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f1117;
  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, #1a1d27 0%, #252a36 100%);
  border: 1px solid #374151;
  border-radius: 12px;
  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: #3b82f6;
  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: 1.5rem;
}

.spotlight-activity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}

.spotlight-activity img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border-radius: 4px;
}

.spotlight-activity-info {
  display: flex;
  flex-direction: column;
}

.spotlight-activity-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #e1e4ea;
}

.spotlight-activity-info span {
  font-size: 0.8rem;
  color: #9ca3af;
}

.spotlight-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.spotlight-team {
  font-size: 0.9rem;
  color: #e1e4ea;
  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: 0.5rem;
}

.spotlight-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #3b82f6;
}

.spotlight-rank {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.spotlight-rank.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
  color: #0f1117;
}

.spotlight-rank.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
  color: #0f1117;
}

.spotlight-rank.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
  color: #fff;
}

.spotlight-wr {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f1117;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  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 #fbbf24;
  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, #f59e0b 0%, #d97706 100%);
  color: #0f1117;
  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 #f59e0b;
  border-radius: 12px;
  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: 1.5rem;
}

.bounty-left {
  flex: 1;
}

.bounty-right {
  display: flex;
  align-items: center;
}

.bounty-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  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: #fbbf24;
  margin: 0;
}

.bounty-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.bounty-details span {
  color: #e1e4ea;
  font-size: 0.95rem;
}

.bounty-reward {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f1117;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  white-space: nowrap;
}

.bounty-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.bounty-progress span {
  font-size: 0.875rem;
  color: #9ca3af;
}

.bounty-card-password {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.5rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f1117;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  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, #d97706 0%, #b45309 100%);
}

.bounty-progress-bar {
  width: 200px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.bounty-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 4px;
  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: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1a1d27;
}

.header-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.page-title-icon {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border-radius: 4px;
}

.header-content p {
  color: #9ca3af;
  font-size: 0.95rem;
}

.header-logo-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: contain;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

.btn-success {
  background-color: #22c55e;
  color: white;
}

.btn-success:hover {
  background-color: #16a34a;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-secondary {
  background-color: #374151;
  color: #e1e4ea;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.table-container {
  background-color: #1a1d27;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color: #252a36;
}

th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

td {
  padding: 1rem 1.5rem;
  border-top: 1px solid #252a36;
}

tbody tr {
  transition: all 0.2s ease;
}

tbody tr.has-proof {
  cursor: pointer;
}

tbody tr.has-proof:hover {
  background-color: #252a36;
  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: #facc15;
}

.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: #d97706;
}

.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: #facc15;
  color: #0f1117;
}

.rank-2 .rank-badge {
  background-color: #cbd5e1;
  color: #0f1117;
}

.rank-3 .rank-badge {
  background-color: #d97706;
  color: #0f1117;
}

.rank-other .rank-badge {
  background-color: #374151;
  color: #9ca3af;
}

/* 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 #fbbf24;
  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, #fbbf24 0%, #f59e0b 100%);
  color: #0f1117;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.5rem;
}

.world-record-row .time-cell {
  color: #fbbf24;
  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: #e1e4ea;
}

.team-cell {
  font-weight: 500;
}

.proof-btn {
  background-color: #374151;
  color: #e1e4ea;
  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: #4b5563;
}

.video-row {
  background-color: #0f1117;
}

.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: 8px;
  background-color: #000;
  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: 0.5rem;
  color: #3b82f6;
  text-decoration: none;
  padding: 1rem;
  background-color: #1a1d27;
  border-radius: 8px;
}

.video-link:hover {
  text-decoration: underline;
}

.image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #000;
  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: #1a1d27;
  border-radius: 12px;
  padding: 2rem;
  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: #9ca3af;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #0f1117;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #e1e4ea;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
}

.form-group input::placeholder {
  color: #6b7280;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2000;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

.toast.success {
  background-color: #22c55e;
  color: white;
}

.toast.error {
  background-color: #ef4444;
  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: 2rem;
}

.login-card {
  background-color: #1a1d27;
  padding: 2.5rem;
  border-radius: 12px;
  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: #9ca3af;
  margin-bottom: 1.5rem;
}

.best-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #22c55e;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.dimmed {
  opacity: 0.55;
}

.actions-cell {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  padding: 0.5rem;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background-color: #374151;
  color: #e1e4ea;
}

.submissions-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #1a1d27;
}

.submissions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.submissions-header h2 {
  font-size: 1.25rem;
}

.count-badge {
  background-color: #3b82f6;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.count-badge.empty {
  background-color: #374151;
}

.submission-card {
  background-color: #1a1d27;
  border: 1px solid #252a36;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submission-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.submission-time {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 600;
  font-size: 1.25rem;
  color: #e1e4ea;
}

.submission-team {
  font-weight: 500;
  color: #e1e4ea;
}

.discord-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #5865f2;
  color: white;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  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, #fbbf24 0%, #f59e0b 100%);
  color: #0f1117;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  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 #fbbf24;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(251, 191, 36, 0.02) 100%);
}

.submission-proof {
  color: #3b82f6;
  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: 0.5rem;
}

.header-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
}

.header-links a:hover {
  color: #e1e4ea;
}

.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;
  }
}

/* Activity Cards (Home Page) */
.activities-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.activity-card {
  background-color: #1a1d27;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.activity-header:hover {
  background-color: #252a36;
}

.activity-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  flex: 1;
}

.activity-icon {
  width: 32px;
  height: 32px;
  margin-right: 1rem;
  image-rendering: pixelated;
  border-radius: 4px;
}

.activity-chevron {
  transition: transform 0.3s ease;
}

.activity-chevron.expanded {
  transform: rotate(180deg);
}

.activity-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.activity-content.expanded {
  max-height: 300px;
  padding: 1rem 2rem 2rem 2rem;
}

.scale-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.scale-btn {
  min-width: 120px;
  justify-content: center;
}

.solo-link {
  text-decoration: none;
  color: inherit;
}

.solo-link:hover {
  background-color: #252a36;
}

.solo-link svg {
  color: #3b82f6;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.breadcrumbs a {
  color: #3b82f6;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Statistics Dashboard */
.stats-dashboard {
  background-color: #1a1d27;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.stats-dashboard h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-card {
  background-color: #252a36;
  padding: 1.25rem;
  border-radius: 8px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Filter Section */
.filter-section {
  background-color: #1a1d27;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-section label {
  font-size: 0.875rem;
  color: #9ca3af;
}

.filter-section select {
  background-color: #0f1117;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: #e1e4ea;
  font-size: 0.875rem;
  cursor: pointer;
}

.filter-section select:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Admin Section */
.admin-section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.25rem;
}

/* Submission Activity Label */
.submission-activity {
  background-color: #3b82f6;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.25rem;
  align-self: flex-start;
  width: auto;
}

/* Form Select */
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #0f1117;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #e1e4ea;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Home Page Player Lookup */
.lookup-section-home {
  background-color: #1a1d27;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.lookup-section-home h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.lookup-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.lookup-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: #0f1117;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #e1e4ea;
  font-size: 1rem;
}

.lookup-form input:focus {
  outline: none;
  border-color: #3b82f6;
}

.lookup-form input::placeholder {
  color: #6b7280;
}

/* Lookup Page Styles */
.loading {
  text-align: center;
  padding: 3rem;
  color: #9ca3af;
}

.empty-state-large {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #1a1d27;
  border-radius: 12px;
  margin-top: 2rem;
}

.empty-state-large h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-state-large p {
  color: #9ca3af;
}

.lookup-section {
  margin-bottom: 2rem;
}

.lookup-activity-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #252a36;
}

.proof-link {
  color: #3b82f6;
  text-decoration: none;
}

.proof-link:hover {
  text-decoration: underline;
}

/* Header Lookup */
.header-lookup {
  display: flex;
  align-items: center;
}

.lookup-form-compact {
  display: flex;
  gap: 0.5rem;
}

.lookup-form-compact input {
  width: 200px;
  padding: 0.5rem 0.75rem;
  background-color: #0f1117;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #e1e4ea;
  font-size: 0.875rem;
}

.lookup-form-compact input:focus {
  outline: none;
  border-color: #3b82f6;
}

.lookup-form-compact input::placeholder {
  color: #6b7280;
}

.lookup-form-compact button {
  padding: 0.5rem 0.75rem;
}

/* Responsive lookup form */
@media (max-width: 768px) {
  .lookup-form {
    flex-direction: column;
  }
  
  .lookup-form button {
    width: 100%;
    justify-content: center;
  }
  
  .header-lookup {
    width: 100%;
    margin-top: 1rem;
  }
  
  .lookup-form-compact {
    width: 100%;
  }
  
  .lookup-form-compact input {
    flex: 1;
    width: auto;
  }
}

/* Danger Zone */
.danger-zone {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #ef4444;
}

.danger-zone h2 {
  color: #ef4444;
  margin-bottom: 1rem;
}

.danger-zone-content {
  background-color: #1a1d27;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 1.5rem;
}

.danger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.danger-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.danger-item p {
  color: #9ca3af;
  font-size: 0.875rem;
}

.nuke-modal {
  max-width: 500px;
}

.nuke-warning {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.nuke-warning ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.nuke-warning li {
  margin: 0.25rem 0;
}

.confirmation-text {
  background-color: #0f1117;
  border: 2px dashed #ef4444;
  border-radius: 8px;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.1em;
  color: #ef4444;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .danger-item {
    flex-direction: column;
    text-align: center;
  }
  
  .danger-item button {
    width: 100%;
  }
}

/* Collapsible Sections */
.section-content {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 5000px; /* Large enough to show all content */
  opacity: 1;
  overflow: hidden;
}

.section-content.collapsed {
  max-height: 0;
  opacity: 0;
}

/* Number One Rankings Highlight */
.number-one-section {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.15) 0%, rgba(250, 204, 21, 0.05) 100%);
  border: 2px solid #facc15;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.15);
}

.number-one-title {
  color: #facc15;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.number-one-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.number-one-card {
  background-color: rgba(26, 29, 39, 0.8);
  border: 1px solid #facc15;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 180px;
  max-width: 250px;
  flex: 0 0 auto;
}

.number-one-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2);
}

.number-one-activity {
  font-weight: 600;
  color: #e1e4ea;
  margin-bottom: 0.25rem;
}

.number-one-scale {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.number-one-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #facc15;
}

/* World Record styling for lookup page */
.world-record-card {
  border: 2px solid #fbbf24;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.world-record-card .number-one-time {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.wr-badge-small {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f1117;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.wr-badge-inline {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f1117;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.4rem;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .number-one-grid {
    justify-content: center;
  }
  
  .number-one-card {
    min-width: 150px;
    max-width: 100%;
    flex: 1 1 150px;
  }
}

/* Backup Section Styles */
.backup-section {
  margin-bottom: 2rem;
}

.backup-section h2 {
  color: #3b82f6;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.backup-controls {
  background-color: #1a1d27;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backup-info {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

.backup-section .table-container {
  margin-top: 1rem;
}

.backup-section .btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.backup-section .actions-cell {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .backup-controls {
    padding: 1rem;
  }
  
  .backup-section .actions-cell {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .backup-section .actions-cell button {
    width: 100%;
  }
}

/* =====================
   Event Mode Styles
   ===================== */

/* Header right area with past events link */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.past-events-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.past-events-link:hover {
  color: #e1e4ea;
  background-color: #1a1d27;
}

/* Event Status Badges */
.event-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-status-active {
  background-color: #22c55e;
  color: #0f1117;
  animation: pulse-glow 2s ease-in-out infinite;
}

.event-status-scheduled {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: white;
}

.event-status-ended {
  background-color: #374151;
  color: #9ca3af;
}

/* Pending submissions badge for ended events */
.pending-submissions-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  background-color: #f59e0b;
  color: #0f1117;
  margin-left: 0.5rem;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 8px 3px rgba(34, 197, 94, 0.3); }
}

/* Event Section (Homepage) - Matching Spotlight Style */
.event-section {
  margin-bottom: 2rem;
  animation: fadeIn 0.5s ease;
}

.event-header {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.event-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  color: #0f1117;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.event-label-badge::before {
  content: '🏆';
  font-size: 0.875rem;
}

.event-label-scheduled {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.event-label-live {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.event-card {
  display: block;
  background: linear-gradient(135deg, #1a1d27 0%, #252a36 100%);
  border: 1px solid #374151;
  border-radius: 12px;
  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);
}

.event-card:hover {
  border-color: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
}

.event-section-live .event-card:hover {
  border-color: #22c55e;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.2);
}

.event-card-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.event-card-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}

.event-card-icon {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border-radius: 4px;
}

.event-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.event-card-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #e1e4ea;
}

.event-card-activity {
  font-size: 0.85rem;
  color: #9ca3af;
}

.event-card-dates {
  font-size: 0.8rem;
  color: #6b7280;
}

.event-card-password {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.5rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #0f1117;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  width: fit-content;
  white-space: nowrap;
}

.event-card-password:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.event-card-password:active,
.event-card-password.copied {
  transform: scale(0.95);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.event-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.event-countdown-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.event-countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 0.15rem;
}

.event-countdown-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: #3b82f6;
}

@media (max-width: 768px) {
  .event-card {
    padding: 1rem;
  }

  .event-card-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-card-right {
    align-items: flex-start;
    width: 100%;
  }

  .event-countdown-block {
    align-items: flex-start;
  }

  .header-right {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
  }
}

/* Section Divider between Event and Spotlight */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #374151 20%, #374151 80%, transparent 100%);
  margin: 0.5rem 0 2rem 0;
  border: none;
  opacity: 0.6;
}

/* Event Leaderboard Status Bar */
.event-leaderboard-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1d27;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.event-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.event-bar-dates {
  font-size: 0.85rem;
  color: #9ca3af;
}

.event-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-bar-countdown-label {
  font-size: 0.8rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.event-pending-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #f59e0b;
  color: #0f1117;
  margin-left: 0.5rem;
}

/* Admin Event Management */
.event-management-section {
  margin-bottom: 2rem;
}

.event-management-section h2 {
  color: #8b5cf6;
}

.event-admin-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1d27;
  border: 1px solid #252a36;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.event-admin-card:hover {
  border-color: #374151;
}

.event-admin-card-active {
  border-color: #22c55e;
}

.event-admin-card-ended {
  opacity: 0.7;
}

.event-admin-info {
  flex: 1;
  min-width: 0;
}

.event-admin-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.event-admin-top strong {
  font-size: 1rem;
}

.event-admin-details {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}

.event-admin-dates {
  font-size: 0.8rem;
  color: #6b7280;
}

.event-admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

@media (max-width: 768px) {
  .event-admin-card {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .event-admin-actions {
    margin-left: 0;
    width: 100%;
  }

  .event-admin-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* Past Events Page */
.past-event-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1d27;
  border: 1px solid #252a36;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.past-event-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.past-event-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.past-event-left .activity-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.past-event-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.past-event-details {
  font-size: 0.875rem;
  color: #9ca3af;
}

.past-event-dates {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

.past-event-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: #9ca3af;
}

.past-event-entries {
  font-size: 0.875rem;
  font-weight: 500;
}

.past-event-right svg {
  color: #3b82f6;
}

@media (max-width: 768px) {
  .past-event-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .past-event-right {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Form datetime-local input styling */
.form-group input[type="datetime-local"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #0f1117;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #e1e4ea;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input[type="datetime-local"]:focus {
  outline: none;
  border-color: #3b82f6;
}

.form-group input[type="number"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #0f1117;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #e1e4ea;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input[type="number"]:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Timezone hint for admin panel */
.timezone-hint {
  display: block;
  color: #6b7280;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-style: italic;
}

/* Tooltip system for timezone info */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  background-color: #1a1d27;
  color: #e1e4ea;
  font-size: 0.8rem;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid #374151;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1d27;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  margin-bottom: -0.35rem;
  z-index: 100;
}

[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #252a36;
}

.pagination-info {
  font-size: 0.9rem;
  color: #9ca3af;
  min-width: 100px;
  text-align: center;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button:not(:disabled):hover {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

/* Declined Submissions Section */
.declined-section .section-header h2 {
  color: #ef4444;
}

.declined-card {
  border-left: 3px solid #ef4444;
}

.declined-card .submission-activity {
  background-color: #ef4444;
}

.decline-reason {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: #1a1d27;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #fca5a5;
  border-left: 2px solid #ef4444;
}

.decline-reason strong {
  color: #f87171;
}

/* Decline Modal */
#decline-modal .form-group {
  margin-bottom: 1rem;
}

#decline-modal textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  background-color: #0f1117;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #e1e4ea;
  font-family: inherit;
  resize: vertical;
}

#decline-modal textarea:focus {
  outline: none;
  border-color: #ef4444;
}

/* Admin Panel Redesign - Sidebar & Dashboard */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: #0f1117;
}

/* Sidebar */
.admin-sidebar {
  width: 280px;
  min-width: 200px;
  max-width: 400px;
  background-color: #1a1d27;
  border-right: 1px solid #252a36;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  position: relative;
}

.admin-sidebar.collapsed {
  width: 70px;
  min-width: 70px;
}

.sidebar-resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  cursor: col-resize;
  background-color: transparent;
  transition: background-color 0.2s;
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle.resizing {
  background-color: #3b82f6;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #252a36;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e1e4ea;
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.2s;
}

.admin-sidebar.collapsed .sidebar-title {
  opacity: 0;
  width: 0;
  display: none;
}

.admin-sidebar.collapsed .sidebar-header {
  padding: 1.5rem 1rem;
  justify-content: center;
}

.admin-sidebar.collapsed .sidebar-footer {
  padding: 1rem;
}

.admin-sidebar.collapsed .sidebar-footer a {
  justify-content: center;
  padding: 0.5rem;
}

.sidebar-toggle {
  position: absolute;
  right: -12px;
  top: 24px;
  width: 24px;
  height: 24px;
  background-color: #3b82f6;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s;
}

.sidebar-toggle:hover {
  transform: scale(1.1);
}

.admin-sidebar.collapsed .sidebar-toggle {
  transform: rotate(180deg);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 0.5rem;
}

.sidebar-section-title {
  padding: 0.5rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.2s;
}

.admin-sidebar.collapsed .sidebar-section-title {
  opacity: 0;
  padding: 0.5rem;
  height: 0;
  overflow: hidden;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: #9ca3af;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav-item:hover {
  background-color: #252a36;
  color: #e1e4ea;
}

.sidebar-nav-item.active {
  background-color: #252a36;
  color: #3b82f6;
  border-left-color: #3b82f6;
}

.sidebar-nav-icon {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav-text {
  opacity: 1;
  transition: opacity 0.2s;
}

.admin-sidebar.collapsed .sidebar-nav-text {
  opacity: 0;
  width: 0;
  display: none;
}

.admin-sidebar.collapsed .sidebar-nav-item {
  padding: 0.75rem;
  justify-content: center;
}

.admin-sidebar.collapsed .sidebar-nav-icon {
  width: 24px;
  text-align: center;
}

.sidebar-badge {
  background-color: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  margin-left: auto;
  opacity: 1;
  transition: opacity 0.2s;
}

.admin-sidebar.collapsed .sidebar-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.6rem;
  padding: 0.1rem 0.3rem;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #252a36;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.sidebar-footer a:hover {
  color: #e1e4ea;
}

/* Main Content Area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #1a1d27;
  border-bottom: 1px solid #252a36;
  height: 64px;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.admin-header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e1e4ea;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: linear-gradient(135deg, #1a1d27 0%, #252a36 100%);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.dashboard-card.urgent {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, #1a1d27 100%);
}

.dashboard-card.urgent:hover {
  border-color: #f87171;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dashboard-card-icon {
  font-size: 1.5rem;
}

.dashboard-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-card-count {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e1e4ea;
  margin-bottom: 0.5rem;
}

.dashboard-card.urgent .dashboard-card-count {
  color: #f87171;
}

.dashboard-card-desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.dashboard-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  font-weight: 500;
  font-size: 0.9rem;
}

.dashboard-card.urgent .dashboard-card-action {
  color: #f87171;
}

/* Section Views */
.section-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.section-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Review Queue Specific */
.review-queue-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #252a36;
}

.review-tabs {
  display: flex;
  gap: 0.5rem;
}

.review-tab {
  padding: 0.5rem 1rem;
  background-color: #1a1d27;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.review-tab:hover {
  border-color: #3b82f6;
  color: #e1e4ea;
}

.review-tab.active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.review-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Submission Cards */
.submission-queue-card {
  background-color: #1a1d27;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.submission-queue-card:hover {
  border-color: #4b5563;
}

.submission-queue-card.event {
  border-left: 4px solid #8b5cf6;
}

.submission-queue-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.submission-queue-source {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.submission-queue-source.regular {
  background-color: #3b82f6;
  color: white;
}

.submission-queue-source.event {
  background-color: #8b5cf6;
  color: white;
}

.submission-queue-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: #e1e4ea;
  margin-bottom: 0.5rem;
}

.submission-queue-team {
  font-size: 1rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.submission-queue-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.submission-queue-actions {
  display: flex;
  gap: 0.75rem;
}

/* Decline Dropdown */
.decline-dropdown {
  position: relative;
  display: inline-block;
}

.decline-options {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background-color: #1a1d27;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 0.5rem;
  min-width: 250px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
}

.decline-dropdown.open .decline-options {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.decline-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: left;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.decline-option:hover {
  background-color: #252a36;
  color: #e1e4ea;
}

.decline-option.custom {
  border-top: 1px solid #374151;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  color: #3b82f6;
}

.decline-option.custom:hover {
  color: #60a5fa;
}

/* Event Management */
.events-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: linear-gradient(135deg, #1a1d27 0%, #252a36 100%);
  border: 1px solid #374151;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.event-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.event-card.active {
  border-color: #22c55e;
}

.event-card.scheduled {
  border-color: #8b5cf6;
}

.event-card.ended {
  border-color: #374151;
  opacity: 0.8;
}

.event-card-header {
  padding: 1.25rem;
  border-bottom: 1px solid #252a36;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.event-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
}

.event-card-info {
  flex: 1;
}

.event-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e1e4ea;
  margin-bottom: 0.25rem;
}

.event-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.event-card-status.active {
  background-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.event-card-status.scheduled {
  background-color: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
}

.event-card-status.ended {
  background-color: rgba(107, 114, 128, 0.2);
  color: #6b7280;
}

.event-card-body {
  padding: 1.25rem;
}

.event-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.event-card-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.event-card-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.event-card-stat-value {
  font-weight: 600;
  color: #e1e4ea;
}

.event-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transform: translateX(-100%);
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-sidebar.collapsed {
    width: 280px;
    transform: translateX(-100%);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .sidebar-resize-handle,
  .sidebar-toggle {
    display: none;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .review-filters {
    flex-direction: column;
  }
  
  .events-dashboard {
    grid-template-columns: 1fr;
  }
}

/* Section Transitions */
.section-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.section-content.expanded {
  max-height: 50000px;
  opacity: 1;
  padding-top: 1rem;
}

/* Quick Stats Bar */
.quick-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background-color: #1a1d27;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.quick-stats-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-stats-value {
  font-weight: 600;
  color: #e1e4ea;
}

/* Preset Decline Reasons */
.decline-preset-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.decline-preset-btn {
  text-align: left;
  padding: 0.75rem;
  background-color: #0f1117;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.decline-preset-btn:hover {
  border-color: #ef4444;
  color: #e1e4ea;
  background-color: rgba(239, 68, 68, 0.1);
}

.decline-custom-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #374151;
}

/* Event Submissions Panel */
.event-submissions-panel {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 1000px; }
}

.event-submissions-panel .submission-card {
  margin-bottom: 0.75rem;
}

.event-submissions-panel .submission-card:last-child {
  margin-bottom: 0;
}

/* Event Submissions Modal */
#event-submissions-modal .modal {
  background: linear-gradient(135deg, #1a1d27 0%, #252a36 100%);
}

#event-submissions-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #374151;
}

#event-submissions-modal .modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e1e4ea;
}

#event-submissions-content .submission-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#event-submissions-content .empty-state {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 1rem;
}

/* Modal z-index layering */
#event-submissions-modal.modal-overlay {
  z-index: 1000;
}

#decline-modal.modal-overlay {
  z-index: 1100;
}

#nuke-modal.modal-overlay {
  z-index: 1200;
}

/* Bounty Admin Styles */
.bounty-admin-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bounty-admin-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.75rem;
}

.bounty-admin-info p {
  margin-bottom: 0.5rem;
  color: #e1e4ea;
}

.bounty-admin-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 158, 11, 0.3);
}

.bounty-admin-completed {
  background-color: #1a1d27;
  border: 1px solid #252a36;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.bounty-admin-completed h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e1e4ea;
  margin-bottom: 0.75rem;
}

.bounty-admin-completed p {
  margin-bottom: 0.4rem;
  color: #9ca3af;
}

.bounty-admin-completed ul {
  color: #e1e4ea;
  margin-top: 0.5rem;
}

.bounty-admin-completed li {
  margin-bottom: 0.25rem;
}
