.dashboard-page {
  padding: 100px;
}

.dashboard-main h1 {
  text-align: center;
  margin-bottom: 30px;
}

.tournaments-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.tournaments-table thead {
  background-color: var(--primarycolor);
  color: white;
}

.tournaments-table th,
.tournaments-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  color: var(--backgroundcolor);
}

.tournaments-table tbody tr:hover {
  background-color: rgb(218, 218, 218);
}

.tournaments-table button {
  margin: 0 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-view {
  background-color: #17a2b8;
  color: white;
}

.btn-view:hover {
  background-color: #138496;
}

.btn-edit {
  background-color: #ffc107;
  color: black;
}

.btn-edit:hover {
  background-color: #e0a800;
}

.btn-delete {
  background-color: #dc3545;
  color: white;
}

.btn-delete:hover {
  background-color: #c82333;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  margin-top: 0;
  color: #333;
  margin-bottom: 20px;
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s ease;
}

.close:hover {
  color: #000;
}

.tournament-details {
  line-height: 1.8;
}

.tournament-details p {
  margin: 10px 0;
}

.tournament-details strong {
  color: #007bff;
}

.tournament-details img {
  margin-top: 15px;
  border-radius: 8px;
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

#edit-form {
  margin-top: 20px;
}

.btn-save,
.btn-cancel {
  padding: 10px 20px;
  margin: 10px 5px 0 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-save {
  background-color: #28a745;
  color: white;
}

.btn-save:hover {
  background-color: #218838;
}

.btn-cancel {
  background-color: #6c757d;
  color: white;
}

.btn-cancel:hover {
  background-color: #5a6268;
}

/* ============= MOBILE RESPONSIVE ============= */
@media screen and (max-width: 1024px) {
  .dashboard-page {
    padding: 50px;
  }
}

@media screen and (max-width: 768px) {
  .dashboard-page {
    padding: 20px;
  }

  .tournaments-table {
    font-size: 14px;
  }

  .tournaments-table th,
  .tournaments-table td {
    padding: 10px;
  }

  .tournaments-table button {
    padding: 6px 10px;
    font-size: 12px;
    margin: 0 2px;
  }

  .modal-content {
    width: 95%;
    max-width: 400px;
    padding: 20px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
    padding: 8px;
  }

  .btn-save,
  .btn-cancel {
    padding: 8px 15px;
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .dashboard-page {
    padding: 15px;
  }

  .tournaments-table {
    font-size: 12px;
  }

  .tournaments-table th,
  .tournaments-table td {
    padding: 8px;
  }

  .tournaments-table button {
    padding: 5px 8px;
    font-size: 11px;
    margin: 2px 0;
    display: block;
    width: 100%;
    margin-bottom: 5px;
  }

  .modal-content {
    width: 90%;
    max-width: 320px;
  }
}
.status-select,
.booking-status-select {
  padding: 8px 12px;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;

  background: #f8f8f8;
  color: #333;

  font-size: 14px;
  font-family: inherit;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.status-select:hover,
.booking-status-select:hover {
  background: var(--textcolor);
}

.status-select:focus,
.booking-status-select:focus {
  outline: none;

  border-color: var(--primarycolor);

  box-shadow: 0 0 0 3px rgba(142, 86, 255, 0.15);
}

.status-select option,
.booking-status-select option {
  background: white;
  color: #333;
}
.dashboard-header {
  display: flex;
  flex-direction: row-reverse;
  margin-bottom: 30px;
}
.dashboard-header #logout-btn {
  min-width: 245px;
  margin-top: 20px;
  padding: 10px;

  border: none;
  border-radius: 10px;

  background-color: var(--primarycolorhover);
  color: var(--textcolor);

  cursor: pointer;
  transition: 0.3s ease;
}
.dashboard-header #logout-btn:hover {
  background-color: var(--primarycolor);
  color: white;

  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
