* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.body {
  padding: 14px;
  overflow: auto;
  flex: 1;
  background: transparent;
}

button {
  padding: 5px 12px;
  background: #333;
  color: #f0f0f0;
  border: 1px solid #444;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

button:hover {
  background: #3d3d3d;
  border-color: #555;
}

.win {
  width: 340px;
  margin: 14vh auto;
  padding: 24px;
  background: #202020;
  border: 1px solid #333;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.desktop-hidden {
  display: none !important;
}

#desktop {
  height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center;
}

.topbar {
  height: 36px;
  background: rgba(15, 15, 15, 0.5) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  color: #bbb;
  position: relative;
  z-index: 10;
}

.dock {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 28, 28, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px;
  border-radius: 10px;
  display: flex;
  gap: 4px;
  z-index: 999;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.dock button {
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0;
}
.dock button:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.app {
  position: absolute;
  top: 70px;
  left: 80px;
  width: 460px;
  height: 360px;
  background: rgba(34, 34, 34, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: none;
  flex-direction: column;
  resize: both;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
}
.term-app {
  background: rgba(28, 28, 28, 0.65) !important;
}
.head {
  background: rgba(27, 27, 27, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
  font-size: 13px;
}

.head button {
  background: transparent;
  border: none;
  color: #888;
  padding: 0 4px;
  font-size: 15px;
}

.head button:hover {
  background: transparent;
  color: #fff;
}

.body {
  padding: 14px;
  overflow: auto;
  flex: 1;
}

.flex-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.center {
  text-align: center;
}

.bar {
  height: 5px;
  background: #2c2c2c;
  border-radius: 3px;
  margin: 10px 0;
  overflow: hidden;
}

#storage-bar-fill {
  height: 100%;
  background: #ccc;
  width: 0%;
}

.file-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid #2c2c2c;
  margin-top: 5px;
  border-radius: 4px;
  font-size: 13px;
}

.file-row-actions {
  display: flex;
  gap: 4px;
}

.file-action-btn {
  padding: 2px 6px;
  background: transparent;
  border: 1px solid #444;
  color: #aaa;
  font-size: 11px;
}

.file-action-btn:hover {
  color: #fff;
  border-color: #666;
}

textarea {
  flex: 1;
  background: transparent;
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 10px;
  resize: none;
  margin-bottom: 10px;
  outline: none;
  font-size: 13px;
  line-height: 1.4;
}

textarea:focus {
  border-color: #555;
}

.term {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #ffffff;
}
#terminal-output {
  flex: 1;
  overflow: auto;
  white-space: pre-wrap;
  color: #ffffff;
  line-height: 1.4;
  background: transparent;
}
.tools button {
  padding: 4px 8px;
  background: #2a2a2a;
  border: 1px solid #3d3d3d;
  color: #ccc;
}

.tools button.active {
  background: #404040;
  border-color: #666;
  color: #fff;
}

canvas {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  cursor: crosshair;
  width: 100%;
  margin-top: 6px;
}

.icon {
  width: 40px;
  height: 40px;
  border: 1px solid #444;
  border-radius: 50%;
  line-height: 40px;
  margin: 0 auto 12px;
  font-size: 18px;
  background: #282828;
}
.term-app input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #fff !important;
}