:root 
{
  --bg-color: #098ef4;
  --accent: #1dd3f7;
  --taskbar-bg: rgba(29, 76, 186, 0.85);
  --window-bg: rgba(30, 41, 59, 0.95);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body 
{
  background: radial-gradient(circle at 20% 20%, #1e1b4b, var(--bg-color));
  height: 100vh;
  overflow: hidden;
  color: var(--text-main);
}

#desktop 
{
  height: calc(100vh - 48px);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 90px);
  grid-auto-rows: 90px;
  gap: 16px;
}

.desktop-icon 
{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.17s;
}

.desktop-icon:hover 
{
  background: rgba(229, 228, 228, 0.1);
}

.desktop-icon svg 
{
  width: 36px;
  height: 36px;
}

.window 
{
  position: absolute;
  width: 380px;
  height: 320px;
  background: var(--window-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(4, 4, 4, 0.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.window-header 
{
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 500;
}

.window-controls 
{
  display: flex;
  gap: 8px;
}

.control-btn 
{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.btn-close 
{ 
    background: #d03939; 
}
.btn-min 
{ 
    background: #dea90b; 
}

.window-content 
{
  flex: 1;
  padding: 16px;
  overflow: auto;
  user-select: text;
}

#taskbar 
{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--taskbar-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  backdrop-filter: blur(16px);
  z-index: 9999;
}

.taskbar-section 
{
  display: flex;
  align-items: center;
  gap: 10px;
}

#start-btn 
{
  background: transparent;
  border: none;
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

#start-btn:hover 
{
  background: rgba(255, 255, 255, 0.1);
}

#taskbar-apps 
{
  display: flex;
  gap: 6px;
}

.taskbar-item 
{
  padding: 4px 10px;
  background: rgba(227, 226, 226, 0.05);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

#clock 
{
  font-size: 12px;
  color: var(--text-muted);
}

#start-menu 
{
  position: absolute;
  bottom: 56px;
  left: 12px;
  width: 240px;
  background: var(--window-bg);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 9px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 30px rgba(4, 4, 4, 0.5);
  backdrop-filter: blur(12px);
  z-index: 10000;
}

.menu-item 
{
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
}

.menu-item:hover 
{
  background: var(--accent);
  color: #0d1629;
}

textarea 
{
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  resize: none;
  outline: none;
}

.calc-grid 
{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.calc-grid input 
{
  grid-column: span 4;
  padding: 10px;
  font-size: 18px;
  text-align: right;
  background: rgba(3, 3, 3, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 4px;
  outline: none;
  margin-bottom: 8px;
}

.calc-grid button 
{
  padding: 12px;
  background: rgba(243, 241, 241, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-main);
  cursor: pointer;
}

.calc-grid button:hover 
{
  background: rgba(246, 245, 245, 0.15);
}
