.card {
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* GENERAL RESET & BASE */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
}

.layout {
  padding: 20px;
}

/* CARD STYLING */
.card {
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2b2b2b;
}

/* BUTTONS */
.btn-outline-primary {
  border-radius: 25px;
}

.btn-outline-secondary[disabled] {
  background-color: #f1f1f1;
  color: #888;
  cursor: not-allowed;
}

/* PROGRESS BAR */
.progress {
  background-color: #e6e6e6;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  font-weight: 600;
  font-size: 0.95rem;
}

/* SEARCH & FILTER */
#searchInput {
  border-radius: 30px;
  padding-left: 15px;
}

.filter-btn {
  margin-left: 5px;
  border-radius: 20px;
}

/* WEEK HEADING */
h4 {
  color: #0056b3;
  font-weight: 600;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
  margin-top: 30px;
}

/* IFRAME */
.ratio iframe {
  border-radius: 10px;
  border: 1px solid #ddd;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .card-title {
    font-size: 1rem;
  }
}


/* Navbar base */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0d6efd;
  padding: 0.5rem 1.5rem;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Left section */
.navbar-left .logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  letter-spacing: 1.2px;
  transition: color 0.3s ease;
}

.navbar-left .logo:hover {
  color: #ffc107;
}

/* Center navigation links */
.navbar-center .nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.navbar-center .nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

.navbar-center .nav-links li a:hover,
.navbar-center .nav-links li a:focus {
  color: #ffc107;
  background-color: rgba(255, 193, 7, 0.15);
  outline: none;
}

/* Right section buttons */
.navbar-right a {
  margin-left: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.btn-login {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-login:hover,
.btn-login:focus {
  background-color: white;
  color: #0d6efd;
}

.btn-register {
  background-color: #ffc107;
  color: #212529;
  border: 2px solid #ffc107;
  margin-left: 0.5rem;
}

.btn-register:hover,
.btn-register:focus {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #212529;
}

.btn-logout {
  background-color: #dc3545;
  color: white;
  border: 2px solid #dc3545;
}

.btn-logout:hover,
.btn-logout:focus {
  background-color: #b02a37;
  border-color: #b02a37;
  color: white;
}

/* Hide toggle button on desktop */
.navbar-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .navbar-center {
    display: none;
    width: 100%;
  }

  .navbar-center.active {
    display: block;
    background-color: #0d6efd;
    padding: 0.5rem 0;
  }

  .navbar-center .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .navbar-center .nav-links li {
    margin: 0;
  }

  .navbar-center .nav-links li a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* Show toggle button on mobile */
  .navbar-toggle {
    display: block;
  }

  /* Stack navbar sections vertically on mobile */
  .navbar {
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
  }

  .navbar-left,
  .navbar-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-right {
    margin-top: 0.5rem;
  }
}


/* Footer Styling */
.footer {
  background-color: #05ff1a;
  color: #f1f1f1;
  padding: 20px 0;
  text-align: center;
  font-size: 0.95rem;
  border-top: 4px solid #007BFF;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer p {
  margin: 0;
  letter-spacing: 0.5px;
}

