/* desktop.css – pandaOS: dark hacker style, sharp corners, no emoji */

/* Global font – hacker monospace */
body,
.taskbar,
.start-menu,
.window,
.window-content,
.start-app,
.window-title,
.clock-date,
.volume-control {
  font-family: "Courier New", "Fira Code", monospace;
}

.desktop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/wallpaper/wallpaper.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Taskbar – final version (taller, sharp) */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: #010c17;
  border-top: 1px solid #0a4a7a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
}

.start-button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #0a2a44;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.1s;
  border: 1px solid #0a5a8a;
}

.start-button:hover {
  background-color: #0a3a5a;
}

.start-icon {
  font-family: monospace;
  font-weight: bold;
  color: #0aacff;
  font-size: 1rem;
}

.start-text {
  font-weight: bold;
  color: #cbe0f0;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Dock – compact, centered bubble */
.dock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background-color: #0a1a2a;
  padding: 4px 20px;
  border: 1px solid #0a4a7a;
  border-radius: 40px;
  height: 48px;
  margin: 0 auto;
}

.dock-icon {
  font-family: monospace;
  font-size: 1.3rem;
  color: #cbe0f0;
  cursor: pointer;
  transition:
    transform 0.1s,
    color 0.1s;
  padding: 4px 8px;
}

.dock-icon:hover {
  transform: scale(1.15);
  color: #0aacff;
}

.dock-icon img {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 8px;
}

/* Custom tooltip for dock icons (appears on hover) */
.dock-icon[title] {
  position: relative;
}
.dock-icon[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #010c17;
  color: #00ff88;
  border: 1px solid #0aacff;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-family: monospace;
  white-space: nowrap;
  z-index: 10000;
  pointer-events: none;
}

/* Taskbar windows container (hidden for now) */
.taskbar-windows {
  display: none;
}

/* Right side of taskbar (clock, volume) */
.taskbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #0a1a2a;
  padding: 6px 12px;
  border: 1px solid #0a4a7a;
}

.volume-icon {
  color: #0aacff;
  font-size: 1.2rem;
  font-weight: bold;
}

#volume-slider {
  width: 100px;
  height: 6px;
  -webkit-appearance: none;
  background: #0a2a44;
  outline: none;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #0aacff;
  cursor: pointer;
  border: none;
}

.volume-meter {
  width: 60px;
  height: 6px;
  background-color: #0a2a44;
  border: 1px solid #0a4a7a;
  overflow: hidden;
}

.volume-level {
  height: 100%;
  background-color: #00ff88;
  width: 0%;
  transition: width 0.05s linear;
}

.clock-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.85rem;
  color: #cbe0f0;
  background-color: #0a1a2a;
  padding: 6px 12px;
  border: 1px solid #0a4a7a;
}

#clock {
  font-weight: bold;
  color: #0aacff;
  font-size: 0.9rem;
}

#date {
  font-size: 0.7rem;
  color: #6a8a9a;
}

/* Start menu – compact floating panel (working size) */
.start-menu {
  position: fixed;
  width: 280px;
  background-color: #010c17;
  border: 1px solid #0a4a7a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 1001;
  font-family: monospace;
  padding: 6px 0;
}

.start-menu.hidden {
  display: none;
}

.start-menu-header {
  padding: 8px 12px;
  background-color: #0a1a2a;
  border-bottom: 1px solid #0a4a7a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.start-menu-icon {
  font-family: monospace;
  font-weight: bold;
  color: #0aacff;
  font-size: 0.9rem;
}

.start-menu-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: #cbe0f0;
  letter-spacing: 0.5px;
}

.start-menu-apps {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}

.start-app {
  background: none;
  border: none;
  color: #cbe0f0;
  font-size: 1;
  padding: 6px 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}

.start-app:hover {
  background-color: #0a2a44;
  color: #0aacff;
}

.start-menu-footer {
  padding: 4px 10px;
  font-size: 0.65rem;
  color: #4a6a8a;
  border-top: 1px solid #0a3a5a;
  text-align: right;
}

/* Spotlight Search */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(1, 12, 23, 0.9);
  backdrop-filter: blur(4px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-overlay.hidden {
  display: none;
}

.search-container {
  width: 500px;
  max-width: 80%;
  background-color: #010c17;
  border: 1px solid #0a4a7a;
  box-shadow: 0 0 20px rgba(10, 100, 172, 0.3);
  font-family: monospace;
  overflow: hidden;
}

#search-input {
  width: 100%;
  background: #0a1a2a;
  border: none;
  border-bottom: 1px solid #0a4a7a;
  padding: 14px 16px;
  color: #cbe0f0;
  font-size: 1rem;
  font-family: monospace;
  outline: none;
  box-sizing: border-box;
}

#search-input::placeholder {
  color: #4a6a8a;
  font-style: italic;
}

.search-results {
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 0;
}

.search-result-item {
  padding: 10px 16px;
  color: #cbe0f0;
  cursor: pointer;
  transition: background 0.1s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: #0a2a44;
  color: #0aacff;
}

.dock {
  transition:
    opacity 0.2s ease-in-out,
    transform 0.1s ease-out;
}
.dock[style*="opacity: 0"] {
  transform: scale(0.95);
}
