/* Reset & Basic Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
} 


body {
  margin: 0;
  padding: 0;
  font-family: Calibri, "Trebuchet MS", sans-serif;
  color: white;
  min-height: 100vh;

  background: url(Images/waaal.jpg) no-repeat center center fixed;
  background-size: cover;
  overflow-y: hidden; /* controls scrolling a/c to responsiveness */
  transition: background 0.5s ease-in-out;
}

.message {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 5px;
  border-radius: 20px;
  font-size: 16px;
  text-shadow: #121212 1px 1px 1px;
}

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Wallpaper Button */
.wallpaper-btn {
  position: fixed;
  bottom: 10px;
  left: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.wallpaper-btn:hover {
  opacity: 1;
}

.about {
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  transition: background 0.3s ease;
  bottom: 10px;
  right: 10px;
}

.about:hover {
  background: rgba(255, 247, 0, 0.551);
  transform: scale(1.1);
}

/* Clock Font */
.sixtyfour-convergence-regular {
  font-family: "Sixtyfour Convergence", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "BLED" 0, "SCAN" 0, "XELA" 0, "YELA" 0;
}



#logo {
  position: fixed;
  right: 10px;
  top: 10px;
  background-color: #0b0b0b;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

/* Clock */
.clock {
  text-align: center;
  width: 100%;
  margin: 0 auto;
  margin-top: 90px;
  max-width: 600px;
  margin-bottom: 30px;
  font-family: "Sixtyfour Convergence", sans-serif;
  color: white;
  font-weight: bold;
  font-size: 3rem;
  text-shadow: #0b0b0b 2px 2px 2px;
}

.clock span.am-pm {
  font-size: 1.2rem;
  vertical-align: unset;
}

/* Search Section */
.search-container {
  width: 100%;
  text-align: center;
}

.search-bar {
  min-width: 300px;
  display: flex;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  color: rgba(255, 255, 255, 0.837);

  padding: 10px;
  font-size: 1.2rem;
  background-color: rgb(15, 15, 15, 0.764);
  border: 1px solid #b6b6b6;
  border-right: none;
  border-radius: 30px 0px 0px 30px;
}

.search-bar input:focus {
  outline: none;
}

.search-bar button {
  padding: 10px 15px;
  background-color: rgba(15, 15, 15, 0.764);
  border: 1px solid #b6b6b6;
  border-left: none;
  color: #ffffff;
  border-radius: 0px 30px 30px 0px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Engine Row */
.engine-settings-row {
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center; /*flex-start*/
  gap: 5px;
  margin-top: 10px;
  margin-bottom: 50px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
}

.engine-settings-row::-webkit-scrollbar {
  display: none;
}

.engine-container {
  display: flex;
  gap: 10px;
}

.engine-container button {
  padding: 7px;
  background: rgba(39, 39, 39, 0.6);
  backdrop-filter: blur(10px);
  border: 0px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.engine-container :hover{
  /* transform: scale(1.1); */
  background: rgba(255, 234, 0, 0.537);
  backdrop-filter: blur(10px);
  color: black;
}

.engine-container button.selected {
  background: rgba(255, 225, 0, 0.901);
  backdrop-filter: blur(10px);
  color: black;
  font-weight: bold;
  /* border: 2px solid black; */
}

.engine-container img {
  width: 20px;
  height: 20px;
}

  /* Settings Panel */
  .settings-btn {
    background: rgba(39, 39, 39, 0.6);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .engine-settings {
    margin-top: 10px;
  }
  
  .engine-settings input {
    padding: 5px;
    margin: 3px;
    border: none;
    border-radius: 3px;
  }
  
  .engine-settings button {
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
  }

    .hidden {
    display: none;
  }

  .dropdown {
    text-align: center;
  }
  
  .hide {
    display: none;
  }  
  

  @media screen and (min-width: 768px) {

    .search-bar {
    width: 60%;
    }
    .engine-settings-row{
      width: 58%;
      margin: 0 auto;
    }
    .tab-container{
      width: 60%;
      margin: 0 auto;
    }
    .bookmark-content{
      width: 60%;
    }
  }
  
  @media screen and (max-width: 1230px) {
    .engine-settings-row {
      justify-content: flex-start;
    }
    .search-bar {
      width: 70%;
    }
    .engine-settings-row{
      width: 68%;
      margin: 0 auto;
    }
    .tab-container{
      width: 70%;
      margin: 0 auto;
    }
    .bookmark-content{
      width: 70%;
    }
    .body{
      overflow-y: auto;
    }
  }

/* workspace Toggle */

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}


.switch {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 40px;
  height: 40px;
  text-align: center;
  margin-top: 35px;
  margin-bottom: 35px;
}

/* Slider before toggle */

.slider:before {
  content: "⚡";
  display: inline-block;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.633);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(254, 254, 254, 0.1);
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
  text-shadow: #161616 2px 2px 2px;
}

/* Slider after toggle */
input:checked + .slider:before {
  content: "🔖";
}


/* Tabs for Folders */
.tab-container {
  display: flex;
  justify-content: left;
  /* align-items: center; */
  gap: 10px;
  margin-top: 20px;
  max-width: 800px;
  margin: 0 auto;
  width: 80%;
}
.tab-container button {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.452);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: white;
  border: none;
  margin: 2px;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  font-size: 0.9rem;
  
}


.tab-container button.active {
  background: rgb(255, 255, 0);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: black;
  font-weight: bold;
  transform: translateY(-3px);
  border-bottom: 3px solid black;
}

/* New Folder Input */
.new-folder-container {
  text-align: center;
  margin-top: 5px;
}

.new-folder-container input {
  padding: 5px;
  border: none;
  border-radius: 3px;
  margin-right: 5px;
}

.new-folder-container button {
  padding: 5px 10px;
  background-color: #007bff;
  border: none;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
}

/* Bookmark/Workspace Content Area */

.bookmark-content {
  background: rgba(0, 0, 0, 0.375);
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  min-height: 100px;
  max-height: 400px; 
  text-align: left;
  overflow-y: auto;
}

.bookmark-item {
  transform: scale(1.1);
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.767);
  /* background: linear-gradient(145deg, #1e1e1e91, #2a2a2aaa); */
  box-shadow: 2px 2px 5px #0e0e0ebc, -2px -2px 5px #363636c0;
  text-align: center;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bookmark-item:hover {
  transform: scale(1.2);
  /* box-shadow: 5px 5px 15px #0a0a0a, -5px -5px 15px #3a3a3a; */
}

.bookmark-item img {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  border: 2px solid #000;
}

.bookmark-item span {
  display: block;
  /* margin-top: 5px; */
  font-size: 0.8rem;
  text-align: center;
}


/* Inline Popup for Adding Bookmark */
.bookmark-popup {
  position: absolute;
  background-color: #222;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 10px;
  width: 220px;
  z-index: 1000;
}
.bookmark-popup input {
  width: 100%;
  padding: 5px;
  margin-bottom: 5px;
  border: none;
  border-radius: 3px;
}
.bookmark-popup button {
  padding: 5px 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-right: 5px;
}




/* Context Menu */
.context-menu {
  position: absolute;
  background-color: #222;
  border: 1px solid #555;
  border-radius: 3px;
  z-index: 1000;
}
.context-menu button {
  display: block;
  width: 100%;
  padding: 5px 10px;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.context-menu button:hover {
  background-color: #007bff;
}




.all-apps-container {
  position: absolute;
  top: 10px;
  right: 10px;
  /* background-color: #ffffff63; */
  border-radius: 50%;
}

.all-apps-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.all-apps-icon {
  width: 25px;
  height: 25px;
}

.all-apps-menu {
  position: absolute;
  top: 50px;
  right: 10px;
  background-color: #2a2a2a;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  z-index: 1000;
  max-width: 350px;
  max-height: 350px;
  overflow-y: auto;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

.all-apps-menu::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.app-item a {
  color: inherit;
  text-decoration: none;
}

.app-item a:hover {
  color: #007bff;
}
.app-item:hover {
  transform: scale(1.1);
  background-color: #5e5e5e;
  border-radius: 10px;
}

.app-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
}

.hidden {
  display: none;
}

