body{
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url("../assets/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #333;
  min-height: 100vh;
}

.logo,
.logo-small{
  height: 80px;
  display: block;
  margin: 0 auto;
}

header{
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1{
  font-size: 28px;
  margin: 10px 0;
}

header p {
  margin-top: 5px;
  font-size: 16px;
  color: #555;
}

.landing-buttons{
  text-align: center;
  margin-top: 50px;
}

.btn{
  display: inline-block;
  padding: 12px 24px;
  margin: 10px;
  background-color: #1976d2;
  color: white;
  text-decoration: none;
  font-size: 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn:hover{
  background-color: #1565c0;
}

.login-container{
  max-width: 400px;
  margin: 80px auto;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.login-container input{
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.login-container button{
  width: 100%;
  padding: 12px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.login-container button:hover{
  background-color: #1565c0;
}

.sports-list{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px;
  gap: 20px;
}

.sport-card{
  width: 200px;
  background-color: #ffffffd9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.sport-card:hover{
  transform: scale(1.05);
}

.sport-card img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.sport-card p{
  margin: 10px 0;
  font-weight: bold;
  font-size: 16px;
}

.join-btn{
  padding: 8px 14px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.join-btn:hover{
  background-color: #1565c0;
}

@media screen and (max-width: 600px){
  header{
    flex-direction: column;
    gap: 10px;
  }

  .sport-card{
    width: 90%;
  }
}

.sports-list h2 {
  width: 100%;
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 10px;
  border-radius: 8px;
  color: #000;
}

.admin-panel{
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  max-width: 900px;
  margin: 40px auto;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.admin-panel h2{
  text-align: center;
  margin-bottom: 20px;
  color: #000;
}

.admin-section{
  margin-top: 40px;
}

.admin-list{
  margin-top: 10px;
  padding-left: 0;
}

.admin-list li{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  list-style: none;
  max-width: 400px;
}

form input[type="text"],
form input[type="datetime-local"]{
  padding: 10px;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

form button{
  padding: 10px 16px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

form button:hover{
  background-color: #388e3c;
}

.remove-btn{
  background-color: #d9534f;
  color: #fff;
  font-weight: bold;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.remove-btn:hover{
  background-color: #c9302c;
}

.search-box{
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  margin: 0 auto 20px;
  display: block;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.welcome-message{
  margin: 20px;
  display: inline-block;
  background-color: rgba(255,255,255,0.9);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
}

.create-sport-form,
.user-sports-section{
  background-color: rgba(255,255,255,0.9);
  padding: 20px 30px;
  border-radius: 10px;
  margin: 30px auto;
  max-width: 800px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.event-list{
  list-style-type: none;
  padding-left: 0;
  margin-top: 10px;
}

.event-list li{
  background-color: #fff;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  table-layout: fixed;
  margin-bottom: 20px;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  color: #333;
  word-wrap: break-word;
}

th {
  background-color: #1976d2;
  color: white;
  font-size: 15px;
}

td {
  font-size: 14px;
}

tr:hover {
  background-color: #f9f9f9;
}

.admin-list li button {
  background-color: #d9534f;
  color: white;
  font-weight: bold;
  padding: 6px 12px;
  margin-left: 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 14px;
}

.admin-list li button:hover {
  background-color: #c9302c;
}

.event-list li {
  background-color: #fff;
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.event-buttons {
  display: flex;
  gap: 10px;
}

.edit-btn,
.delete-btn {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.edit-btn {
  background-color: #1976d2;
  color: white;
}

.edit-btn:hover {
  background-color: #1565c0;
}

.delete-btn {
  background-color: #d9534f;
  color: white;
}

.delete-btn:hover {
  background-color: #c9302c;
}

.navbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}

.logo-title{
  font-size: 20px;
  font-weight: bold;
  color: #1976d2;
}

.hamburger{
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links{
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li a{
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 16px;
}

.nav-links li a:hover{
  color: #1976d2;
}

#logoutBtnNav{
  padding: 8px 14px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

#logoutBtnNav:hover{
  background-color: #d32f2f;
}

@media (max-width: 768px){
  .hamburger{
    display: block;
  }

  .nav-links{
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .nav-links.show{
    display: flex;
  }

  #logoutBtnNav{
    width: 100%;
    margin-top: 10px;
  }
}