/* Общие сбросы */
* { box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
html,body { height:100%; margin:0; }

/* Фон "Bliss" - стилизованный */
.bliss {
  height: calc(100vh - 40px);
  background:
    radial-gradient(ellipse at 10% 20%, rgba(255,255,255,0.05), transparent 10%),
    linear-gradient(180deg, #7db9e8 0%, #5aa0d4 50%, #2f6fa4 100%);
  background-attachment: fixed;
  padding: 16px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
}

/* Иконки на рабочем столе */
.icon {
  width:96px;
  color:#fff;
  text-align:center;
  cursor:pointer;
  user-select:none;
}
.icon-img {
  font-size:48px;
  background: rgba(255,255,255,0.06);
  padding: 10px;
  border-radius:8px;
  margin-bottom:6px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}
.icon-label { font-size:13px; text-shadow: 0 1px 0 rgba(0,0,0,0.3); }

/* Панель задач (внизу) */
#taskbar {
  height:40px;
  position:fixed;
  left:0; right:0; bottom:0;
  background: linear-gradient(180deg,#dfe9f4,#c9dbf0);
  border-top: 2px solid rgba(0,0,0,0.08);
  display:flex;
  align-items:center;
  padding:0 8px;
  gap:8px;
  z-index:1000;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

/* Кнопка Пуск в стиле XP */
#start-button {
  display:flex;
  align-items:center;
  gap:8px;
  background: linear-gradient(180deg,#2b8a2b,#197219);
  color:#fff;
  border-radius:6px;
  padding:6px 10px;
  border:1px solid rgba(0,0,0,0.4);
  cursor:pointer;
  box-shadow: inset 0 1px rgba(255,255,255,0.07);
}
.start-logo { font-weight:bold; transform:translateY(-1px); }
.start-text { font-weight:600; font-size:13px; }

/* Панель миниатюр открытых окон */
#taskbar-windows { display:flex; gap:8px; flex:1; padding-left:8px; }

/* Трей и часы */
#tray { display:flex; align-items:center; gap:12px; color:#333; font-weight:600; }
#tray-time { min-width:80px; text-align:right; font-size:13px; }

/* Меню Пуск */
#start-menu {
  position:fixed; left:10px; bottom:50px;
  width:260px;
  background: linear-gradient(180deg,#ffffff,#e6f0ff);
  border:1px solid rgba(0,0,0,0.12);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  padding:12px;
  border-radius:6px;
  display:none;
  z-index:1200;
}
#start-menu h4 { margin:0 0 8px 0; color:#074; }
#start-menu ul { list-style:none; padding:0; margin:0; }
#start-menu li { padding:6px 8px; cursor:pointer; border-radius:4px; }
#start-menu li:hover { background:rgba(0,0,0,0.05); }

/* Окна */
.window {
  width:720px;
  max-width:calc(100% - 40px);
  height:480px;
  position:fixed;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  background:#fff;
  border:1px solid #2b6fb3;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  z-index:1100;
  display:flex;
  flex-direction:column;
  border-radius:4px;
  overflow:hidden;
}

/* Titlebar в стиле XP */
.titlebar {
  background: linear-gradient(180deg,#2b66b4,#1f4d91);
  color:#fff;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 8px;
  font-weight:700;
}
.title-left { display:flex; gap:8px; align-items:center; }
.title-controls button {
  background:transparent; color:#fff; border:0; font-weight:700; width:32px; height:28px; cursor:pointer;
}
.toolbar {
  background: linear-gradient(180deg,#e9f1ff,#d6e6ff);
  padding:6px;
  border-bottom:1px solid rgba(0,0,0,0.06);
}
.menu-row { display:flex; gap:10px; font-size:13px; color:#083; margin-bottom:6px; }
.tools-row { display:flex; gap:8px; align-items:center; }
.tool { padding:4px 8px; border-radius:4px; border:1px solid rgba(0,0,0,0.08); cursor:pointer; background:#fff; }
.font-select { padding:4px; }

/* Контент статьи */
.content {
  padding:12px;
  flex:1;
  overflow:auto;
  background: #fff;
}
.article-container { max-width:720px; margin:0 auto; color:#111; line-height:1.5; }

/* Миниатюра в taskbar */
.task-item {
  display:flex; align-items:center; gap:6px;
  background: linear-gradient(180deg,#fff,#eef6ff);
  padding:4px 8px; border-radius:4px; border:1px solid rgba(0,0,0,0.06);
  cursor:pointer;
}

/* Адаптив */
@media (max-width:800px) {
  .window { width:95%; height:70%; }
}
