body {
  margin: 10px;
  font-family: "Poppins", sans-serif;
  background: #f6f7f9;
  color: #1f2a37;
  overflow-y: scroll;
}


.nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.nav li:hover,
.nav li.active {
  background: #2a2d31;
}

.nav li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  width: 100%;
}

.nav li a:hover {
  color: #fff;
  text-decoration: none;
}

.nav li i {
  font-size: 18px;
  min-width: 24px;
}

/* Logout Button (styled like nav items) */
.logout-form {
  margin: 0;
  padding: 0;
  width: 100%;
}

.logout-link {
  background: none;
  border: none;
  padding: 14px 20px;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
}

.logout-link:hover {
  background: #2a2d31;
}

.logout-link i {
  font-size: 18px;
  min-width: 24px;
}

/* Main Content */
.main {
  flex: 1;
  margin-left: 240px;
  padding: 20px;
  height: 100vh;
  transition: margin-left 0.3s ease;
}



/* Mobile Header */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin: -20px -20px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1f2a37;
  padding: 5px;
}

.mobile-icons {
  display: flex;
  gap: 15px;
}

.mobile-icons i {
  font-size: 20px;
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #1f2a37;
}

.card p {
  color: #6b7280;
  margin: 0 0 15px;
  line-height: 1.5;
}

/* Button-like links */
.remove-line {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
  margin-top: auto;
}

.remove-line:hover {
  background-color: #0056b3;
  color: white;
  text-decoration: none;
}



/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {

  
  .main {
    margin-left: 10px;
    padding: 15px;
    width: 100%;
  }
  
  .mobile-header {
    display: flex;
  }
  
  .sidebar-overlay.active {
    display: block;
  }
}

/* Smaller devices */
@media (max-width: 576px) {
  .sidebar {
    width: 260px;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Print */
@media print {
  .sidebar, .mobile-header, .sidebar-overlay {
    display: none;
  }
  
  .main {
    margin-left: 10px;
    padding: 0;
  }
}
body {
  margin-left: 10px;
  font-family: "Poppins", sans-serif;
  background: #f6f7f9;
  color: #1f2a37;
  overflow-y: scroll;
}


.nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.nav li:hover,
.nav li.active {
  background: #2a2d31;
}

.nav li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  width: 100%;
}

.nav li a:hover {
  color: #fff;
  text-decoration: none;
}

.nav li i {
  font-size: 18px;
  min-width: 24px;
}

/* Logout Button (styled like nav items) */
.logout-form {
  margin: 0;
  padding: 0;
  width: 100%;
}

.logout-link {
  background: none;
  border: none;
  padding: 14px 20px;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
}

.logout-link:hover {
  background: #2a2d31;
}

.logout-link i {
  font-size: 18px;
  min-width: 24px;
}

/* Main Content */
.main {
  flex: 1;
  margin-left: 240px;
  padding: 20px;
  height: 100vh;
  transition: margin-left 0.3s ease;
}



/* Mobile Header */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin: -20px -20px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1f2a37;
  padding: 5px;
}

.mobile-icons {
  display: flex;
  gap: 15px;
}

.mobile-icons i {
  font-size: 20px;
}

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #1f2a37;
}

.card p {
  color: #6b7280;
  margin: 0 0 15px;
  line-height: 1.5;
}

/* Button-like links */
.remove-line {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
  margin-top: auto;
}

.remove-line:hover {
  background-color: #0056b3;
  color: white;
  text-decoration: none;
}



/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {

  
  .main {
    margin-left: 10px;
    padding: 15px;
    width: 100%;
  }
  
  .mobile-header {
    display: flex;
  }
  
  .sidebar-overlay.active {
    display: block;
  }
}

/* Smaller devices */
@media (max-width: 576px) {
  .sidebar {
    width: 260px;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Print */
@media print {
  .sidebar, .mobile-header, .sidebar-overlay {
    display: none;
  }
  
  .main {
    margin-left: 0;
    padding: 0;
  }
}


.icon-wrapper {
  font-size: 2rem;
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.card h3 {
  color: #222;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  color: #666;
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- Buttons ---------- */
.btn-action {
  display: inline-block;
  color: #fff;
  background: linear-gradient(90deg, #0d6efd, #004dc1);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}

.btn-action:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #004dc1, #0d6efd);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}
/* Main Content (Desktop) */
.main {
  flex: 1;
  margin-left: 240px;
  padding: 20px;
  height: 100vh;
  overflow-x: hidden;
  transition: margin-left 0.3s ease;
}

/* Cards Grid (Enable sliding on mobile) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  transition: transform 0.3s ease;
}

/* For small screens - make main section horizontally scrollable */
@media (max-width: 768px) {
  .main {
    margin-left: 10px;
    padding: 15px;
    width: 100%;
    overflow-x: auto; /* Allow horizontal scroll */
  }

  .cards {
    display: flex; /* Turn grid into horizontal scroll row */
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
  }

  .card {
    flex: 0 0 85%; /* Each card takes about 85% width of the screen */
    scroll-snap-align: start;
    min-width: 280px;
  }

  /* Optional: Hide scrollbar for a cleaner look */
  .cards::-webkit-scrollbar {
    display: none;
  }
}
