:root {
  --fg: #fff;
  --bg: #1E0722;
  --bg-alt: #2e2242;
  --bg-alt-light: #50135A;

  --violet: #4b096b;
  --green: #00e5bc;
  --blue: #33a9ff;
  --pink: #fb49ff;
  --purple: #651e72;
  --violet: #b67dfc;
  --yellow: #ffdeab;
  --magenta: #8B084E;
  --popup-bg: #27122c;
  --white: #fff;

  --radius: 0.75rem;
  --header-height: 7vh;
  --content-height: calc(100vh - var(--header-height));
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
/* Scrollbar */
::-webkit-scrollbar {
  background-color: transparent;
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#21d4fd, #b721ff);
  border-radius: 100px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  display: inline-block;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Poppins", sans-serif;
}

.cr-header {
  width: 100%;
  height: var(--header-height);
  border-bottom: 0.125rem solid var(--bg-alt-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1rem;
}

.cr-header-button {
  width: 2.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  margin-left: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.cr-header-button img {
  max-height: 1.75rem;
}

#cr-navigation-open-button {
  display: none;
}
.cr-header-button:hover {
  background-color: var(--bg-alt);
}


.cr-toolbar {
  border-left: 0.125rem solid var(--bg-alt-light);
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  grid-row: span 12;
  background: var(--bg);
}

.cr-toolbar-button {
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  color: var(--fg);
  -webkit-border-radius: 0.5rem;
  -moz-border-radius: 0.5rem;
  -ms-border-radius: 0.5rem;
  -o-border-radius: 0.5rem;
  padding: 0.5rem;
  margin: 0 0.5rem;
  cursor: pointer;
}
.cr-toolbar-button:hover {
  background: var(--bg-alt-light);
}

.cr-content {
  width: 100%;
  height: var(--content-height);
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-template-rows: repeat(12, 1fr);
}

.cr-main {
  grid-column: span 18;
  grid-row: span 12;
  padding: 1.5rem;
  overflow-y: scroll;

  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.cr-teamchat {
  max-width: 25rem;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: -100%;
  background: #000;
  transition: right 0.5s;
}
.cr-teamchat-header-buttons {
  padding: 0.25rem;
  display: flex;
  gap: 0.25rem;
  border-radius: 0.5rem;
  background: #000;
}

.cr-teamchat-header-button {
  width: 100%;
  background: transparent;
  color: var(--fg);
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem;
}

.cr-teamchat-close {
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.25rem;
  position: absolute;
  top: 1rem;
  cursor: pointer;
  right: 1rem;
}

.cr-teamchat-content {
  width: 100%;
  height: 100%;
  padding: 2rem;
}

.cr-teamchat-input {
  width: 100%;
  padding: 0.5rem;
  border: 0.0625rem solid var(--fg);
  border-radius: 0.5rem;
  background: transparent;
  display: flex;
  align-items: center;
}
.cr-teamchat-input input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--fg);
  padding: 0 0.5rem;
}
.cr-teamchat-input input:focus {
  outline: none;
}

.cr-teamchat-header-button:not(.cr-active) {
  cursor: pointer;
}

.cr-teamchat-header-button.cr-active {
  background: var(--fg);
  color: #000;
}

.cr-teamchat-header {
  width: 100%;
  padding: 2rem;
  background: linear-gradient(135deg, var(--purple), #000);
}

.cr-teamchat-title {
  margin-bottom: 1rem;
}

.cr-teamchat-members {
  list-style: none;
}

.cr-teamchat-member {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cr-teamchat-member-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cr-teamchat-member-name {
  font-size: 1rem;
}
.cr-teamchat-member-role {
  font-size: 0.75rem;
}
.cr-teamchat-member-action {
  background: none;
  border: none;
  color: var(--violet);
  padding: 0.25rem 0;
  cursor: pointer;
}

.cr-teamchat-member {
  border-bottom: 0.125rem solid var(--bg-alt-light);
  padding: 1.5rem 0;
}

/* Navigation */
.cr-navigation-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.cr-navigation-heading img {
  height: 2.5rem;
}

.cr-navigation ul {
  list-style: none;
  margin-top: 1rem;
  padding: 1rem;
}
.cr-navigation-item {
  padding: 0.5rem;
  border-radius: 0.5rem;
  -webkit-border-radius: 0.5rem;
  -moz-border-radius: 0.5rem;
  -ms-border-radius: 0.5rem;
  -o-border-radius: 0.5rem;
}

.cr-navigation-item.cr-active {
  background: var(--purple);
}

.cr-navigation-item:not(.cr-active):hover {
  background: var(--bg-alt-light);
}

.cr-navigation-item a img {
  width: 1.75rem;
  aspect-ratio: 1;
}
.cr-navigation-item a {
  text-decoration: none;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cr-navigation,
.lr-navigation {
  transition: left 0.5s;
  border-right: 0.125rem solid var(--bg-alt-light);
  padding: 1rem;
  grid-column: span 5;
  grid-row: span 12;
  font-size: 0.95rem;
}

.cr-navigation-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.cr-navigation-title {
  margin-bottom: 1.5rem;
}

/* Course */
.cr-mainContent {
  order: 1;
  flex-grow: 1;
}

.cr-main-heading {
  margin-bottom: 2rem;
}

.cr-course {
  padding: 1.5rem;
  background: var(--magenta);
  list-style-type: none;
  border-radius: var(--radius);
  border: 0.0625rem solid var(--white);
  cursor: pointer;
  position: relative;
  margin-bottom: 1rem;
}

.course-name {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.course-icon,
.cr-streak-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  aspect-ratio: 1;
}

.course-icon img,
.cr-streak-icon img {
  width: 60%;
  aspect-ratio: 1;
  text-align: center;
  color: black;
}

.cr-course-info {
  background: var(--white);
  border-radius: var(--radius);
  display: block;
  text-decoration: none;
  color: var(--magenta);
  display: none;
  padding: 1.5rem;
}

.cr-course-arrow {
  margin-left: auto;
  transform: rotate(180deg);
  transition: transform 0.5s;
}

.cr-course.expanded .course-name {
  margin-bottom: 1.5rem;
}

.cr-course.expanded .cr-course-arrow {
  transform: rotate(0deg);
}

.cr-course.expanded .cr-course-info {
  display: inherit;
}

.cr-course-dates {
  display: flex;
  gap: 2rem;
}

.cr-course-title {
  margin-bottom: 0.75rem;
}
.cr-course-dates-heading {
  font-size: 0.85rem;
  color: gray;
}

.sm-show {
  display: none;
}

/* Streak */
.cr-streak {
  max-width: 25rem;
  order: 2;
  border-radius: var(--radius);
  border: 0.0625rem solid var(--white);
  align-self: first baseline;
  overflow: hidden;
}

.cr-streak-header {
  background: var(--magenta);
  color: var(--white);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
}

.cr-streak-date-range {
  font-weight: bold;
  color: #6b6b6b;
}

.cr-streak-week {
  background: var(--white);
  padding: 1rem 1.5rem;
  color: var(--bg);
}

.cr-streak-weekdays {
  list-style: none;
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 0.75rem;
}


.cr-streak-weekdays li {
  max-width: 2rem;
  width: calc(100%/8);
  aspect-ratio: 1;
  font-size: 90%;
  font-weight: bold;
  color: #6b6b6b;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #eee;
  cursor: default;
}

.cr-streak-weekdays li.cr-streak-true {
  background: var(--magenta);
  color: var(--white);
}
.cr-streak-weekdays li.today {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

/* Course Content */
.cr-coursecontent {
  width: 100%;
}

.cr-coursecontent-week {
  width: 100%;
  border-bottom: 0.0625rem solid gray;
}
.cr-coursecontent-week-header {
  width: 100%;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  cursor: pointer;
  align-items: center;
}

.cr-coursecontent-week-name {
  font-size: 1.25rem;
}

.cr-coursecontent-badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 100rem;
  background: var(--white);
  color: var(--bg);
}

.cr-coursecontent-expand-indicator {
  transform: rotate(-180deg);
  transition: transform 0.5s;
  margin-left: auto;
}
.cr-coursecontent-lectures {
  display: none;
  padding: 0rem 1rem 1rem 1rem;
  list-style: none;
}
.cr-coursecontent-lecture {
  border-bottom: 0.0625rem solid gray;
  padding: 0.75rem 0;
}

.cr-coursecontent-lecture a {
  text-decoration: none;
  color: var(--white);
}

.cr-coursecontent-lecture:first-child {
  padding: 0 0 0.5rem 0;
}
.cr-coursecontent-lecture:last-child {
  border: none;
}
.cr-coursecontent-lecture-name {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cr-coursecontent-lecture-name img {
  height: 1.5rem;
}

.cr-coursecontent-lecture-duration,
.cr-coursecontent-lecture-problems {
  opacity: 0.75;
  font-size: 0.95rem;
}
.cr-coursecontent-week.expanded .cr-coursecontent-expand-indicator {
  transform: rotate(0deg);
}
.cr-coursecontent-week.expanded .cr-coursecontent-lectures {
  display: block;
}

/* Lecture Room */
.lr-content {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-template-rows: repeat(12, 1fr);
}
.lr-main {
  grid-column: span 14;
  grid-row: span 12;
  display: flex;
  gap: 2rem;
  width: 100%;
}
.lr-sidebar {
  grid-column: span 4;
  grid-row: span 12;
  border-left: 0.125rem solid var(--bg-alt-light);
}

.lr-navigation {
  padding: 0;
  grid-column: span 6;
  grid-row: span 12;
  max-height: 100%;
}

.lr-lecture-title {
  margin-bottom: 1rem;
}
.lr-lecture-progress-wrapper {
  margin-bottom: 1rem;
}
.lr-lecture-progress-bar {
  width: 100%;
  height: 0.3125rem;
  position: relative;
  background-color: var(--bg-alt-light);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.lr-lecture-progress-bar > span{
  height: 100%;
  background: var(--green);
  position: absolute;
  left: 0;
}
.lr-lecture-progress-percentage {
  font-size: 0.75rem;
  color: gray;
}

.lr-nav-header {
  width: 100%;
  border-bottom: 0.0625rem solid var(--bg-alt-light);
  padding: 1.5rem;
}
.lr-nav-header-deadline {
  margin-top: 0.25rem;
  color: var(--magenta);
  font-size: 0.85rem;
}
.lr-nav-header-date {
  font-size: 0.85rem;
  color: gray;
}
.lr-lecture-list {
  padding: 1.5rem;
  list-style: none;
}
.lr-lecture-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--white);
  margin-bottom: 1rem;
}
.lr-lecture-item:last-child .lr-lecture-card {
  margin-bottom: 0;
}

.lr-lecture-card-icon:after {
  content: "";
  width: 0.125rem;
  height: 100%;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-alt-light);
  z-index: -1;
}

.lr-lecture-item:last-child .lr-lecture-card-icon:after {
  height: 0;
}

.lr-lecture-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  aspect-ratio: 1;
  background: var(--bg-alt);
  border-radius: 0.5rem;
  display: grid;
  place-content: center;
  text-align: center;
  position: relative;
}

.lr-lecture-card-icon img {
  max-width: 1.5rem;
  max-height: 1.5rem;
  width: 95%;
  height: 95%;
  -o-object-fit: contain;
     object-fit: contain;
}

.lr-lecture-card-duration {
  font-size: 0.85rem;
  color: gray;
}

.lr-mainContent {
  order: 1;
  width: 100%;
}
.lr-lecture-video {
  width: 100%;
}
.lr-lecture-video video {
  width: 100%;
}

.lr-lecture-tabs {
  width: 100%;
  list-style: none;
  display: flex;
  border-bottom: 0.0625rem solid var(--bg-alt-light);
  border-top: 0.0625rem solid var(--bg-alt-light);
}
.lr-lecture-tab-content {
  padding: 1rem;
}
.lr-lecture-tab-button {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.1s;
}

.lr-lecture-tab-content ul {
  margin-left: 1rem;
}

.lr-lecture-tab-button::-moz-selection {
  background: none;
}

.lr-lecture-tab-button::selection {
  background: none;
}

.lr-lecture-tab-button:hover {
  background-color: var(--bg-alt-light);
}
.lr-lecture-tab-button.active {
  background: var(--bg-alt-light);
}

.lr-lecture-tab {
  display: none;
}
.lr-lecture-tab.active {
  display: block;
}

.lr-sidebar {
  padding: 1.5rem;
  text-align: center;
}
.lr-sidebar-title {
  margin-bottom: 2rem;
}
.lr-sidebar-button {
  margin-bottom: 2rem;
  text-decoration: none;
}

.lr-sidebar-illustration {
  width: 100%;
  margin: 2rem 0;
}

/*  Gradient Button */
.gradient-button:hover {
  background: linear-gradient(to right, var(--green), var(--pink)) border-box;
  color: var(--bg-alt);
  -webkit-animation: gradientMove 2s infinite;
  animation: gradientMove 2s infinite;
}

.gradient-button {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--fg);
  background: linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box,
    linear-gradient(to right, var(--green), var(--pink)) border-box;
  border-radius: 0.5rem;
  border: 0.15rem solid transparent;
}
.msg-cont {
  width: 97%;
  margin: 5px auto;
  position: relative;
  color: #FFF;
}
.notes-cont{
  width: 98%;
  margin: 5px auto;
  position: relative;
}
.date-and-time {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 12px;
  color: #ffffff;
}
.user-msg-cont {
  display: flex;
  align-items: center;
}
.user-profile img {
  height: 50px;
  /* width: 50px; */
  border-radius: 50%;
  object-fit: contain;
}
.name-and-msg{
  margin-left: 7px;
}
.name-and-msg span {
  font-size: 15px;
  color: #ffffff;
  font-weight: 800;
}
.name-and-msg p {
  font-size: 14px;
  width: 100%;
  text-align: left;
  color: #ffffff;
}
.le-qa-input-msg{
  display: flex;
  justify-content: center;
  width: 90%;
}
.le-qa-input-msg input{
  width: 90%;
  padding: 3px;
  padding-left: 10px;
  color: #000;
  border-radius: 5px;
  
}
.le-qa-input-msg button{
  width: 10%;
  padding: 5px 4px 5px 4px;
  color: var(--fg);
  background: var(--green);
  border-radius: 5px;

}
.user-notes-cont{
  position: relative;
  /* border: 1px solid red; */
  padding: 10px;
}
.delete-img{
  display: flex;
  justify-content: end;
  
  width: 100%;
  margin-top: 5px;
  margin-right: 5px;
  margin-bottom: 4px;
}
.delete-img img{
  height: 20px;
  width: 20px;
  object-fit: contain;
  cursor: pointer;
}
.le-input-notes{
  display: flex;
}
.le-input-notes input{
  width: 90%;
  padding: 4px 8px;
  border-radius: 5px;
}
.le-input-notes button{
  width: 10%;
  padding: 5px 4px 5px 4px;
  background: var(--green);
  border-radius: 5px;
}

.custom-alert{
  position: fixed;
  top: 80px;
  right: 25px;
  z-index: 99999;
}
.alert-success{
  background-color: rgb(145, 248, 145);
  color: #fff;
  padding: 10px 5px 10px 5px;
  border-radius: 8px;

}
.alert-error{
  background-color: rgb(255, 131, 131);
  color: #fff;
  padding: 10px 5px 10px 5px;
  border-radius: 8px;
}
/* assignment  */
.assignment{
  display: flex;
  justify-content: center;
  height: 60vh;
}
.assignment_card_container{
  border: 1px solid red;
  padding: 10px 13px;
  margin: 20px;
  width: 400px;
  height: 100px;
  background-color: var(--bg-alt-light);
  border-radius: 8px;

}
.assignment_card_container h3{
 text-align: center;
 text-transform: uppercase;
 width: 100%;

}
.assignment_card_container .card-inner{
 display: flex;
 justify-content: space-around;
 align-items: center;

}
.assignment_card_container .card-inner .card-button a{
 text-decoration: none;
 color: #fff;
 padding: 5px 18px;
 background: var(--magenta);
 border-radius: 8px;
}


/* Media Queries */
@media screen and (max-width: 1024px) {
  .cr-navigation {
    grid-column: span 7;
  }
  .lr-navigation {
    grid-column: span 9;
  }
  .lr-main {
    grid-column: span 15;
    flex-direction: column;
    justify-content: start;
  }
  .cr-main {
    grid-column: span 16;
    flex-direction: column;
    justify-content: start;
    margin-bottom: 2rem;
  }

.lr-sidebar {
  display: none;
}
  .cr-streak {
    grid-column: span 12;
  }

  .cr-courses {
    flex-grow: 0;
  }

  .cr-streak {
    flex-shrink: 0;
    max-width: 100%;
    order: 1;
  }

  .cr-mainContent {
    order: 2;
  }

  .cr-streak-week {
    padding: 1rem;
  }
  .cr-streak-weekdays {
    justify-content: start;
    gap: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  .cr-navigation,
  .lr-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    overflow: scroll;
    width: 100%;
    background-color: var(--bg-alt-light);
    z-index: 10;
  }
  .lr-main {
    grid-column: span 24;
  }
  .lr-navigation {
    background-color: var(--bg);
  }

  .cr-main {
    grid-row: span 11;
    grid-column: span 24;
  }

  #cr-navigation-open-button {
    display: flex;
  }

  .sm-show {
    display: block;
  }

  .cr-toolbar {
    border-left: none;
    border-top: 0.125rem solid var(--bg-alt-light);
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
  }
}
