/* components.css 
Reusable UI elements (navbar,etc.)
*/


.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);

  display: flex;
  align-items: center;
  padding-top: 2em;
  padding-left: 20px;
  padding-right: 20px;

  box-shadow: 0 1px 1px rgba(0,0,0,0.009);
  width: 100%;

  /* Change justify-content from center to space-between */
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;

  /* Make nav-links take all available space */
  flex: 1;

  /* Center the nav-links inside the available space */
  justify-content: center;

  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 30px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #36BA98;
}

.dark-mode-button {
  padding: 8px 16px;
  cursor: pointer;
  background-color:#36BA98;
  color: #fff;
  border: none;
  border-radius: 4px;

  /* Prevent shrinking */
  flex-shrink: 0;
}

.nav-left {
  width: 100px; /* same width as button, roughly */
}


.RSVP-form {
  display: flex;
  justify-content: right;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  animation: fadeIn 0.4s ease-in;
}

.modal img {
  width: 100px;
  transition: transform 0.3s ease-in-out;
}

.hidden {
  display: none;
}

/* Simple fade-in */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

#classForm {
  backdrop-filter: blur(10px); /* frosted glass effect */
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: all 0.3s ease;
}

#classForm label {
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
}

#classForm input[type="text"],
#classForm input[type="time"] {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

#classForm button {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
}

#classForm button:first-of-type {
  background-color: #1e88e5; /* blue */
  color: white;
}

#classForm button:first-of-type:hover {
  background-color: #1565c0;
}

#classForm button:last-of-type {
  background-color: #e0e0e0; /* light gray */
  color: #333;
}

#classForm button:last-of-type:hover {
  background-color: #c2c2c2;
}
