.lectureHeading {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 12px;
  color: rgb(50, 100, 225);
  background: rgb(210, 225, 255);
  font-weight: bold;
  border: 1px Solid rgb(50, 100, 225);
  align-items: center;
}

.lectureType {
  font-size: 13px;
  font-weight: bold;
  margin-right: 15px;
  padding: 0 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.moduleBox-content {
  display: flex;
  flex-wrap: wrap;
  background-color: rgb(225, 225, 225);
  border: 1px Solid rgb(50, 100, 225);
  border-bottom: none;
  border-top: none;
  justify-content: space-evenly;
}

.module-image {
  height: 70px;
  background-size: cover;
  background-position: center;
}

.module-card {
  width: 160px;
  height: 160px;
  margin: 15px;
  display: flex;
  border-radius: 5px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 5px 3px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgb(50, 100, 225);
  background-color: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.module-card:hover {
  transform: rotateY(0deg) scale(1.05);
}

.module-card.locked {
  background-color: #d3d3d3;
  color: #a9a9a9;
  filter: grayscale(80%);
  position: relative;
}

.module-card i {
  font-size: 16px;
}

.module-box {
  width: 100%;
}

.module-image {
  height: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 1);
  position: relative;
}

.module-info {
  z-index: 4;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  letter-spacing: 1px;
  padding: 10px 1px;
  text-align: center;
  font-size: 11px;
  color: white;
  background: linear-gradient(135deg,
      rgba(50, 100, 225, 0.7) 60%,
      rgba(210, 225, 250) 100%);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.dropdown-locked {
  position: relative;
  width: 85%;
  margin: 30px auto;
  background: rgb(150, 150, 150);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.8);
  border-radius: 5px;
  border: none;
  overflow: hidden;
}

.dropdown-heading-locked {
  padding: 10px 20px;
  font-size: 13px;
  color: white;
  background: rgb(150, 150, 150);
  cursor: not-allowed;
  border: none;
  border-radius: 5px 0 0 5px;
}

.dropdown-heading-locked-instructor {
  padding: 10px 20px;
  font-size: 13px;
  color: white;
  background: rgb(150, 150, 150);
  cursor: pointer;
  border: none;
  border-radius: 5px 0 0 5px;
}

.dropdown-content-locked {
  display: none;
  overflow: hidden;
  background-color: rgb(200, 200, 200);
}

.moduleLockDate {
  font-size: 11px;
  margin: 0 20px;
}

.moduleTitle {
  margin: auto 0;
}

.addFilesText {
  display: flex;
  font-size: 12px;
  margin: auto 2px;
  color: rgb(50, 100, 225);
}

.buttonsTabModuleCard {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.buttonsTabModuleCardButton {
  margin: 0 3px;
  padding: 3px 4px;
  border: none;
  display: flex;
  flex-direction: row;
  color: rgb(50, 100, 225);
  background-color: white;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  transition: background-color 0.5s ease, color 0.3s ease;
}

.buttonsTabModuleCardButton:hover {
  color: white;
  background-color: rgb(50, 100, 225);
}

.dots-menu-container {
  position: relative;
  cursor: pointer;
}

.dots-menu {
  position: absolute;
  top: 30px;
  /* Position below the three dots */
  right: 0;
  /* Align to the right of the module */
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 1000;
  /* Ensure it's above other elements */
  overflow: visible;
  animation: dropdown-appear 0.3s ease-out;
  /* Smooth dropdown animation */
  white-space: nowrap;
  /* Prevent text from wrapping */
}

/* Ensure menu stays visible outside of its parent */
.dropdown {
  position: relative;
  overflow: visible;
}

.dots-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease-in-out;
}

.dots-menu button:hover {
  background-color: #f5f5f5;
}

.dots-menu button:last-child {
  color: red;
  /* Red for the Delete option */
}

@keyframes dropdown-appear {
  from {
    opacity: 0;
    transform: translateY(-10px);
    /* Start slightly above */
  }

  to {
    opacity: 1;
    transform: translateY(0);
    /* End at the final position */
  }
}

/* Dark background overlay to prevent interaction with the page */
.overlay-modules {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 4500; /* Above everything else */
  /* Above everything else */
  display: flex;
  justify-content: flex-end;
  /* Panel slides from the right */
}

/* The sliding panel itself */
.update-panel-modules {
  position: relative;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(210, 225, 250, 0.8) 100%, rgba(50, 100, 225, 0.5) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transform: translateX(100%);
  /* Hide off-screen by default */
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
}

.update-panel-modules.material-panel {
  width: 70%;
}

/* When the panel is open, slide it into view */
.update-panel-modules.open {
  transform: translateX(0);
}

.update-panel-header-modules {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ffffff;
  color: white;
  background-color: rgba(50, 100, 225, 0.8);
}

.update-panel-header-modules h3 {
  margin: 0;
  font-size: 18px;
}

.close-button-modules {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  color: white;
}

.update-panel-content-modules {
  padding: 15px;
  overflow-y: auto;
  /* Scrollable if content is tall */
  height: calc(100% - 60px);
  /* Adjust for header space */
}

.module-assignment-meta p {
  font-size: 10px;
  margin-top: auto;
}

.assignment-details-panel {
  padding: 10px;
}

/* Reusable block style for each detail item */
.assignment-details-heading {
  margin-bottom: 20px;
}

.assignment-details-heading strong {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

/* Styling for detail content */
.assignment-details-item {
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.description-box {
  padding: 15px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Editable Form Styles */
.assignment-edit-form .form-group {
  margin-bottom: 20px;
}

.assignment-edit-form .form-control {
  font-size: 14px;
  padding: 10px;
}

.assignment-edit-form button {
  margin-top: 10px;
}

/* Header Buttons */
.edit-button-modules {
  font-size: 14px;
  padding: 5px;
  margin-right: 10px;
  background-color: white;
  border: 1px Solid white;
  color: rgb(50, 100, 225);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-button-modules:hover {
  background-color: rgb(223, 223, 223);
}

.delete-button-modules {
  font-size: 14px;
  padding: 5px;
  margin-right: 10px;
  background-color: #ff4d4f;
  border: 1px Solid white;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-button-modules:hover {
  background-color: #f72326;
}

.module-sub-header {
  width: 100%;
  background-color: rgba(210, 225, 255);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgb(50, 100, 225);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.module-sub-header button {
  font-size: 12px;
  padding: 5px 10px;
  margin: 0px 2px;
  border-radius: 3px;
  background-color: rgba(50, 100, 225, 0.8);
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.module-sub-header button:hover {
  background-color: rgba(50, 100, 225, 0.6);
  /* transform: scale(1.05);  */
}

.module-sub-header button:active {
  /* transform: scale(0.95);  */
  background-color: rgba(50, 100, 225, 1)
}

/* Disclaimer text above dates */
.date-disclaimer {
  background-color: #fff9c4;     
  border-left: 4px solid #ffeb3b; 
  padding: 8px 12px;          
  margin: 8px 0;             
  font-size: 10px;              
  color: #333;                
  border-radius: 3px;            
  line-height: 1.4;            
}

/* Optional: add a tooltip‑style icon */
.date-disclaimer::before {
  content: "⚠️";
  margin-right: 6px;
}

/* On hover, slightly darken background */
.date-disclaimer:hover {
  background-color: #fff59d;
}
