/* // 🌐  THEME VARIABLES  */
:root {
  --bg-color: #0d1b2a;         /* Outer background */
  --panel-bg: #1b263b;         /* Panel background */
  --cube-color: #0d1b2a;       /* Cube face */
  --cube-glow:  #00ffff;       /* Neon glow */
}

/* // 🔤  GLOBAL  */
body {
  margin: 0;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* // 🧭  TOP BAR  */
.topbar {
  background: var(--panel-bg);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.top-nav a, .theme-toggle {
  margin-left: 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}
.top-nav a {
  color: white;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.3); /* shaded background */
  transition: background 0.3s, border 0.3s, color 0.3s;
}

.top-nav a:hover,
.top-nav a:focus {
  background-color: rgba(0, 0, 0, 0.5); /* slightly darker on hover */
  border-color: rgba(255, 255, 255, 0.3);
}
.logo {
  height: 60px;
  border-radius: 50%;
  padding: 6px;
  background: radial-gradient(circle, rgba(0,0,0,0.3), rgba(0,0,0,0));
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
}

/* // 🎨  COLOR PICKER  */
.color-picker {
  position: absolute;
  top: 70px;
  right: 20px;
  background: var(--panel-bg);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  color: var(--text-color);
}
.color-picker input { margin-left: .5rem; }

/* // 🖥️  LAYOUT  */
.classic-office { flex: 1; display: flex; overflow: hidden; }
.sidebar {
  width: 80px;
  background: var(--panel-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}
.app-icon {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.6rem;
  margin: 1rem 0;
  cursor: pointer;
}
.app-panels { flex: 1; overflow-y: auto; padding: 1rem; }

/* // 🪟  PANELS  */
.app-panel {
  background: var(--panel-bg);
  color: var(--text-color);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* // 🧰  TASKBAR  */
.taskbar {
  background: var(--panel-bg);
  display: flex;
  justify-content: space-between;
  padding: .5rem 1rem;
  border-top: 1px solid #444;
}

/* // 🪟  MODAL  */
.modal.hidden { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}
.modal-content {
  background: var(--panel-bg);
  color: var(--text-color);
  width: 85%;
  height: 85%;
  overflow: auto;
  padding: 2rem;
  border-radius: 0; /* full-screen effect */
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 25px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #00ffff;
  cursor: pointer;
}

/* // 🚫  UTIL  */
.hidden { display: none !important }

/* // Cubes  */
.center-cubes {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;        /* align horizontally */
  align-items: center;        /* center vertically */
  justify-content: center;    /* center horizontally */
  gap: 100px;                  /* space between cubes */
  z-index: 10;
}

/* base cube */
.cube {
  position: relative;
  width: 160px;
  height: 160px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
  perspective: 800px;
}

/* cube label */
.cube p {
  position: absolute;
  bottom: -28px;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: var(--cube-glow, #00ffff);
}

/* cube faces */
.cube .face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
   background: var(--cube-color);
  color: var(--cube-glow);
  border: 2px solid color-mix(in srgb, var(--cube-glow), transparent 66%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--cube-glow), transparent 66%) inset;}

/* cube face positions (Z-depth) */
.cube .front  { transform: translateZ(80px); }
.cube .back   { transform: rotateY(180deg) translateZ(80px); }
.cube .left   { transform: rotateY(-90deg) translateZ(80px); }
.cube .right  { transform: rotateY(90deg) translateZ(80px); }
.cube .top    { transform: rotateX(90deg) translateZ(80px); }
.cube .bottom { transform: rotateX(-90deg) translateZ(80px); }

/* dynamic glow ring using CSS variable */
.cube::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 12px;
  box-shadow: 0 0 25px var(--cube-glow);
  opacity: 0.6;
  transition: opacity 0.3s;
  pointer-events: none;
}

/* glow intensifies on hover */
.cube:hover::before {
  opacity: 1;
}

/* directional nudge on hover hit */
.hit-left   { transform: rotateY(10deg); }
.hit-right  { transform: rotateY(-10deg); }
.hit-top    { transform: rotateX(-10deg); }
.hit-bottom { transform: rotateX(10deg); }

/* small override fix to avoid stacking transform declarations */
.cube {
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}
.cube-area {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.cube-search-container {
  position: relative; /* 🧲 So child absolute elements position from here */
  margin-top: -200px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 11;
}

#cube-search {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #444;
  background: #ffffff;
  color: rgb(0, 0, 0);
  font-size: 1rem;
  outline: none;
}

.cube-search-container input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #444;
  background: #101820;
  color: white;
  font-size: 1rem;
  outline: none;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 5px);
  width: 100%;
  max-width: 600px;
  background: #1b1b1b;
  color: white;
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  padding: 4px 0;
  z-index: 999;
}

.search-suggestions p {
  margin: 0;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-suggestions p:hover {
  background: #333;
}
