body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

header {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
}

header h1 {
  margin: 0;
}

header nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  margin: 0;
}

header nav ul li {
  margin-right: 15px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
}

main {
  padding: 20px;
}

main h2 {
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 10px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input, select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

button:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#adminList {
  margin-top: 20px;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Styles for the Admin Role Dropdown */
select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

select:focus {
  outline: none;
  border-color: #007bff;
}

/* Login Page Styles */
.login-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-container h1 {
  margin-bottom: 20px;
}

.login-container .form-group {
  margin-bottom: 15px;
  text-align: left;
}

.login-container .form-group label {
  display: block;
  margin-bottom: 5px;
}

.login-container .form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-container .btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.login-container .btn:hover {
  background-color: #0056b3;
}

.error-message {
  color: red;
  margin-top: 10px;
  font-size: 14px;
}

/* Dashboard Specific Styles */
.stats-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: space-between;
}


.stat-card {
  flex: 1;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card h3 {
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
}

.dashboard-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.action-box {
  padding: 30px;
  margin-top: 20px;
  background-color: #007bff;
  border-radius: 8px;
  color: white;
  text-align: center;
}

.action-box a:hover {
  color: #fff;
  text-decoration: underline;
}

.action-box a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.action-box h3 {
  margin-bottom: 10px;
}

.action-box p {
  font-size: 14px;
}

#leagues-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px;
}

/* League Cards */
.league-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  background-color: #f9f9f9;
}

.league-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}

.league-card h3 {
  font-size: 1.1em;
  margin-bottom: 12px;
}

.league-card button {
  margin: 4px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.league-card button.delete-btn {
  background-color: #dc3545;
  color: white;
}
.league-card button.edit-btn {
  background-color: #007bff;
  color: white;
}

/* Form Styles */
#league-form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
}

#league-form label {
  margin-top: 12px;
}

#league-form input {
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#league-form button {
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}


/* Matches Container */
#matches-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  padding: 16px;
}

/* Match Cards */
.match-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  background-color: #f9f9f9;
  transition: box-shadow 0.3s ease;
}

.match-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.match-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 12px;
}

.match-card h3 {
  font-size: 1.2em;
  margin-bottom: 8px;
}

.match-card p {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 12px;
  text-align: center;
}

.match-card button {
  margin: 4px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.match-card button.delete-btn {
  background-color: #dc3545;
  color: white;
}

.match-card button.edit-btn {
  background-color: #007bff;
  color: white;
}

/* Match Form */
#match-form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 20px auto;
}

#match-form label {
  margin-top: 12px;
}

#match-form input {
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#match-form button {
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}





