.layout {
  display: flex;
}

.navbar-logo {
  height: 65px;
  margin-left: 30px;
}

/* sidebar */
.sidebar {
  width: 220px;
  min-height: 100vh;
  background-color: #cff3fd;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  z-index: 1;
}

.secondary-sidebar {
  position: fixed;
  padding-top: 110px;
  background-color: #012960;
  width: 200px;
  height: 100vh;
  z-index: 0;
  top: 0;
}

/* sidebar nav links */
.base-link,
.base-link.btn {
  display: block;
  width: 100%;
  padding: 15px;
  text-align: left;
  font-weight: bold;
  font-size: large;
  color: #012960;
  background-color: transparent;
  cursor: pointer;
  padding-left: 30px;
}

.base-link:hover,
.base-link:focus {
  background-color: #0abee9;
  color: white;
}

.base-link.active {
  background-color: #0abee9;
  color: white;
}

.base-link.btn {
  border-radius: 0;
}

.secondary-link,
.secondary-link.btn {
  display: block;
  width: 100%;
  padding: 15px;
  margin-left: 15px;
  text-align: left;
  font-weight: bold;
  font-size: large;
  color: white;
  background-color: transparent;
  cursor: pointer;
  padding-left: 30px;
}

.secondary-link:hover,
.secondary-link:focus {
  background-color: white;
  color: #012960;
}

.secondary-link.active {
  background-color: white;
  color: #012960;
}

.secondary-link.btn {
  border-radius: 0;
}

/* containers */
.content {
  width: calc(100% - 275px);
  display: inline-flex;
}

.content.with-margin {
  margin-left: 200px;
}

.main-content {
  margin-left: 230px;
  padding: 50px 50px 120px 50px;  
  width: 100%;
}

.lesson-container {
  min-height: 200px;
}

.lesson-title {
  background-color: #012960;
  color: white;
  width: 100%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* unit  */

.unit-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.unit-card {
  position: relative;
  height: 300px;
  overflow: hidden;
  cursor: pointer;
  margin: 15px;
}

.unit-front,
.unit-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.unit-front {
  background: white;
  z-index: 2;
  opacity: 1;
}


.unit-back {
  z-index: 1;
  opacity: 0;
  background-color: #012960;
  padding: 12px;
  pointer-events: none;
  text-align: center;
}

.unit-card:hover .unit-front {
  opacity: 0;
  pointer-events: none;
}

.unit-card:hover .unit-back {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}

/* class container  */
.class-container {
  display: flex;
  flex-wrap: wrap;
}

.class-card {
  background-color: white;
  transition: background-color 0.3s ease;
  margin: 15px;
  margin-top: 30px;
}

.class-card:hover {
  background-color: #012960;
  color: white;
}

/* Lesson list styles */

.lesson-list {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

.lesson-item {
  margin-bottom: 5px;
}

.lesson-link {
  display: block;
  width: 100%;
  padding: 6px 10px;
  font-weight: 600;
  color: white;
  background-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s ease;
  text-decoration: none;
  border-radius: 5px;
}

.lesson-link:hover {
  background-color: white;
  color: #012960;
}

.assessment-link {
  display: block;
  width: 100%;
  padding: 6px 10px;
  font-weight: 600;
  color: #012960;
  background-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s ease;
  text-decoration: none;
  border-radius: 5px;
}

.assessment-link:hover {
  background-color: #012960;
  color: white;
}

/* doc cards */

.doc-card {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.doc-card:hover {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    transform: translateY(-3px);
}

.register-container {
  display: flex;
  justify-content: center;
  /* min-height: 90vh; */
}

/* Existing scroll-container styles */
.image-scroll-container {
  height: 80vh;
  overflow-y: scroll;
  padding: 1rem;
  background-color: black;
  border: 1px solid black;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.page-image {
  display: block;
  margin: 2rem auto;
  height: 90vh;
  object-fit: contain;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
}

.slideshow-container {
  position: relative;
  display: flex;
  align-items: center;       
  justify-content: center;   
  width: 100%;
  max-height: 90vh;
  background-color: black;
  overflow: hidden;
}

.slideshow-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: none;
  background-color: black;
}

/* Fullscreen mode layout */
.slideshow-container.fullscreen-mode {
  width: 100vw;
  height: 100vh;
}

.slideshow-container.fullscreen-mode .slideshow-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

/* Navigation buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10;
}

#prev-btn { left: 10px; }
#next-btn { right: 10px; }

.fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.5rem;
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10;
}
