:root {
  --accent-primary: #ff7f00;
  --accent-secondary: #bf40bf;
  --bg-glass: rgba(18, 18, 18, 0.85);
  --border-glass: rgba(255, 127, 0, 0.3);
}

body {
  background-color: #0d0d0d;
  color: #f5f5dc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
}

/* --- Clean Desktop Grid Alignment --- */
.desktop-grid {
  position: absolute;
  top: 60px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, 90px);
  grid-auto-rows: 95px;
  gap: 12px;
  padding: 16px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.desktop-icon {
  text-align: center;
  padding: 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.icon-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.icon-label {
  margin: 4px 0 0 0;
  color: #f5f5dc;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* --- Top Bar Styling --- */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  display: flex;
  backdrop-filter: blur(14px);
  background-color: rgba(10, 10, 10, 0.75);
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 1000;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin: 0;
}

.os-name {
  background-color: rgba(191, 64, 191, 0.2);
  border: 1px solid var(--accent-secondary);
  font-weight: 700;
  color: #fff;
}

.vibe {
  background-color: rgba(255, 127, 0, 0.15);
  border: 1px solid var(--accent-primary);
  color: #f5f5dc;
}

.action-pill {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f5f5dc;
  cursor: pointer;
  transition: all 0.2s;
}

.action-pill:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
}

.time {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ddd;
}

/* --- Window Styling (Glassmorphism & Glow) --- */
.window {
  border: 2px solid var(--accent-primary);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  position: absolute;
  backdrop-filter: blur(16px);
  background-color: var(--bg-glass);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 127, 0, 0.15);
  overflow: hidden;
}

.windowheader {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  cursor: grab;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 12px;
  box-sizing: border-box;
}

.headertext {
  margin: 0px;
  font-size: 13px;
  font-weight: bold;
}

.closebutton {
  width: 12px;
  height: 12px;
  cursor: pointer;
  background-color: #ff5f56;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s;
}

.closebutton:hover {
  opacity: 0.7;
}

/* --- UI Buttons & Cards --- */
.btn-primary {
  background-color: var(--accent-primary);
  color: #0d0d0d;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.2s;
}
.btn-primary:hover { filter: brightness(1.15); }

.btn-secondary {
  background-color: var(--accent-secondary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.2s;
}
.btn-secondary:hover { filter: brightness(1.15); }

.btn-danger {
  background-color: #ff5f56;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
}

.btn-neon {
  background-color: #00ffcc;
  color: #0d0d0d;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-family: monospace;
  font-size: 14px;
  box-shadow: 0 0 15px rgba(0,255,204,0.4);
  transition: transform 0.1s, box-shadow 0.2s;
}
.btn-neon:hover { box-shadow: 0 0 25px rgba(0,255,204,0.7); }

.card-box {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  border-left: 4px solid;
  border-top: 1px solid rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.setting-row {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.music-disc {
  width: 75px;
  height: 75px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  border-radius: 50%;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 0 20px rgba(191,64,191,0.4);
  animation: spin 10s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.media-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.media-btn:hover { background: rgba(255,255,255,0.2); }

.sidebar-item {
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.02);
  transition: background-color 0.2s;
  border: 1px solid transparent;
}

.sidebar-item:hover {
  background-color: rgba(255, 127, 0, 0.15);
  border-color: rgba(255, 127, 0, 0.3);
}