.create-tournament-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.create-tournament-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.back-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--blue-300);
  font-size: 1rem;
  padding: 0.5rem 0;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.back-button:hover {
  color: var(--blue-100);
}

.back-button i {
  margin-right: 0.5rem;
}

.header-content {
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--blue-200);
}

.form-container {
  background-color: var(--blue-900);
  border-radius: 1rem;
  overflow: hidden;
}

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

.section-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--blue-700);
  border-radius: 0.75rem;
  margin-right: 1rem;
}

.section-icon i {
  font-size: 1.5rem;
  color: var(--blue-300);
}

.section-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.section-info p {
  font-size: 0.9rem;
  color: var(--blue-300);
  margin: 0;
}

.section-content {
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-200);
  margin-bottom: 0.5rem;
}

.form-label i {
  margin-right: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--blue-800);
  border: 1px solid var(--blue-700);
  border-radius: 0.5rem;
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue-500);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.input-with-prefix {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-300);
  font-weight: 500;
}

.form-input.with-prefix {
  padding-left: 2rem;
}

.validation-error {
  color: var(--red-400);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
}

.teams-list {
  margin-bottom: 1.5rem;
}

.team-input-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.team-display-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 1rem;
  background-color: var(--blue-800);
  border-radius: 0.5rem;
  border: 1px solid var(--blue-700);
}

.team-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--blue-700);
  border-radius: 50%;
  color: var(--white);
  font-weight: 600;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.team-name {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
}

.team-odds,
.team-position,
.team-prize {
  font-size: 0.875rem;
  color: var(--blue-300);
}

.team-prize {
  color: var(--yellow);
  font-weight: 600;
}

.team-input-group {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.team-input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  background-color: var(--blue-800);
  border: 1px solid var(--blue-700);
  border-radius: 0.5rem;
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.team-input:focus {
  border-color: var(--blue-500);
  outline: none;
}

.team-input.invalid {
  border-color: var(--red-500);
}

.remove-team-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--blue-700);
  border: none;
  border-radius: 0.5rem;
  color: var(--red-400);
  margin-left: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.remove-team-button:hover {
  background-color: var(--blue-600);
}

.team-validation-error {
  color: var(--red-400);
  font-size: 0.85rem;
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
  margin-left: 2.75rem;
}

.add-team-button {
  display: flex;
  align-items: center;
  background-color: var(--blue-700);
  border: none;
  border-radius: 0.5rem;
  color: var(--blue-300);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-team-button:hover {
  background-color: var(--blue-600);
}

.add-team-button i {
  margin-right: 0.5rem;
}

.team-count-warning {
  display: flex;
  align-items: center;
  background-color: rgba(255, 193, 7, 0.1);
  border-left: 3px solid var(--yellow-500);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
}

.team-count-warning i {
  color: var(--yellow-500);
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.team-count-warning span {
  color: var(--yellow-300);
  font-size: 0.9rem;
}

.winner-info {
  margin-top: 1rem;
}

.winner-card {
  display: flex;
  align-items: center;
  background-color: rgba(247, 185, 40, 0.1);
  border: 1px solid var(--yellow);
  border-radius: 0.5rem;
  padding: 1rem;
}

.winner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: rgba(247, 185, 40, 0.2);
  border-radius: 50%;
  margin-right: 1rem;
  color: var(--yellow);
  font-size: 1.5rem;
}

.winner-details h4 {
  color: var(--yellow);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.winner-details p {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.winner-details small {
  color: var(--blue-300);
  font-size: 0.875rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--blue-800);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-group {
  display: flex;
  gap: 1rem;
}

.delete-button {
  display: flex;
  align-items: center;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--red-500);
  border-radius: 0.5rem;
  color: var(--red-400);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delete-button:hover {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--red-300);
}

.delete-button i {
  margin-right: 0.5rem;
}

.cancel-button {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: 1px solid var(--blue-600);
  border-radius: 0.5rem;
  color: var(--blue-300);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cancel-button:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.cancel-button i {
  margin-right: 0.5rem;
}

.submit-button {
  display: flex;
  align-items: center;
  background-color: var(--yellow-500);
  border: none;
  border-radius: 0.5rem;
  color: var(--blue-900);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: var(--yellow-400);
}

.submit-button:disabled {
  background-color: var(--blue-700);
  color: var(--blue-500);
  cursor: not-allowed;
}

.submit-button i {
  margin-right: 0.5rem;
}

.success-alert {
  display: flex;
  align-items: center;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: rgba(40, 167, 69, 0.2);
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
}

.success-icon i {
  font-size: 1.5rem;
  color: var(--green-400);
}

.success-content {
  flex-grow: 1;
}

.success-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-400);
  margin-bottom: 0.25rem;
}

.success-content p {
  font-size: 0.9rem;
  color: var(--blue-200);
  margin: 0;
}

.close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  color: var(--blue-300);
  cursor: pointer;
  margin-left: 1rem;
  flex-shrink: 0;
}

