body {
  margin: 0;
  background-image: url(/000001360023.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- STANDARD OS WINDOW (VIDEO APP) --- */
.os-window {
  background-color: #1e1e1e;
  border: 2px solid #333;
  border-radius: 8px;
  width: 640px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: absolute;
  top: 100px;
  left: 100px;
  cursor: default;
  user-select: none;
}

.os-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0;
}

.os-window.minimized .content {
  display: none;
}

/* --- TITLE BAR --- */
.title-bar {
  background-color: #2e2e2e;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  justify-content: space-between;
  color: white;
  font-weight: bold;
  font-size: 14px;
  user-select: none;
  cursor: grab;
}

.title-bar:active {
  cursor: grabbing;
}

/* --- MACOS TRAFFIC LIGHT BUTTONS --- */
.window-controls {
  display: flex;
  gap: 0.4rem;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

/* --- CONTENT AREA --- */
.content {
  padding: 1rem;
}

video {
  width: 100%;
  border: 2px solid #2e2e2e;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.controls {
  display: flex;
  justify-content: space-between;
}

/* --- BUTTONS --- */
button {
  background-color: rgb(72, 72, 72);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  touch-action: manipulation;
}

button:hover {
  background-color: #00d5ff;
}

/* --- REOPEN ICON (unused now) --- */
#reopen-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 32px;
  background-color: rgb(255, 255, 255);
  color: #000;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1000;
  transition: transform 0.2s ease;
}

#reopen-icon:hover {
  transform: scale(1.1);
}

/* --- AUDIO VISUALIZER --- */
#visualizerCanvas {
  width: 100%;
  height: 100px;
  background: #000;
  border-radius: 4px;
  margin: 0.5rem 0;
  display: block;
}

/* --- DOCK --- */
#dock {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  height: 80px;
  display: flex;
  gap: 20px;
  padding: 10px 25px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.dock-icon {
  font-size: 45px;
  cursor: pointer;
  transition: transform 0.2s ease;
  user-select: none;
}

.dock-icon:hover {
  transform: scale(1.3);
}

/* BOUNCE ANIMATION */
@keyframes dockBounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-25px); }
  60% { transform: translateY(0); }
  80% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.bouncing {
  animation: dockBounce 0.6s ease;
}

/* ==========================================================
     DARK MODE — NOTES APP 
   ========================================================== */
.text-window {
  position: absolute;
  top: 120px;
  left: 160px;
  width: 500px;
  height: 400px;
  background: #1e1e1e;
  border: 2px solid #333;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  display: none;
  overflow: hidden;
}

/* Title bar dark (matches video app) */
.text-window .title-bar {
  background: #2e2e2e;
  color: white;
  border-bottom: 1px solid #444;
  cursor: grab;
}

/* Main area */
.notes-container {
  display: flex;
  height: calc(100% - 40px);
}

/* Sidebar dark */
.notes-sidebar {
  width: 180px;
  background: #252525;
  border-right: 1px solid #333;
  padding: 10px;
  color: white;
}

/* Sidebar buttons */
.sidebar-btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 6px;
  background: #333;
  color: #eee;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar-btn:hover {
  background: #444;
}

/* Notes list items */
#notesList {
  list-style: none;
  padding: 0;
}

#notesList li {
  padding: 8px;
  background: #2d2d2d;
  border: 1px solid #444;
  color: #ddd;
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#notesList li:hover {
  background: #3a3a3a;
}

/* Notes text viewer */
#notesViewer {
  flex: 1;
  background: #1c1c1c;
  color: #e5e5e5;
  border: none;
  padding: 12px;
  outline: none;
  resize: none;
  font-size: 16px;
}

/* ==========================================================
     MOBILE RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    align-items: stretch;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
  }

  .os-window {
    position: static;
    width: 95vw;
    margin: 1rem auto;
  }

  .os-window.maximized {
    width: 100vw !important;
    height: 100vh !important;
    top: 0 !important;
    left: 0 !important;
  }

  .controls {
    flex-direction: column;
    gap: 0.5rem;
  }

  button {
    width: 100%;
  }

  #visualizerCanvas {
    height: 80px;
  }
}
