/* General layout */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  margin: 20px;
  background: #f4f4f4;
  color: #333;
}

h1, h2, h3 {
  text-align: center;
  margin-bottom: 15px;
}

/* Section cards */
.section {
  background: #fff;
  padding: 20px;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Links */
a {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  color: #0077cc;
  font-weight: bold;
}
a:hover {
  text-decoration: underline;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

table th, table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

table th {
  background: #0077cc;
  color: #fff;
}

table tbody tr:nth-child(even) {
  background: #f9f9f9;
}
table tbody tr:hover {
  background: #eef6ff;
}

/* Buttons */
button {
  margin: 5px;
  padding: 8px 14px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background: #0077cc;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s ease;
}
button:hover {
  background: #005fa3;
}

/* Semantic button colors */
button.add { background: #28a745; }
button.delete { background: #dc3545; }
button.draw { background: #ffc107; color: #333; }

/* Inputs & Textareas */
input, textarea {
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 95%;
  font-size: 14px;
  background: #fafafa;
  transition: border 0.2s ease;
}
input:focus, textarea:focus {
  border-color: #0077cc;
  outline: none;
}

/* Player list */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  background: #fff;
  margin: 5px 0;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Admin team assignment layout */
.admin-teams {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.admin-teams div {
  width: 48%;
  background: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Date popup */
#datePopup {
  text-align: center;
}
#datePopup label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}
#datePopup input[type="date"] {
  width: auto;
  padding: 6px;
  margin-bottom: 10px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .admin-teams {
    flex-direction: column;
  }
  .admin-teams div {
    width: 100%;
    margin-bottom: 15px;
  }
}