body {
  margin: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f8fbff 0%, #e3f2fd 100%);
  color: #1a202c;
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 20px rgba(21,101,192,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo img {
  height: 48px;
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: scale(1.05);
}
.nav-dropdown {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background: #fff;
  color: #1565c0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(21,101,192,0.1);
}
.nav-dropdown:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21,101,192,0.2);
}
.main-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(21,101,192,0.15);
  padding: 2rem;
  min-width: 300px;
  max-width: 400px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(21,101,192,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(21,101,192,0.2);
}
.card h2 {
  color: #1565c0;
  margin-top: 0;
  font-size: 1.8rem;
  font-weight: 600;
  border-bottom: 2px solid #e3f2fd;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;  width: 100%;
}
.card ul {
  padding-left: 1.2rem;
}
.add-event form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.add-event input, .add-event textarea {
  padding: 0.75rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}
.add-event input:focus, .add-event textarea:focus {
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
  outline: none;
}
.add-event button {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(21,101,192,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.add-event button:hover {
  background: linear-gradient(135deg, #003c8f, #002171);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.4);
}
.mokku-title-card {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  margin-top: -1rem;
}
.mokku-title {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #1565c0;
  text-shadow: 0 4px 16px rgba(21,101,192,0.2), 0 1px 0 #fff;
  padding: 1rem 3rem;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border: 2px solid #e3f2fd;
  box-shadow: 0 8px 32px rgba(21,101,192,0.15);
  transition: transform 0.3s ease;
}
.mokku-title:hover {
  transform: translateY(-3px);
}
.user-setting-btn {
  position: fixed;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  color: #1565c0;
  border: 2px solid #1565c0;
  border-radius: 12px;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(21,101,192,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.user-setting-btn:hover {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 12px 40px rgba(21,101,192,0.3);
}
.tournament-card .save-availability-btn, .tournament-card .avail-checkbox, .tournament-card .notavail-checkbox, .tournament-card label[for^="avail"] {
  position: relative;
  z-index: 2;
}
.tournament-card .avail-checkbox,
.tournament-card .notavail-checkbox {
  display: inline-block !important;
  position: static !important;
  margin-right: 0.5em;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.tournament-card .save-availability-btn {
  display: inline-block !important;
  position: static !important;
  margin-left: 1em;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.5em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21,101,192,0.2);
  transition: all 0.3s ease;
}
.tournament-card .save-availability-btn:hover {
  background: linear-gradient(135deg, #003c8f, #002171);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21,101,192,0.3);
}
.tournament-card label {
  font-size: 1em;
  color: #2c5282;
  font-weight: 500;
  margin-right: 0.5em;
}
.tournament-card div {
  margin-bottom: 0.5em;
}
.tournament-list-item .avail-checkbox,
.tournament-list-item .notavail-checkbox {
  display: inline-block !important;
  position: static !important;
  margin-right: 0.5em;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.tournament-list-item .save-availability-btn {
  display: inline-block !important;
  position: static !important;
  margin-left: 1em;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.5em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21,101,192,0.2);
  transition: all 0.3s ease;
}
.tournament-list-item .save-availability-btn:hover {
  background: linear-gradient(135deg, #003c8f, #002171);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21,101,192,0.3);
}
.tournament-list-item label {
  font-size: 1em;
  color: #2c5282;
  font-weight: 500;
  margin-right: 0.5em;
}
.tournament-list-item div {
  margin-bottom: 0.5em;
}
