*{
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
}

body.modal-open {
  overflow: hidden;
}

::-webkit-scrollbar {
  display: none;
  /*width: 8px;  Width of the scrollbar */
}

/* ::-webkit-scrollbar-track {
  background-color: #212529;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background-color: #ff3333; 
}

::-webkit-scrollbar-thumb:hover {
  background-color: #ff3333; 
} */

button{
  background: black;
  color: white;
  border-radius: 10px;
  padding: 8px 15px;
  cursor: pointer;
  width: 100%;
  border: none;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

h2, h3 {
  margin: 0;
}

#submit{
  background: black;
  color: white;
  width: 94%!important;
}

.deleteBTN {
  background-color: crimson;
  border: none;
}

#modalHeader > h2 {
  margin: 10px 0;
}

.sideBar {
  width: 20%;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  border-right: 2px solid black;
  transition: transform 0.5s ease-in-out, width 0.3s ease-in-out;
  z-index: 10;
  position: relative;
}

.wrapContainer {
  width: 100%;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in-out;
}

.wrapContainer > h2 {
  text-align: center;
}

.sideBar.hidden {
  transform: translateX(-100%);
  width: 0;
  transition: transform 0.5s ease-in-out, width 0.3s ease-in-out;
}

#noteList.hidden {
  grid-template-columns: repeat(5, auto);
  transition: grid-template-columns 0.5s ease-in-out, gap 0.5s ease-in-out;
}

.wrapContainer.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out;
}

.noteListContainer {
  display: flex;
  align-items: flex-start;
  margin: 37px 0 20px 10px;
  width: calc(100% - 20%);
  transition: width 0.5s ease-in-out;
}

.noteList {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 10px;
  width: auto;
  transition: grid-template-columns 0.5s ease-in-out, gap 0.5s ease-in-out;
}

.adjustedGrid {
  grid-template-columns: repeat(5, auto);
  gap: 10px;
}

.header {
  position: relative;
}

#toggleSidebar {
  position: absolute;
  top: 0;
  right: -19.5px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  z-index: 11;
}

#toggleSidebar i {
  color: black;
}

.noteTitle {
  background-color: #f9f9f9;
  text-align: center;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid black;
}

.noteTitle > h3 {
  word-wrap: break-word;
  padding: 10px 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.shadowModal {
  background-color: black;
  height: 100vh;
  opacity: 0.7;
  width: 100%;
  z-index: 10;
  
}

.mainPosition {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.relatedPosition {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
  color: black;
  background-color: white;
  border-radius: 10px;
  z-index: 20;
}

.sideBarModal {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  height: 500px;
  color: black;
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  z-index: 20;
}

.clickableButton {
  cursor: pointer;
}

.noteForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

input, textarea {
  width: 90%!important;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid black;
}

input, .dateTime {
  padding: 10px;
}

textarea {
  height: 155px!important;
  padding: 10px;
}

.rowContainer {
  display: flex;
}

.note-item {
  list-style-type: none;
  padding: 10px;
  border: 1px solid black;
  border-radius: 10px;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 235px;
  height: max-content;
  transition: transform 0.5s ease-in-out;
}

.noteList.hidden .note-item {
  transform: scale(0.95); /* Optional: Slight scaling for visual effect */
}

.note-title {
  font-size: 18px;
  font-weight: bold;
  /* margin: 0; */
  word-wrap: break-word;
  white-space: nowrap;      /* Prevents text from wrapping to the next line */
  overflow: hidden;         /* Hides the overflowed text */
  text-overflow: ellipsis;  /* Adds the ellipsis ("...") */
}

.note-description {
  font-size: 14px;
  margin: 0;
  word-wrap: break-word;
  overflow: auto;
  height: 150px;
  /* white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; */
}

.wrapDescription {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.note-description-accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
}

.note-description-accordion:hover {
  background-color: #ccc;
}

.note-description-accordion:after {
  content: '\002B';
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.modalPara {
  overflow: auto;
  width: 100%;
  margin: 0;
  height: 480px;
  border-radius: 10px;
}

.sideBarModal > .editBTN {
  margin-top: 20px;
}

#note_title {
  width: 100%;
  text-align: center;
  border-radius: 10px;
}

.toggleMobileSidebar {
  display: none;
}

@media screen and (max-width: 450px) {
  .toggleMobileSidebar {
    display: block!important;
    position: fixed;
    top: -18px;
    right: -6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 35px;
    z-index: 11;
  }

  .sideBar {
    width: 100%;
    position: absolute;
    padding: 0;
    background: white;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom: 1px solid black;
    min-height: 0;
  }

  #note_title {
    width: auto;
  }

  #noteTitleList {
    overflow: auto;
    height: 36em;
  }

  .wrapContainer {
    width: 90%;
  }

  .noteList {
    grid-template-columns: repeat(1, auto);
    width: 100%;
  }

  .note-item {
    width: auto;
  }

  .sideBar.mobileHidden {
    transform: translateY(-100%);
  }

  .noteListContainer {
    margin: 0;
    position: relative;
    width: 100%;
    padding: 20px;;
  }

  .relatedPosition {
    width: 95%;
  }

  .sideBarModal {
    width: 85%;
  }

  #submit {
    width: 96% !important;
  }

  .noteListContainer.hidden {
    display: none;
  }
  
  #toggleSidebar {
    display: none;
  }
}