body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  user-select: none;
  overflow-x: hidden;
  background: transparent;
}
* {
  transition: background 0.3s ease-in-out;
  box-sizing: border-box;
}

.container {
  display: grid;
  grid-template-columns: 20vw 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header header"
    "sidebar preview  ";
  width: 100vw;
  height: 100vh;
  border-radius: 10px 0 0 0 !important;
  background-color: #ebebeb;

}

header {
  grid-area: header;
  position: relative;
  background-color: #ebebeb;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 00px 30px;
  button {
    border: none;
    border-radius: 5px;
    background-color: none;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s ease-in-out;
    &:hover {
      background-color: #0000003c;
    }
  }
}
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  color: #000 !important;
}
.sidebar {
  grid-area: sidebar;
  width: 20vw;
  /* box-shadow: 5px 5px 10px 3px rgba(37, 37, 37, 0.082); */
  z-index: 100;
  background-color: #ebebeb;
  overflow-y: scroll;
}

h3 {
  text-align: center;
}

.preview {
  grid-area: preview;
  padding: 20px;
  background-color:white ;
  height: 90vh;
  flex-grow: 1;
  overflow-x: hidden;
  border-radius:10px 0  0 0 !important;
}

iframe {
  width: 100%;
  height: 100%;
  outline: none;
  border-radius: 10px;
  box-shadow: 1px 1px 10px 3px rgba(37, 37, 37, 0) !important;
  overflow-x: hidden;
  border: none;
}

li {
  padding: 10px;
  margin: 10px;
  border-radius: 6px;
  transition: all .2s ease-in-out;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

li a {
  text-decoration: none;
  color: #000;
}

li:hover {
  background-color: #f1f1f1;
}
li.active {
  border-left: 2px solid #000000;
  border-bottom-left-radius:0 ;
  border-top-left-radius:0 ;
  font-weight: bolder;
}


::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0f0f000;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #03030300, #3498db3b);
  cursor: all-scroll;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00000000, #95b7ce4d);
}

.back {
  width: 100%;
  padding: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 15px;
}
@media (max-width: 768px) {
  header {
    width: 100%;
    overflow: hidden;
    padding: 0 10px;
  }
  .sidebar {
    position: fixed;
    width: 250px;
    height: 100dvh;
    z-index: 10000;
    overflow-y: scroll;
    margin: 0;
    display: none;
    background-color: #ebebeb;
  }
  .search input {
    display: none !important;
  }
  .search {
    width: 30px !important;
    display: none !important;
  }

  .smbtn {
    display: none !important;
  }
  header button {
    cursor: pointer;
  }
  .sidebar.active {
    display: block;
  }

  .container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "header"
      "preview";
    height: 100dvh;
    width: 100vw;
  }

  .preview {
    grid-area: preview;
    /* width: 100vw; */
    height: calc(100dvh - 60px); /* assuming header is ~60px */
    overflow: auto;
    border-radius: 0;
  }

  iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: 1px 1px 10px 3px rgba(37, 37, 37, 0.192);
  }
}
.search {
  background: #ffffff;
  height: 40px;
  width: 500px;
  display: flex;
  justify-content: center;
  padding: 10px;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgb(0, 0, 0);
  transition: all 1s ease-in-out;
  &:hover {
    border: 1px solid #000;
    cursor: pointer;
    transition: border-color 0.3s ease-in-out;
    box-shadow: 5px 5px 20px rgba(37, 37, 37, 0.2);
  }
  input {
    border: none;
    width: 100%;
    height: 100%;
    background: none;
    font-family: "Segoe UI", sans-serif;
    outline: none;
    &::placeholder {
      color: #000000;
    }
  }
  label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* color: white; */
    width: 100%;
    gap: 5px;
  }
}
.preview::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

.menu {
  position: fixed;
  z-index: 1000;
  background: #ffffff;
  display: none;
  justify-content: center;
  align-items: center;
  top: 60px;
  box-shadow: 1px 1px 20px rgba(37, 37, 37, 0.3);
  right: 25px;
  border-radius: 10px;
  width: 200px;
  font-size: small;
  ul {
    list-style: disc;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 0;
    li {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 20px;
      span svg {
        width: 20px;
        width: 100%;
      }
    }
  }
}
.menu.active {
  display: flex;
}
.menu::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 15px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: none;
  border-bottom: 10px solid rgb(255, 255, 255); /* Change color as needed */
}
@media (max-width: 768px) {
  .menu {
    position: fixed;
    right: 9px;
  }
  .btns {
    display: flex !important;
    gap: 20px;
  }
}

.btns {
  display: none;
}
body.dark,
header.dark,
.sidebar.dark,
.preview.dark {
  background-color: #111111;
  color: white;
}
.preview.dark {
  background: #3b3b3bb9;
}
body.dark a {
  color: white;
}

.sidebar.dark {
  li:hover {
    background: #000;
  }
}
header.dark {
  transition: all 0.5s;
  button {
    background: #81818145;
    color: rgb(255, 255, 255);
  }
  button:hover {
    background: #81818145;
    color: rgb(1, 1, 1);
  }
  .search {
    background: #111;
    border: 1px solid white;
    input {
      color: white;
    }
    input::placeholder {
      color: #888;
    }
  }
}
button {
  cursor: pointer;
}
.menu.dark {
  background: #111;
  color: white;
  li:hover {
    background: #000;
  }
}
.menu.dark::before {
  border-bottom: 10px solid #111;
}
.search-container{
  position: fixed;
  z-index: 9999;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff ;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  height: 50vh;
  overflow-y: scroll; 
  display: none;
}


.search-container.active {
  display: block;
}
.inp-box{
  z-index: 1000px;
  width: 100%;
  position: sticky;
  top: 1px;
  padding: 10px;
  border: none;
  outline: none;
  border-radius: 10px;
  background: #ffffff00;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(30px);
  ul{
    margin-top: 20px;
  }
  input{
    width: 100%;
    padding: 5px;
    border: none;
    background: none;
    outline: none;
    border-radius: 5px;
    transition: all 0.3s;
   
  }
  ::placeholder{
    color: #666;
  }
  button{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
  }
}
mark {
  background: yellow;
  color: black;
  font-weight: bold;
  padding: 0 2px;
}
.search-container.dark{
  background: #111;
  color: white;
  input{
    color: white;
  }
}
.container.dark{
  background: #111;
  
}