/* San Francisco Font Faces */
@font-face {
  font-family: 'SF Pro Display';
  src: url('assets/fonts/SF-Pro-Display-Regular.OTF') format('opentype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('assets/fonts/SF-Pro-Display-Medium.OTF') format('opentype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Display';
  src: url('assets/fonts/SF-Pro-Display-Bold.OTF') format('opentype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Text';
  src: url('assets/fonts/SF-Pro-Text-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Text';
  src: url('assets/fonts/SF-Pro-Text-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}

/* Base reset */
* { box-sizing: border-box; }
*:focus, *:focus-visible, *:active { outline: none !important; box-shadow: none !important; }
html, body { height: 100%; }
 body {
   margin: 0;
   font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
   color: #e6e6e6;
  background: #F9F6EE url('assets/wallpapers/wallpaper.jpeg') center/cover no-repeat;
  overflow: hidden;
  position: relative;
 }

/* Wallpaper container with sharp + blurred wallpaper */
.wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0; /* stays behind content */
  overflow: hidden;
}

.background {
  position: absolute;
  inset: 0;
  background: #F9F6EE url('assets/wallpapers/wallpaper.jpeg') center/cover no-repeat;
}

.blur-layer {
  position: absolute;
  inset: 0;
  background: #F9F6EE url('assets/wallpapers/wallpaper.jpeg') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(3px);

  -webkit-mask-image: radial-gradient(circle 300px at 50% 50%, transparent 0%, black 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 50% 50%;
  mask-image: radial-gradient(circle 300px at 50% 50%, transparent 0%, black 100%);
  mask-repeat: no-repeat;
  mask-position: 50% 50%;
}

/* Sticky Note */
.sticky-note {
  position: fixed;
  top: 40px;
  left: 20px;
  width: 281px;
  height: 281px;
  background: #fff3cd;
  border-radius: 9px;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  cursor: pointer;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sticky-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 9px 9px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  cursor: grab;
}

.sticky-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.sticky-close {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff5f57;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sticky-close:hover {
  transform: scale(1.1);
}

.sticky-content {
  padding: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #fff3cd;
  border-radius: 0 0 9px 9px;
  cursor: default;
}


/* Top menu bar */
.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
  z-index: 1000;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.apple-logo {
  margin-right: 8px;
  cursor: default;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-1px);
}

.apple-logo img {
  width: 14px;
  height: 14px;
  display: block;
  filter: invert(1);
}

.menu-item {
  cursor: default;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background-color 120ms ease;
}

.menu-item:first-of-type {
  font-weight: bold;
}

.menu-item:hover {
  background-color: rgba(255,255,255,0.1);
}

.menubar-right {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

#menu-clock {
  font-weight: 300;
  color: #ffffff;
}

.wifi-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.wifi-icon img {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

.wifi-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.theme-toggle-container {
  display: flex;
  align-items: center;
}

.theme-toggle-track {
  width: 30px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.theme-toggle-track:hover {
  background: rgba(255, 255, 255, 0.3);
}

.theme-toggle-thumb {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Dark theme state (thumb on right) */
body:not(.light-theme) .theme-toggle-thumb {
  left: 16px;
}

body:not(.light-theme) .theme-toggle-track {
  background: rgba(255, 255, 255, 0.3);
}

/* Light theme styles */
body.light-theme .window {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

body.light-theme .window-header {
  background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(245,246,248,1));
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

body.light-theme .window-title {
  color: #1a1a1a;
}

body.light-theme .window-body {
  color: #111;
}

body.light-theme .apps-window {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.light-theme .app-label {
  color: #1a1a1a;
}

body.light-theme .app-icon-fallback {
  color: #333;
}

body.light-theme .notes-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  color: #333;
}

body.light-theme #notes-editor {
  color: #111;
}

body.light-theme #notes-editor::placeholder {
  color: #999;
}

body.light-theme .form-group label {
  color: #333;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
  background: #ffffff;
  color: #111;
  border: 1px solid #ddd;
}

body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder {
  color: #999;
}

/* Music widget light theme */
body.light-theme .music-widget {
  top: 50px;
  right: 20px;
  width: 256px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.15),
    0 10px 24px rgba(0, 0, 0, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.05),
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

body.light-theme .music-widget::before {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    transparent 50%,
    rgba(0, 0, 0, 0.02) 70%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

body.light-theme .music-title {
  color: #1a1a1a;
}

body.light-theme .music-artist {
  color: #666;
}

body.light-theme .time-info {
  color: #666;
}

body.light-theme .music-btn {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-theme .music-btn:hover {
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.light-theme .play-btn {
  background: rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
}

body.light-theme .play-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

body.light-theme .progress-bar {
  background: rgba(0, 0, 0, 0.1);
}

body.light-theme .progress-fill {
  background: linear-gradient(90deg, #007AFF, #5AC8FA);
}

body.light-theme .volume-slider {
  background: rgba(0, 0, 0, 0.1);
}

body.light-theme .volume-slider:hover {
  background: rgba(0, 0, 0, 0.15);
}

body.light-theme .volume-handle {
  background: #007AFF;
}

body.light-theme .volume-icon {
  color: #666;
}

/* Menubar Light Theme */
body.light-theme .menubar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

body.light-theme .apple-logo img {
  filter: invert(0);
}

body.light-theme .menu-item:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .menubar-right {
  color: #1a1a1a;
}

body.light-theme #menu-clock {
  color: #1a1a1a;
}

body.light-theme .wifi-icon img {
  filter: invert(0);
}

body.light-theme .wifi-icon:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.light-theme .volume-slider::before {
  background: linear-gradient(90deg, #007AFF, #5AC8FA);
}

body.light-theme .volume-slider:hover::before {
  background: linear-gradient(90deg, #0056CC, #007AFF);
}

body.light-theme .volume-slider:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Midnite Logo Dark Mode Inversion */
.midnite-logo {
  filter: invert(1) !important;
  transition: filter 0.3s ease;
}

body.light-theme .midnite-logo {
  filter: invert(0) !important;
}

/* Sporting Logo Dark Mode Inversion */
.sporting-logo {
  filter: invert(1) !important;
  transition: filter 0.3s ease;
}

body.light-theme .sporting-logo {
  filter: invert(0) !important;
}

/* El Corte Inglés Logo Dark Mode Inversion */
.corte-logo {
  filter: invert(1) !important;
  transition: filter 0.3s ease;
}

body.light-theme .corte-logo {
  filter: invert(0) !important;
}

/* Pantone Logo Dark Mode Inversion */
.pantone-logo {
  filter: invert(1) !important;
  transition: filter 0.3s ease;
}

body.light-theme .pantone-logo {
  filter: invert(0) !important;
}


/* SVG Logo specific styling */
.pantone-logo svg {
  width: 100%;
  height: 100%;
}

.pantone-logo svg path,
.pantone-logo svg rect,
.pantone-logo svg circle,
.pantone-logo svg text {
  fill: currentColor;
}

/* macOS Error Popup */
.macos-error-popup {
  position: fixed;
  z-index: 10000;
  background: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid #d0d0d0;
  min-width: 300px;
  max-width: 400px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.error-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

.error-content {
  padding: 15px;
  text-align: center;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  font: 'SF Pro Display Bold';
}

.error-message {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 20px;
}

.error-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.error-button {
  padding: 8px 20px;
  border: 1px solid #007AFF;
  border-radius:10px;
  background: #007AFF;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.error-button:hover {
  background: #0056CC;
  border-color: #0056CC;
}

.error-button:active {
  transform: scale(0.98);
}

/* Dark theme for error popup */
body:not(.light-theme) .macos-error-popup {
  background: #2d2d2d;
  border: 1px solid #404040;
}

body:not(.light-theme) .error-title {
  color: #ffffff;
}

body:not(.light-theme) .error-message {
  color: #cccccc;
}


 .desktop {
   position: relative;
   width: 100vw;
   height: 100vh;
   padding-top: 28px; /* space for menubar */
 }

.desktop-icons {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 120px; /* leave space for dock */
  left: 24px;
  pointer-events: none; /* icons enable their own pointer events */
}

/* Selection Box Styles */
.selection-box {
  position: absolute;
  border: 0.5px solid #888888;
  background: rgba(136, 136, 136, 0.1);
  pointer-events: none;
  z-index: 100;
  display: none;
  box-shadow: 0 0 0 0.5px rgba(136, 136, 136, 0.3);
}

.selection-box.active {
  display: block;
}

.desktop-icon {
  width: 96px;
  height: 96px;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: auto;
  user-select: none;
  background: transparent;
  border: 0;
  padding: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: grab;
}
.desktop-icon:focus { 
  outline: none; 
  box-shadow: none;
}
.desktop-icon:focus-visible { 
  outline: none; 
  box-shadow: none;
}
.desktop-icon:active { 
  outline: none; 
  box-shadow: none;
}
.desktop-icon.dragging { cursor: grabbing; }

/* Remove all possible focus indicators */
.desktop-icon * {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
  -moz-outline: none !important;
}

/* Remove selection highlight */
.desktop-icon::selection {
  background: transparent !important;
}

.desktop-icon::-moz-selection {
  background: transparent !important;
}

.desktop-icon img {
  width: 80px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
  pointer-events: none;
}

.desktop-icon:hover img { 
  transform: scale(1.06); 
  box-shadow: 0 4px 12px rgba(136, 136, 136, 0.4);
}
.desktop-icon:active img { transform: scale(0.98); }

.desktop-icon .label {
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #007AFF;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
  transition: transform 120ms ease, background-color 120ms ease, border 120ms ease;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.desktop-icon:hover .label {
  transform: scale(1.05);
}

.desktop-icon.selected {
  background: rgba(136, 136, 136, 0.2);
  border-radius: 8px;
  border: 1px solid #888888;
}

.desktop-icon.selected img {
  box-shadow: 0 4px 12px rgba(136, 136, 136, 0.4);
}

/* Resume icon specific styling */
.desktop-icon[data-id="resume"] {
  height: 144px;
}

.desktop-icon[data-id="resume"] img {
  height: 96px;
}


/* macOS Finder Window Styles */
.finder-window {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #F5F5F7;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  min-height: 0; /* Prevent content overflow issues */
  flex: 1; /* Expand to fill container */
}

/* Personal Projects: Keep window controls functional but make content seamless */
#win-proj-personal-projects .window-body {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

#win-proj-personal-projects .finder-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  cursor: default;
}


/* Make finder window draggable */
#win-proj-personal-projects .finder-window:not(:has(.finder-content)) {
  cursor: auto;
}

/* Override any grab cursor and use default cursor for the whole finder window */
#win-proj-personal-projects .finder-window {
  cursor: default;
}

.idle {
  cursor: default;
}

#win-proj-personal-projects .finder-window * {
  cursor: default;
}

#win-proj-personal-projects .finder-window button {
  cursor: pointer;
}

#win-proj-personal-projects .finder-window a:hover {
  cursor: pointer;
}

/* Removed problematic absolute positioning */

/* Header with navigation arrows */
.finder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  height: 44px;
  flex-shrink: 0;
}

.finder-nav-buttons {
  display: flex;
  gap: 6px;
}

.nav-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 12px;
  background: #CACACE;
  color: #48484A;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-btn:hover {
  background: #007AFF;
  color: white;
  transform: scale(1.05);
}

.nav-btn.forward {
  background: #8E8E93;
  color: white;
}

.nav-btn.forward:hover {
  background: #007AFF;
}

.finder-path {
  flex: 1;
  margin: 0 20px;
  text-align: center;
}

.path-text {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 500;
}

.finder-view-options {
  display: flex;
  gap: 6px;
}

.view-btn {
  width: 32px;
  height: 28px;
  border: 1px solid #D1D1D6;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  color: #007AFF;
}

.view-btn:hover {
  background: #F5F5F7;
  border-color: #007AFF;
}

.view-btn.selected {
  background: #007AFF;
  color: white;
  border-color: #007AFF;
}

/* Main layout with sidebar and content - responsive to window height */
.finder-layout {
  display: flex;
  flex: 1;
  flex-grow: 1; /* Fill all available vertical space after header */
  min-height: 0; /* Allow flex shrinking */
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Figma-based Finder Layout */
.finder-layout {
  display: flex;
  height: 100%;
}

.finder-sidebar {
  width: 220px;
  background: #1d1d1f;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Traffic Lights in Sidebar - identical to window controls */
.traffic-lights-container {
  display: flex;
  gap: 8px;
  padding: 16px 16px 12px 16px;
  align-items: center;
}

/* Use the exact same dot styling as window controls */
.traffic-lights-container .real-traffic {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: transform 120ms ease;
}

.traffic-lights-container .real-traffic.close {
  background: #ff5f57;
}

.traffic-lights-container .real-traffic.min {
  background: #ffbd2e;
}

.traffic-lights-container .real-traffic.max {
  background: #28c93f;
}

/* Same hover effects as regular dots */
.traffic-lights-container .real-traffic::after {
  content: '';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(0,0,0,0.9);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transition: opacity 120ms ease;
}

.traffic-lights-container .real-traffic.close::after {
  content: '×';
}

.traffic-lights-container .real-traffic.min::after {
  content: '–';
  transform: translateY(-1px);
}

.traffic-lights-container .real-traffic.max::after {
  content: '+';
}

.traffic-lights-container .real-traffic:hover::after {
  opacity: 0.9;
}

.traffic-lights-container .real-traffic:hover {
  transform: scale(1.1);
}

/* Hide original window header for Personal Projects */
#win-proj-personal-projects .window-header {
  display: none;
}

/* Favourites in Sidebar */
.finder-sidebar .sidebar-section {
  flex: 1;
  margin-bottom: 0;
  padding: 0 0 12px 0;
}

.finder-sidebar .sidebar-title {
  font-size: 11px;
  font-weight: 600;
  color: #8E8E93;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.finder-sidebar .sidebar-item {
  display: flex;
  align-items: center;
  padding: 4px 0 4px 16px;
  font-size: 13px;
  font-weight: 400;
  color: #f5f5f7;
  cursor: pointer;
  transition: background-color 0.1s ease;
  height: 24px;
}

.finder-sidebar .sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.finder-sidebar .sidebar-item.active {
  background: rgba(255, 255, 255, 0.1);
}

.finder-sidebar .sidebar-icon {
  margin-right: 8px;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.sidebar-section {
  margin-bottom: 16px;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 600;
  color: #8E8E93;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 4px 0 4px 16px;
  font-size: 13px;
  font-weight: 400;
  color: #1d1d1f;
  cursor: pointer;
  transition: background-color 0.1s ease;
  height: 24px;
}

.sidebar-item:hover {
  background: rgba(0, 122, 255, 0.08);
}

.sidebar-item.active {
  background: rgba(0, 122, 255, 0.15);
  color: #007AFF;
}

.sidebar-icon {
  margin-right: 8px;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.tag-item {
  display: flex;
  align-items: center;
  padding: 4px 0 4px 16px;
  font-size: 12px;
  font-weight: 400;
  color: #1d1d1f;
  cursor: pointer;
  transition: background-color 0.1s ease;
  height: 20px;
}

.tag-item:hover {
  background: rgba(0, 122, 255, 0.08);
}

/* Tags color dots */
.tag-item.red::before { content: '●'; color: #FF3B30; margin-right: 6px; }
.tag-item.orange::before { content: '●'; color: #FF9500; margin-right: 6px; }
.tag-item.yellow::before { content: '●'; color: #FFCC02; margin-right: 6px; }
.tag-item.green::before { content: '●'; color: #34C759; margin-right: 6px; }
.tag-item.blue::before { content: '●'; color: #007AFF; margin-right: 6px; }
.tag-item.purple::before { content: '●'; color: #AF52DE; margin-right: 6px; }
.tag-item.gray::before { content: '●'; color: #8E8E93; margin-right: 6px; }

.finder-content {
  flex: 1;
  background: #1d1d1f;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Navigation Header */
.finder-navigation {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.finder-nav-buttons {
  display: flex;
  gap: 6px;
}

.nav-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 12px;
  background: #CACACE;
  color: #48484A;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: #007AFF;
  color: white;
  transform: scale(1.05);
}

.finder-path {
  flex: 1;
}

.path-text {
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 500;
}

.finder-view-options {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 32px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  color: #007AFF;
}

.view-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.view-btn.selected {
  background: #007AFF;
  color: white;
  border-color: #007AFF;
}

.search-btn {
  width: 32px;
  height: 28px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Folder Content */
.folder-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  align-items: start;
}

.folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 12px 8px;
  border-radius: 8px;
  transition: all 0.15s ease;
  min-width: 80px;
}

.folder-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.folder-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.folder-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.folder-name {
  font-size: 11px;
  text-align: center;
  color: #f5f5f7;
  font-weight: 500;
  word-break: break-word;
  line-height: 1.2;
  max-width: 80px;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

/* Status Bar */
.finder-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.status-info {
  color: #f5f5f7;
  font-size: 12px;
}

.zoom-slider {
  display: flex;
  align-items: center;
  position: relative;
  width: 100px;
}

.slider-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
}

.slider-handle {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #007AFF;
  border-radius: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-handle:hover {
  transform: translateX(-50%) scale(1.1);
}

/* Dark theme support for Finder window */
body:not(.light-theme) .finder-window {
  background: #1d1d1f;
  color: #f5f5f7;
}

body:not(.light-theme) .finder-header {
  background: rgba(60, 60, 67, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.light-theme) .path-text {
  color: #f5f5f7;
}

body:not(.light-theme) .view-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #007AFF;
}

body:not(.light-theme) .view-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #007AFF;
}

body:not(.light-theme) .view-btn.selected {
  background: #007AFF;
  color: white;
  border-color: #007AFF;
}

body:not(.light-theme) .finder-sidebar {
  background: rgba(40, 40, 45, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}


body:not(.light-theme) .sidebar-title {
  color: #8E8E93;
}

body:not(.light-theme) .sidebar-item {
  color: #f5f5f7;
}

body:not(.light-theme) .sidebar-item:hover {
  background: rgba(0, 122, 255, 0.15);
}

body:not(.light-theme) .sidebar-item.active {
  background: rgba(0, 122, 255, 0.2);
  color: #007AFF;
}

body:not(.light-theme) .tag-item {
  color: #f5f5f7;
}

body:not(.light-theme) .tag-item:hover {
  background: rgba(0, 122, 255, 0.15);
}

body:not(.light-theme) .finder-content {
  background: #1d1d1f;
}

/* Light theme support for Finder window */
body.light-theme .finder-window {
  background: #ffffff;
  color: #1a1a1a;
}

body.light-theme .finder-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .path-text {
  color: #1a1a1a;
}

body.light-theme .view-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
  color: #007AFF;
}

body.light-theme .view-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: #007AFF;
}

body.light-theme .view-btn.selected {
  background: #007AFF;
  color: white;
  border-color: #007AFF;
}

body.light-theme .finder-sidebar {
  background: rgba(248, 248, 248, 0.8);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .sidebar-title {
  color: #6e6e73;
}

body.light-theme .sidebar-item {
  color: #1a1a1a;
}

body.light-theme .sidebar-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.light-theme .sidebar-item.active {
  background: rgba(0, 0, 0, 0.1);
}

body.light-theme .finder-content {
  background: #ffffff;
}

body.light-theme .folder-name {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.1);
}

body.light-theme .finder-status-bar {
  background: rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .status-info {
  color: #1a1a1a;
}

body.light-theme .slider-track {
  background: rgba(0, 0, 0, 0.2);
}

body:not(.light-theme) .folder-name {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.15);
}

body.light-theme .folder-name {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.1);
}

.windows-layer {
  position: absolute;
  inset: 0 0 100px 0; /* keep above dock */
  pointer-events: none; /* windows enable their own */
}

.window {
  position: absolute;
  min-width: 720px;
  max-width: 90vw;
  min-height: 480px;
  max-height: 80vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  pointer-events: auto;
}


.window-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.window-icon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  margin-right: 6px;
  vertical-align: middle;
}

.window-title-text {
  display: flex;
  align-items: center;
}

.window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  cursor: default;
}

.window-controls { display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; position: relative; cursor: pointer; transition: transform 120ms ease; }
.dot.close { background: #ff5f57; }
.dot.min { background: #ffbd2e; }
.dot.max { background: #28c93f; }

/* Traffic light symbols on hover */
.dot::after {
  content: '';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(0,0,0,0.9);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transition: opacity 120ms ease;
}
.dot.close::after { content: '×'; }
.dot.min::after { content: '–'; transform: translateY(-1px); }
.dot.max::after { content: '+'; }
.dot:hover::after { opacity: 0.9; }
.dot:hover { transform: scale(1.1); }

.window-title { font-size: 13px; color: #ffffff; flex: 1; text-align: center; pointer-events: none; }

.window-body { padding: 16px; overflow: auto; max-height: calc(80vh - 44px); color: #ffffff; }

/* Notes app styling */
.notes-body {
  padding: 0;
  height: calc(100% - 44px);
  display: flex;
  flex-direction: column;
}
.notes-header {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 16px;
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
  user-select: none;
  flex-shrink: 0;
}
#notes-editor {
  width: 100%;
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff;
  background: transparent;
  box-sizing: border-box;
}
#notes-editor::placeholder {
  color: #cccccc;
  font-style: italic;
}

/* Contact form styling */
.contact-body {
  padding: 20px;
  height: calc(100% - 44px);
  overflow-y: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007AFF;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #cccccc;
}

.submit-btn {
  background: #007AFF;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
  align-self: flex-start;
}

.submit-btn:hover {
  background: #0056CC;
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Resize handles (corners) */
.resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: transparent;
}
.resize-handle.ne { right: -2px; top: -2px; cursor: nesw-resize; }
.resize-handle.nw { left: -2px; top: -2px; cursor: nwse-resize; }
.resize-handle.se { right: -2px; bottom: -2px; cursor: nwse-resize; }
.resize-handle.sw { left: -2px; bottom: -2px; cursor: nesw-resize; }

.dock {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  padding: 6px 10px 12px 10px; /* Extra bottom padding for dots */
  background: rgba(28, 31, 38, 0.325);
  backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.dock-list {
  /* Tunables to match macOS proportions */
  --dock-item: 52px;   /* container height */
  --dock-icon: 56px;   /* icon base size */
  --dock-gap: 10px;     /* spacing between items */
  display: flex;
  align-items: flex-end;
  gap: var(--dock-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock-item {
  --scale: 1;
  width: calc(var(--dock-item) * var(--scale));
  height: var(--dock-item);
  display: grid;
  place-items: center;
  transition: width 160ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 120ms ease;
  position: relative;
}

.dock-item::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dock-item.running::after {
  opacity: 1;
}
.dock-item button {
  background: transparent;
  border: 0;
  padding: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.dock-item button:focus { outline: none; }
.dock-item a { outline: none; }

.dock-item img, .dock-item svg { width: var(--dock-icon); height: var(--dock-icon); border-radius: 12px; border: 2px solid transparent; transition: border-color 120ms ease, transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1); transform-origin: bottom center; transform: scale(var(--scale)); }
.dock-item:hover img, .dock-item:hover svg { border-color: transparent; }
.dock-item button:focus-visible img, .dock-item a:focus-visible img,
.dock-item button:focus-visible svg, .dock-item a:focus-visible svg { border-color: rgba(255,255,255,0.45); }
.dock-divider { 
  width: 1px; 
  height: 44px; 
  background: rgba(255,255,255,0.16); 
  margin: 0 4px; 
  align-self: center;
}

/* Simple dock magnification based on distance to pointer */
.dock-list { --mx: 0 }
.dock-item { transform: translateZ(0); }
.dock-list:hover .dock-item { transition: transform 80ms ease; }

/* Dock tooltips */
.dock-tooltip {
  position: absolute;
  bottom: calc(100% + 50px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28,31,38,0.9);
  color: #fff;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  z-index: 1000;
}
.dock-item:hover .dock-tooltip { 
  opacity: 1; 
  transform: translateX(-50%) translateY(-4px); 
}

/* Ensure dock item is positioned for tooltip */
.dock-item {
  position: relative;
}


@media (max-width: 640px) {
  .desktop-icons { left: 12px; right: 12px; gap: 12px 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .window { min-width: 320px; max-width: 96vw; min-height: 320px; max-height: 82vh; }
  .dock-item { width: 48px; height: 48px; }
  .dock-item img, .dock-item svg { width: 40px; height: 40px; }
}

/* Apps window styles */
.apps-window {
  position: fixed;
  width: 900px;
  height: 700px;
  min-width: 600px;
  min-height: 400px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(40px) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.1);
  border-radius: 24px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 12px 30px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
}

.apps-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    transparent 50%,
    rgba(0, 0, 0, 0.05) 70%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.apps-content {
  height: 100%;
  padding: 30px;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4.75px;
  align-content: start;
  height: 50%;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  transition: all 0.2s ease;
}

.app-item:hover {
  transform: translateY(-2px);
}

.app-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.app-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.app-icon img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}

/* Fix centering for Midnite icon */
.app-icon img[src*="midnite.svg"] {
  object-position: center center;
  transform: translate(-1px, 0px);
}

/* Fix centering for El Corte Inglés icon */
.app-icon img[src*="elcorte.svg"] {
  object-position: center center;
  transform: translate(1px, -1px);
}

/* Fix centering for IWHBW icon */
.app-icon img[src*="IWHBW.svg"] {
  object-position: center center;
  transform: translate(0px, 0px);
}

.app-icon-fallback {
  font-size: 32px;
  color: #666;
}

.app-label {
  font-size: 11px;
  text-align: center;
  color: #ffffff;
  font-weight: 500;
  word-break: break-word;
  line-height: 1.2;
  max-width: 80px;
}

/* Music Widget Styles */
.music-widget {
  position: fixed;
  top: 50px;
  right: 20px;
  width: 256px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(40px) saturate(200%) brightness(1.1);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.1);
  border-radius: 20px;
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.4),
    0 10px 24px rgba(0, 0, 0, 0.2),
    0 3px 10px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  cursor: default;
  user-select: none;
  overflow: hidden;
}


.music-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    transparent 50%,
    rgba(0, 0, 0, 0.05) 70%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.music-widget-content {
  padding: 16px;
  position: relative;
  z-index: 2;
}

.music-cover {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  overflow: hidden;
}

.music-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.music-cover-placeholder {
  font-size: 24px;
  color: white;
}

.music-info {
  text-align: center;
  margin-bottom: 20px;
}

.music-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.music-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.music-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.music-btn:active {
  transform: scale(0.9);
}

.play-btn {
  width: 48px;
  height: 48px;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Fine-tune symbol positioning */
.prev-btn::before {
  content: '⏮';
  transform: translateX(-0.5px);
}

.play-btn::before {
  content: '▶';
  transform: translateX(1px);
}

.play-btn.playing::before {
  content: '⏸';
  transform: translateX(0px);
}

.next-btn::before {
  content: '⏭';
  transform: translateX(0.5px);
}

/* Hide original text content */
.prev-btn,
.play-btn,
.next-btn {
  font-size: 0;
}

.prev-btn::before,
.play-btn::before,
.next-btn::before {
  font-size: 16px;
}

.play-btn::before {
  font-size: 18px;
}

.music-progress {
  margin-top: 16px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: #007AFF;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s ease;
}

.time-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

.music-volume {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-icon {
  font-size: 14px;
  color: #666;
  min-width: 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  filter: grayscale(100%);
}

.volume-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.volume-icon:active {
  transform: scale(0.9);
}

.volume-icon.muted {
  background: rgba(0, 0, 0, 0.4);
  color: #999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.volume-icon.muted:hover {
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.volume-slider {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.volume-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #007AFF, #5AC8FA);
  border-radius: 2px;
  width: var(--volume-percentage, 70%);
  transition: width 0.1s ease;
}

.volume-slider:hover::before {
  background: linear-gradient(90deg, #0056CC, #007AFF);
}

.volume-slider:hover {
  background: rgba(255, 255, 255, 0.3);
}

.volume-slider.muted {
  background: rgba(128, 128, 128, 0.3);
  opacity: 0.6;
}

.volume-slider.muted::before {
  background: rgba(128, 128, 128, 0.5);
}


/* Scrollbar styling for project windows */
.window-body::-webkit-scrollbar {
  width: 6px;
}

.window-body::-webkit-scrollbar-track {
  background: transparent;
}

.window-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.0);
  border-radius: 10px;
}

.window-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.0);
}

.window-body::-webkit-scrollbar-button {
  display: none;
}

.window-body::-webkit-scrollbar-corner {
  background: transparent;
}

/* General scrollbar styling for all elements */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.0);
  border-radius: 10px;
  transition: transform 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  transform: scaleX(1.5);
}

::-webkit-scrollbar-button {
  display: none;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* About Me Window Styles */
.about-body {
  padding: 30px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.about-header {
  margin-bottom: 30px;
}

.about-photo {
  margin-bottom: 25px;
}

.about-photo img {
  width: 150px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-name {
  font-size: 28px;
  margin-bottom: 10px;
  color: #1d1d1f;
}

.about-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: #6e6e73;
  font-weight: 400;
}

.about-content {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  color: #1d1d1f;
}

.about-text {
  font-size: 16px;
  margin-bottom: 20px;
}

.about-skills {
  margin: 30px 0;
}

.about-skills-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: #1d1d1f;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.about-software {
  margin: 30px 0;
}

.about-software-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: #1d1d1f;
}

.software-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.skill-tag {
  background: #f5f5f7;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #1d1d1f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.software-tag {
  background: #f5f5f7;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #1d1d1f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-connect {
  margin-top: 40px;
}

.about-connect-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: #1d1d1f;
}

.connect-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.connect-link {
  color: #007aff;
  text-decoration: none;
  font-size: 14px;
}

.connect-link:hover {
  text-decoration: underline;
}

/* Dark mode styles for About Me */
body:not(.light-theme) .about-name {
  color: #ffffff;
}

body:not(.light-theme) .about-title {
  color: #cccccc;
}

body:not(.light-theme) .about-content {
  color: #e6e6e6;
}

body:not(.light-theme) .about-skills-title {
  color: #ffffff;
}

body:not(.light-theme) .about-software-title {
  color: #ffffff;
}

body:not(.light-theme) .about-connect-title {
  color: #ffffff;
}

body:not(.light-theme) .skill-tag {
  background: #404040;
  color: #e6e6e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body:not(.light-theme) .software-tag {
  background: #404040;
  color: #e6e6e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body:not(.light-theme) .connect-link {
  color: #5ac8fa;
}

body:not(.light-theme) .connect-link:hover {
  color: #007aff;
}




