* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Tahoma", "Segoe UI", Verdana, sans-serif;
  font-size: 11px;
  background: #3a6ea5 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="100" height="100" fill="%23408ee0"/></svg>');
  background-image: linear-gradient(180deg, #4a90d9 0%, #2f6cb5 40%, #1a4d8f 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.desktop {
  min-height: calc(100vh - 30px);
  position: relative;
  padding: 20px;
}

/* Desktop icons */
.desktop-icons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 90px;
  position: absolute;
  top: 20px;
  left: 20px;
}

.d-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  gap: 4px;
  padding: 4px;
  border-radius: 2px;
}

.d-icon:hover {
  background: rgba(49, 106, 197, 0.4);
  outline: 1px dotted rgba(255,255,255,0.5);
}

.d-icon span {
  font-size: 11px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  line-height: 1.3;
}

.d-icon-img {
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
}

.computer {
  background: linear-gradient(135deg, #e8e8e8, #a0a0a0);
  border-radius: 3px;
  border: 1px solid #666;
  position: relative;
}
.computer::after {
  content: "";
  position: absolute;
  top: 4px; left: 4px; right: 4px;
  height: 14px;
  background: #4a90d9;
  border-radius: 1px;
}

.folder {
  background: linear-gradient(180deg, #ffd966 0%, #ffb632 100%);
  border-radius: 2px 6px 2px 2px;
  position: relative;
}
.folder::before {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 16px; height: 5px;
  background: #ffb632;
  border-radius: 3px 3px 0 0;
}

.cd {
  background: radial-gradient(circle, #fff 0%, #a0c4e8 30%, #5a8fc4 60%, #2a5a8f 100%);
  border-radius: 50%;
  border: 1px solid #666;
}

.mail {
  background: linear-gradient(180deg, #6fa8dc 0%, #3d6ba8 100%);
  border-radius: 3px;
  border: 1px solid #2a4d7a;
}

/* Main window */
.window {
  position: relative;
  max-width: 900px;
  margin: 30px auto;
  background: #ece9d8;
  border-radius: 8px 8px 3px 3px;
  box-shadow: 3px 3px 15px rgba(0,0,0,0.5);
  border: 1px solid #0842a0;
  overflow: hidden;
}

.title-bar {
  background: linear-gradient(180deg, #1c62d3 0%, #2a76e8 8%, #1259d6 40%, #0c4ec9 60%, #0d3fa8 90%, #123e93 100%);
  padding: 4px 4px 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
}

.title-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-weight: bold;
  font-size: 12px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
}

.title-icon {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #e8e8e8, #a0a0a0);
  border-radius: 2px;
  border: 1px solid #666;
}

.title-bar-controls {
  display: flex;
  gap: 3px;
}

.title-bar-controls button {
  width: 21px;
  height: 21px;
  background: linear-gradient(180deg, #4a90e2 0%, #2a6dc9 50%, #1a5ab5 100%);
  border: 1px solid #1a4d8f;
  border-radius: 3px;
  color: white;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
}

.title-bar-controls button:last-child {
  background: linear-gradient(180deg, #e88a7a 0%, #d84a3a 50%, #b82818 100%);
}

.menu-bar {
  background: #ece9d8;
  padding: 4px 8px;
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #d4d0c0;
  font-size: 11px;
}

.menu-bar span {
  cursor: default;
}
.menu-bar span:hover {
  background: #316ac5;
  color: white;
  padding: 1px 4px;
  margin: -1px -4px;
  border-radius: 2px;
}

.toolbar {
  background: linear-gradient(180deg, #f5f4ea 0%, #ece9d8 100%);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid #d4d0c0;
}

.tb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: default;
  font-size: 10px;
  color: #333;
  gap: 2px;
}

.tb-btn:hover {
  background: #d9e5f5;
  border: 1px solid #7ba8dc;
  padding: 1px 7px;
}

.tb-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #8fb8e8, #4a7dc4);
  border-radius: 3px;
}

.tb-sep {
  width: 1px;
  height: 24px;
  background: #d4d0c0;
  margin: 0 4px;
}

.address-bar {
  background: #ece9d8;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #d4d0c0;
  font-size: 11px;
}

.address-input {
  flex: 1;
  background: white;
  border: 1px solid #7f9db9;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
}

.tiny-icon {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #e8e8e8, #a0a0a0);
  border-radius: 2px;
  flex-shrink: 0;
}

.go-btn {
  background: linear-gradient(180deg, #f5f4ea 0%, #ddd8c4 100%);
  border: 1px solid #999;
  border-radius: 2px;
  padding: 3px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
}

.content-area {
  display: flex;
  min-height: 400px;
  background: white;
}

.sidebar {
  width: 200px;
  background: linear-gradient(180deg, #d9e5f5 0%, #b8d0ec 100%);
  padding: 10px;
  border-right: 1px solid #d4d0c0;
}

.task-panel {
  margin-bottom: 16px;
}

.panel-title {
  font-weight: bold;
  color: #0844c9;
  font-size: 11px;
  margin-bottom: 6px;
  padding-bottom: 2px;
}

.task-panel ul {
  list-style: none;
}

.task-panel li {
  padding: 3px 0;
  color: #1a4d8f;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.task-panel li:hover {
  text-decoration: underline;
}

.link-icon {
  font-size: 12px;
}

.details-text {
  color: #333;
  font-size: 11px;
  line-height: 1.5;
}

.main-panel {
  flex: 1;
  padding: 16px;
}

.section-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  font-size: 12px;
}

.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 16px;
}

.grid-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  gap: 6px;
  padding: 8px;
  border-radius: 3px;
}

.grid-icon:hover {
  background: #d9e5f5;
  outline: 1px dotted #7ba8dc;
  color: #0844c9;
}

.grid-icon span {
  font-size: 11px;
  text-align: center;
}

.grid-icon-img {
  width: 40px;
  height: 40px;
}

.folder-yellow {
  background: linear-gradient(180deg, #ffe066 0%, #ffb632 100%);
  border-radius: 2px 8px 2px 2px;
  position: relative;
}
.folder-yellow::before {
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 20px; height: 6px;
  background: #ffb632;
  border-radius: 3px 3px 0 0;
}

.file-txt {
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%);
  border: 1px solid #999;
  border-radius: 2px;
  position: relative;
}
.file-txt::after {
  content: "";
  position: absolute;
  top: 8px; left: 6px; right: 6px;
  height: 2px;
  background: #999;
  box-shadow: 0 5px 0 #999, 0 10px 0 #999, 0 15px 0 #999;
}

.status-bar {
  background: #ece9d8;
  border-top: 1px solid #d4d0c0;
  padding: 4px 10px;
  font-size: 11px;
  color: #333;
  display: flex;
  gap: 8px;
}

.status-sep {
  color: #999;
}

/* Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(180deg, #2a76e8 0%, #1259d6 15%, #0c4ec9 50%, #0d3fa8 85%, #123e93 100%);
  display: flex;
  align-items: center;
  padding: 2px 3px;
  gap: 4px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.3);
  z-index: 100;
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, #4fae4f 0%, #2f8f2f 50%, #1f6f1f 100%);
  padding: 3px 12px 3px 8px;
  border-radius: 4px;
  color: white;
  font-weight: bold;
  font-style: italic;
  font-size: 13px;
  height: 24px;
  box-shadow: 0 0 4px rgba(255,255,255,0.3) inset;
  cursor: pointer;
}

.start-icon {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ff6b35, #f7c142, #4caf50, #2196f3);
  border-radius: 2px;
}

.taskbar-sep {
  width: 2px;
  height: 22px;
  background: rgba(255,255,255,0.2);
  border-right: 1px solid rgba(0,0,0,0.2);
}

.taskbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #3a7fd5 0%, #2a5fb5 100%);
  padding: 3px 12px;
  border-radius: 3px;
  color: white;
  font-size: 11px;
  height: 24px;
  border: 1px solid rgba(0,0,0,0.2);
}

.taskbar-item.active {
  background: linear-gradient(180deg, #1a4d9f 0%, #123a80 100%);
  box-shadow: 0 0 4px rgba(0,0,0,0.4) inset;
}

.tb-item-icon {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #e8e8e8, #a0a0a0);
  border-radius: 2px;
}

.taskbar-spacer {
  flex: 1;
}

.system-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #1a5ab5 0%, #0d3fa8 100%);
  padding: 3px 10px;
  border-radius: 3px 0 0 3px;
  color: white;
  font-size: 11px;
  height: 24px;
  box-shadow: 2px 0 4px rgba(0,0,0,0.2) inset;
}

.tray-icons {
  font-size: 12px;
}

.clock {
  font-family: "Tahoma", sans-serif;
}

@media (max-width: 700px) {
  .desktop-icons {
    display: none;
  }
  .content-area {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #d4d0c0;
  }
  .window {
    margin: 10px;
  }
}