.close-button:hover {
  color: var(--white);
}

.error-alert {
  display: flex;
  align-items: center;
  background-color: rgba(220, 53, 69, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
}

.error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: rgba(220, 53, 69, 0.2);
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
}

.error-icon i {
  font-size: 1.5rem;
  color: var(--red-400);
}

.error-content {
  flex-grow: 1;
}

.error-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--red-400);
  margin-bottom: 0.25rem;
}

.error-content p {
  font-size: 0.9rem;
  color: var(--blue-200);
  margin: 0;
}

/* Banner Upload Styles */
.banner-upload-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--blue-800);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.banner-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
}

.banner-info {
  color: var(--blue-300);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.banner-upload-button {
  display: flex;
  align-items: center;
  background-color: var(--blue-600);
  border: none;
  border-radius: 0.5rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.banner-upload-button:hover {
  background-color: var(--blue-500);
}

.banner-upload-button i {
  margin-right: 0.5rem;
}

.banner-preview-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tournament-banner-preview {
  width: 100%;
  height: 200px;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
}

.banner-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  text-align: left;
}

.preview-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.preview-game {
  font-size: 1rem;
  opacity: 0.8;
}

.banner-actions {
  display: flex;
  gap: 1rem;
}

.banner-remove-button {
  display: flex;
  align-items: center;
  background-color: rgba(220, 53, 69, 0.2);
  border: none;
  border-radius: 0.5rem;
  color: var(--red-400);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.banner-remove-button:hover {
  background-color: rgba(220, 53, 69, 0.3);
}

.banner-remove-button i {
  margin-right: 0.5rem;
}

/* Success Modal Styles */
.success-modal {
  max-width: 500px;
  padding: 0;
  text-align: center;
  background-color: var(--blue-900);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.success-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  animation: scaleIn 0.5s ease;
}

.success-icon i {
  font-size: 3rem;
  color: var(--green-400);
}

.success-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.success-message {
  color: var(--blue-300);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.success-details {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.success-details p {
  margin-bottom: 0.5rem;
  color: var(--white);
  font-size: 0.9rem;
}

.success-details p:last-child {
  margin-bottom: 0;
}

.success-details strong {
  color: var(--blue-300);
}

/* Delete Modal Styles */
.delete-modal {
  max-width: 500px;
  background-color: var(--blue-900);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.delete-header {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--red-400);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.delete-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.delete-icon i {
  font-size: 3rem;
  color: var(--red-400);
}

.delete-title {
  text-align: center;
  color: var(--red-400);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.delete-message {
  text-align: center;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.delete-details {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--red-400);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-label {
  color: var(--blue-300);
  font-weight: 500;
}

.detail-value {
  font-weight: 600;
  color: var(--white);
}

.btn-delete {
  background-color: var(--red-500);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
}

.btn-delete:hover {
  background-color: var(--red-600);
}

/* Edit Tournament Specific Styles */
.team-display-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 1rem;
  background-color: var(--blue-800);
  border-radius: 0.5rem;
  border: 1px solid var(--blue-700);
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.team-name {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
}

.team-odds,
.team-position,
.team-prize {
  font-size: 0.875rem;
  color: var(--blue-300);
}

.team-prize {
  color: var(--yellow);
  font-weight: 600;
}

.winner-info {
  margin-top: 1rem;
}

.winner-card {
  display: flex;
  align-items: center;
  background-color: rgba(247, 185, 40, 0.1);
  border: 1px solid var(--yellow);
  border-radius: 0.5rem;
  padding: 1rem;
}

.winner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: rgba(247, 185, 40, 0.2);
  border-radius: 50%;
  margin-right: 1rem;
  color: var(--yellow);
  font-size: 1.5rem;
}

.winner-details h4 {
  color: var(--yellow);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.winner-details p {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.winner-details small {
  color: var(--blue-300);
  font-size: 0.875rem;
}
