body {
  background-color: #000;
  margin: 0px;
}

h1 {
  font-family: "Goldman", sans-serif;
  font-weight: 400;
  color: white;
}

.container h2, h3, h4, h5, h6, .container p, a, footer, button {
  font-family: "Open Sans", sans-serif;
  color: white;
}

p#xp {
  font-family: "Open Sans", sans-serif;
  color: white;
}

h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

button {
  font-size: 15px;
  outline: none;
}

.session table, th, td {
  border: 1px white solid;
  color: white;
  font-family: Open Sans, sans serif;
  padding: 5px;
  margin-bottom: 10px;
  margin: 0 auto;
}

.session table {
  margin-bottom: 10px;
  margin: 0 auto;
  border-collapse: collapse !important;
}

.session {
  border-collapse: collapse !important;
}

.session thead {
  border-radius: 10px;
}

.btn-primary {
  background-color: #00bf63;
  text-decoration: none;
  padding: 8px;
  margin: 12px 0px 12px 0px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
  border: none;
}

.btn-primary:hover {
  background-color: #029c51;
}

input[type=text], input[type=number], input[type=time], input[type=date], select {
  background-color: #000;
  color: #fff;
  padding: 2px;
  font-family: Open Sans, sans serif;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid black;
  margin: 5px 0 5px 0;
}

input[type="time"]::placeholder {
  color: #121c17;
} 
  
.fc .fc-button {
  padding: 0.1em 0.25em !important;
  background-color: #000 !important;
}

.fc .fc-event {
  background-color: #000;
  font-size: 1.2rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fc .fc-event .incomplete{
  background-color: #eb1616;
}

.fc .fc-event .complete {
  background-color: #00bf63;
}

.fc-day {
  min-height: 5% !important;
  height: 10px;
}

/* ================================
   Navbar
================================ */
/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #00bf63;
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.4rem;
  font-family: "Goldman", sans-serif;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a, .nav-links p {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #c8e6c9;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1100; /* keep above sliding menu */
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Mobile Slide-in Menu */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #00bf63;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hamburger to X (fix alignment) */
  .nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.4s ease;
    transform-origin: center; /* ensures rotation pivots correctly */
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -8px);
  }
}

.page-header {
  text-align: center;
  background-color: #121c17;
  padding: 8px;
}

.page-header h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #00bf63;
  margin: 10px auto 0;

}

.container {
  padding: 20px;
  border-radius: 20px;
  background-color: #121c17;
  margin: 20px;
  box-shadow: 0 2px 8px rgba(255,255,255,0.2);
}

.quest-card {
  padding: 14px 10px 14px 10px;
  border-radius: 20px;
  background-color: #000;
  margin-bottom: 10px;
  background-color: #000;
}

.upgrade-card {
  padding: 4px 20px 4px 20px;
  border-radius: 20px;
  background-color: #000;
  margin-bottom: 10px;
  font-size: 1rem;
  justify-content: center;
  width: 100%;
  border: none;
  transition: 0.2s;
}

.upgrade-card:hover,
.upgrade-card:focus {
  box-shadow: 0 0.5em 0.5em -0.4em rgba(0, 191, 99,0.5);
  transform: translateY(-0.25em);
}

.upgrade-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.upgrade-text img {
  height: 50px;
  width: 50px;
}

.upgrade-text strong {
  font-size: 1.2rem;
  font-weight: 700;
  margin-right: 10px;
}

.upgrade-text span {
  font-size: 1.9rem;
  color: #00bf63;
  text-shadow: 0px 0px 8px #00733c;
}

.fc-day-today {
  background-color: rgba(0, 191, 99, 0.3) !important;
  color: #fff !important; /* white text for contrast */
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #00bf63;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #00bf63;
}

input:focus + .slider {
  box-shadow: 0 0 1px #00bf63;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: center; /* centers the whole row */
  gap: 10px; /* space between text and switch */
}

.switch-row span {
  font-size: 1.1em;
  color: white;
  font-family: Open Sans, sans serif;
}

.progress-bar {
  width: 100%;
  background-color: #a6a6a6;
  border-radius: 5px;
  margin-bottom: 10px;
  position: relative;
  height: 20px; /* Adjust height to fit text */
}

.progress {
  height: 100%;
  background-color: #00bf63;
  border-radius: 5px;
}

.progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: white;
  pointer-events: none; /* Allows clicks to pass through */
  font-size: 12px;
  font-family: Open Sans, sans-serif;
}

.swal2-popup {
  font-family: Open Sans, sans-serif;
}

.game-score {
  text-align: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
  font-family: "Goldman", sans-serif !important;
}

.game-icon {
  font-size: 8rem;
  text-align: center;
}

.tab {
  overflow: hidden;
}

.tab h2 {
  float: left;
  margin-top: 17px;
}

.tab button {
  background-color: #000;
  color: #00bf63;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 13px;
  transition: 0.3s;
  font-size: 21px;
  margin: 8px;
  border-radius: 5px;
}

.tab button:hover {
  background-color: #00bf63;
  color: #fff;
}

.tab button.active {
  background-color: #00bf63;
  color: #fff;
}

.tabcontent {
  display: none;
  padding: 6px 12px;
  border-radius: 20px;
  background-color: #000;
  border-top: none;
}

.data-xp-table {
  border-collapse: collapse;
  border-radius: 6px;
}


.title-cell {
  align-items: center;
  text-align: center;
  font-weight: bold;
}

.data-cell {
  align-items: center;
  text-align: center;
  font-weight: 300;
}

.progress-bar {
  display:none;
  align-items:center;
  gap:10px;
  margin-top:0.75rem;
}

.top-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.meta {
  color:#666;
  font-size:0.9rem;
}

.muted {
  color:#999;
  font-size:0.9rem; 
  font-family: "Goldman", sans-serif;
}

.claimed {
  background:#c9f5dd;
  color:#12703a;
  padding:4px 8px;
  border-radius:6px;
  font-weight:600;
}

.hidden {
  display: none;
}

.switch-row span {
  font-family: "Goldman", sans-serif;
}
