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

body, html {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #c9002b, #ff2e3c);
  overflow-x: hidden;
  position: relative;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 160px;
  position: relative;
}

.symbol {
  position: absolute;
  font-size: 1.2rem;
  color: rgba(100, 0, 0, 0.3);
  user-select: none;
  z-index: 0;
}

.robit {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #c9002b;
  border: 4px solid white;
  border-radius: 50px;
  width: 160px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.eye {
  width: 24px;
  height: 24px;
  background: #c9002b;
  border: 4px solid white;
  border-radius: 50%;
}

.registration-container {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 800px;
  z-index: 2;
}

.registration-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1 1 45%;
  min-width: 200px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #ff4d6d;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 100, 120, 0.1);
}

.gender-section {
  margin: 25px 0;
}

.gender-options {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #c9002b;
}

.radio-label {
  font-size: 14px;
  color: #666;
}

.register-btn {
  width: 100%;
  padding: 14px;
  background: #c9002b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(116, 185, 255, 0.3);
}

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

.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

.loading {
  display: none;
  text-align: center;
  color: #666;
  margin-top: 10px;
}

select {
  width: 100%;
  padding: 10px 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
  font-size: 16px;
  color: #333;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus {
  outline: none;
  border-color: #cc0033;
  box-shadow: 0 0 5px rgba(204, 0, 51, 0.4);
}

.button-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.action-btn {
  background-color: #cc0033;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.action-btn:hover {
  background-color: #a90028;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.admin-table th,
.admin-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  background-color: white;
}

.admin-table th {
  background-color: #f2f2f2;
  color: #333;
}

.table-scroll {
  max-height: 500px;
  overflow-y: auto;
}


.registration-container select[multiple] {
  width: 100%;
  min-height: 150px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
  font-size: 16px;
  color: #333;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.registration-container select[multiple]:focus {
  outline: none;
  border-color: #cc0033;
  box-shadow: 0 0 5px rgba(204, 0, 51, 0.4);
}

.competition-checkboxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ 3 columns */
  gap: 12px 20px; /* vertical + horizontal spacing */
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-top: 15px;
}

.competition-option {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fafafa;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.competition-option:hover {
  background-color: #f3f3f3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.competition-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #cc0033;
  cursor: pointer;
}

@media (max-width: 768px) {
  .competition-checkboxes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .competition-checkboxes {
    grid-template-columns: 1fr;
  }
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.nav-btn {
  background-color: #cc0033;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Generic style for readonly <input> fields */
input[readonly] {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  color: #555;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
}

/* Consistent style for display-only text blocks (used in place of input) */
.readonly-display {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  width: 100%;
  box-sizing: border-box;
}

.nav-btn:hover {
  background-color: #a90028;
}

.team-card {
  background-color: #fff;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-box input {
  margin-bottom: 1rem;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #cc0000; /* match your theme red */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

.team-summary {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.team-summary:hover {
  border: 2px solid #cc0000;
  box-shadow: 0 0 12px rgba(204, 0, 0, 0.2);
}

.team-details {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.team-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;         /* More space between buttons */
  justify-content: center; /* Optional: center buttons */
  padding: 12px 24px;
  font-size: 1rem;  /* Optional: bigger text */
}


.team-actions button {
  background-color: #cc0000;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.team-actions button:hover {
  background-color: #990000;
}

.input-error {
  border: 2px solid red;
  background-color: #ffe6e6;
}


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

