body {
  font-family: Helvetica, 'Noto Sans', sans-serif;
  margin: 0;
  overflow: hidden;
  background-color: #57f2bc;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.dark-mode .window-content {
  background-color: #202124 !important;
  color: #ffffff !important;
}

body.dark-mode input[type="text"] {
  background-color: #3c4043;
  color: #ffffff;
  border: 1px solid #5f6368;
}

body.dark-mode .window {
  background-color: rgba(0, 0, 0, 0.4) !important; 
  border-color: #444; /* Darkens the outer window border stroke */
}

body.dark-mode #taskbar {
  background-color: rgba(0, 0, 0, 0.5) !important; /* Smooth, deep glass look */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Optional: Crisp light edge line */
}

body.dark-mode {
  /* This creates a semi-transparent dark layer over the current background color */
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2)) !important;
}


.clickable {
  cursor: pointer;
  padding: 4px 12px;
}

.icon {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.window {
  border: solid;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  position: absolute;
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.2);
  user-select: none;
}

.windowheader {
  width: 100%;
  display: flex;
  align-items: center;
  cursor: grab;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 12px;
  box-sizing: border-box;
}
 
.headertext {
  margin: 0;
  color: #fff;
  font-weight: 500;
}

.window-content {
  background-color: #fff;
  margin: 6px;
  border-radius: 12px;
  width: 360px;
  padding: 8px;
  display: flex;
  flex-direction: row;
}

.profile-img {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  object-fit: cover;
}

.closebutton {
  width: 16px;
  height: 16px;
  cursor: pointer;
  background-color: #EC6B5E;
  border-radius: 16px;
  border: solid 1px rgba(0, 0, 0, 0.25);
}

#taskbar {
  position: absolute;
  width: 100%;
  display: flex;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.125);
  color: #fff;
  justify-content: space-between;
  gap: 32px;
  padding: 8px 0;
}

#branding,
#timeElement {
  margin: 0 16px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 16px;
}

#timeElement {
  font-weight: 400;
}

.desktopApps {
  text-align: center; 
  padding: 16px; 
  filter: drop-shadow(0 0 8px #00000070); 
  width: fit-content;
  position: absolute;
}

.desktopApps img {
  /* Smoothly transition the glow effect when selected */
  border: 1px solid black;
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.desktopApps:hover img {
  transform: scale(1.02); 
}

.desktopApps.selected img {
  /* When the parent app container is selected, make the image inside it glow */
  filter: brightness(70%) contrast(90%);
  transform: scale(0.98); 
}

#sidebar {
  background-color: rgb(164, 164, 164, 0.2);
  margin: 2px;
  border-radius: 8px;
  padding: 8px;
  text-align: left; 
}

.selectedText {
  background-color: var(--active-theme, #ffffff); 
  border-radius: 8px;
  color: #fff;
}

#ImageBar .clickable {
  padding: 0px 4px; /* Overrides the default 4px 12px padding */
}

#ImageTitle {
  background-color: rgb(164, 164, 164, 0.2);
  margin: 4px;
  border-radius: 8px;
  padding: 8px;
  text-align: left; 
}

#ImageContent {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  margin: 2px;
  padding: 2px;
  object-fit: contain;
  overflow: hidden;
  flex-grow: 1; /* Instructs the image view to expand and fill the remaining space */
}

.thumbnail {
  object-fit: cover;
  width: 50px; 
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.1s ease-in-out;
}

.thumbnail:hover {
  transform: scale(1.02); 
}

#ImageBar {
  background-color: rgb(164, 164, 164, 0.2);
  margin: 2px;
  border-radius: 8px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 60px; 
}

.selectedImage img{
  border: 2px solid var(--active-theme, #ffffff);
}

#SettingsContent {
  display: flex; 
  flex-direction: column;
}

.themeButton {
  width: 30px; 
  height: 30px;
  border-radius: 50%;
  padding: 0;         
  flex-shrink: 0;
  transition: transform 0.1s ease-in-out;
}

.themeButton:hover {
  transform: scale(1.05); 
}

#ColourBar{
  background-color: rgb(164, 164, 164, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  padding: 8px;
}

.selectedTheme {
  border: none; 
  outline: 2px solid var(--active-theme, #ffffff); 
  outline-offset: 1px; 
}

input[type="text"]:focus {
  outline: none; 
  border: 2px solid var(--active-theme, #ffffff); 
}
