/* sem1.css */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to top right, #54a368, #4c6a7b,white);
  color: #333;
  line-height: 1.6;
  padding-top: 80px;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(102, 255, 206, 0.45) 0%, rgba(53,147,129,0.45) 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.351);
  padding: 0 24px;
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 2000;
  backdrop-filter: blur(8px);
}

.header-left {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-right: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px #2563eb22;
  transition: background 0.2s, transform 0.2s;
}

.menu-toggle:hover {
  background: #2563eb;
  transform: scale(1.08);
}

.menu-icon {
  width: 24px;
  height: 3px;
  background: #2563eb;
  display: block;
  border-radius: 2px;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 3px;
  background: #2563eb;
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-icon::before { top: -8px; }
.menu-icon::after { top: 8px; }

.logo {
  height: 65px;
  /* border-radius: 50%; */
  /* object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

.navigation {
  display: flex;
  gap: 12px;
}

.navigation a {
  text-decoration: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1em;
  transition: background 0.3s, color 0.3s;
}

.navigation a:hover,
.navigation a.active {
  background: #fff;
  color: #2563eb;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  background: linear-gradient(135deg, rgba(37, 235, 182, 0.45) 60%, rgba(53,147,129,0.45) 100%);
  box-shadow: 2px 0 24px rgba(0,0,0,0.18);
  transform: translateX(-100%);
  transition: transform 0.4s ease, box-shadow 0.3s;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  backdrop-filter: blur(12px);
}

.nav-drawer.open {
  transform: translateX(0);
  box-shadow: 2px 0 32px rgba(0,0,0,0.25);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.25);
  z-index: 2999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.drawer-header {
  /* padding-block-start:  */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 18px 10px;
  border-bottom: 1px solid #ffffff33;
  background: transparent;
  gap: 24px;
}

.drawer-profile-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.3em;
  margin-bottom: 2px;
 /* padding-left: 20px; */

}
.drawer-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.drawer-profile-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px #25ebb033;
}
.drawer-profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.drawer-profile-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.3em;
  margin-bottom: 2px;

}

.drawer-login-btn {
  background: #fff;
  color: #25eb95;
  border: none;
  border-radius: 6px;
  padding: 8px 28px;
  font-weight: 600;
  font-size: 1.15em;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s, color 0.2s;
}

.drawer-login-btn:hover {
  background: #2563eb;
  color: #fff;
}

.drawer-back {
  background: #fff;
  color: #2563eb;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.3em;
  margin-top: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px #2563eb22;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  align-self: flex-end;
}
.drawer-links a:hover, .drawer-links a.active {
  background: #fff2;
  color: #ffd600;
  border-left: 4px solid #ffd600;
  padding-left: 40px;
  animation: drawerLinkPop 0.3s;
}

.drawer-back:hover {
  background: #359381;
  color: #fff;
  transform: scale(1.1) rotate(-8deg);
}

.drawer-links {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  width: 100%;
}

.drawer-links li {
  width: 100%;
}

.drawer-links a {
  display: block;
  width: 100%;
  padding: 16px 32px;
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: all 0.2s;
}

.drawer-links a:hover {
  background: #fff2;
  color: #ffd600;
  border-left: 4px solid #ffd600;
}
/* =========================
   ✅ Course Tracker CSS
   ========================= */

.course-tracker {
  width: 90%;
  margin: 20px auto;
  padding: 10px;
  background: #f9fafb;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  text-align: center;
}

.course-tracker h3 {
  margin-bottom: 8px;
  font-size: 16px;
  color: #2563eb; /* Blue highlight color like your header */
}

.progress-bar {
  width: 100%;
  background: #e0e0e0;
  border-radius: 30px;
  overflow: hidden;
  height: 20px;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #00c853, #64dd17);
  text-align: center;
  line-height: 20px;
  color: #fff;
  font-weight: bold;
  width: 0%;
  transition: width 0.4s ease;
}

.topic-list {
  list-style-type: none;
  padding: 0;
  text-align: left;
  max-height: 200px;
  overflow-y: auto;
}

.topic-list li {
  margin: 6px 0;
}

.topic-list label {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.topic-list input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #2563eb; /* Modern checkbox color */
}


.page-header {
  text-align: center;
  padding: 70px 20px 20px;
}

.page-header h1 {
  font-size: 2.5em;
  color: #2563eb;
  margin-bottom: 8px;
}

.page-header p {
  color: #292727;
  font-size: 1.1em;
}

/* flip card */

body {
  font-family: sans-serif;
  margin: 0;
  padding: 20px;
  background: linear-gradient(to top right, #54a368, #4c6a7b,white);;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.flip-card {
  background-color: transparent;
  width: 270px;
  height: 400px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotatey(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  overflow-y: auto;
}

.flip-card-front {
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.733);
  border-top: solid 5px rgba(229, 174, 114, 0.595);

}

.flip-card-front img  {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.flip-card-front h3 {
  margin: 10px;
  font-size: 18px;
}

.flip-card-back {
  background-color: #b6c6cc;
  color: rgb(2, 2, 2);
  transform: rotateY(180deg);
  padding: 10px;
  box-sizing: border-box;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.733);
}

.flip-card-back h4 {
  margin-top: 10px;
}

.flip-card-back ul {
  list-style-type: none;
  padding: 0;
  margin: 5px 0 10px 0;
}

.flip-card-back ul li {
  margin: 5px 0;
}

.flip-card-back ul li a {
  color: #5d4d0d;
  text-decoration: none;
  font-size: 14px;
}

.flip-card-back ul li a:hover {
  text-decoration: underline;
  color: #4e4d48;
}


.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 40px 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h2 {
  font-size: 1.3em;
  color: #333;
  padding: 16px;
}

.notes-list {
  padding: 0 16px 16px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.card.open .notes-list {
  display: flex;
}

.notes-list a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.notes-list a:hover {
  color: #359381;
}

.footer {
  text-align: center;
  padding: 20px;
  background: #f1f1f1;
  font-size: 0.95em;
  color: #666;
}

@media (max-width: 900px) {
  .navigation {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

@media (min-width: 901px) {
  .nav-drawer, .nav-overlay {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .main-header {
    flex-direction: column;
    height: auto;
    padding: 10px;
    align-items: flex-start;
  }

  .logo {
    height: 50px;
    margin-top: 8px;
  }

  .page-header h1 {
    font-size: 1.6em;
    text-align: center;
    padding: 0 10px;
  }

  .page-header p {
    font-size: 1em;
    text-align: center;
    padding: 0 10px;
  }

  .card-container {
    grid-template-columns: 1fr;
    padding: 20px 70px;
  }

  .card h2 {
    font-size: 1.1em;
    padding: 12px;
  }

  .drawer-profile-img {
    width: 80px;
    height: 80px;
  }

  .drawer-login-btn {
    font-size: 1em;
    padding: 6px 20px;
  }

}



