/* Solaris Desktop Simulator Styles */

* {
  box-sizing: border-box;
  user-select: none;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 11px;
  overflow: hidden;
}

.desktop-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.solaris-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6b46c1 0%, #8b5cf6 25%, #a855f7 50%, #9333ea 75%, #7c3aed 100%);
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0,0,0,.1) 35px, rgba(0,0,0,.1) 70px);
  z-index: 0;
}

/* Desktop Icons */
.desktop-icon {
  position: absolute;
  width: 64px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.icon-symbol {
  font-size: 32px;
  margin-bottom: 4px;
}

.icon-label {
  color: white;
  text-align: center;
  font-size: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  word-wrap: break-word;
  line-height: 1.2;
}

/* Windows */
.retro-window {
  position: absolute;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 150px;
  z-index: 10;
}

.window-titlebar {
  height: 24px;
  background: linear-gradient(to right, #0040ff, #0080ff);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  cursor: move;
  font-weight: bold;
  font-size: 11px;
}

.window-title {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.window-btn {
  width: 16px;
  height: 16px;
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  color: black;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-btn:hover {
  background: #d0d0d0;
}

.window-btn:active {
  border: 1px inset #c0c0c0;
}

.close-btn:hover {
  background: #ff4444;
  color: white;
}

.window-content {
  height: calc(100% - 24px);
  background: #c0c0c0;
  overflow: auto;
}

/* Calculator */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 100%;
}

.calc-btn {
  background: #e0e0e0;
  border: 2px outset #e0e0e0;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.calc-btn:hover {
  background: #f0f0f0;
}

.calc-btn:active {
  border: 2px inset #e0e0e0;
}

/* Toolbar */
.retro-toolbar {
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  padding: 2px;
  display: flex;
  gap: 1px;
}

.retro-btn {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 11px;
}

.retro-btn:hover {
  background: #d0d0d0;
}

.retro-btn:active {
  border: 1px inset #c0c0c0;
}

/* File Manager */
.file-item {
  border-radius: 2px;
}

.file-item:hover {
  background: #316ac5 !important;
  color: white;
}

/* Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, #d0d0d0, #a0a0a0);
  border-top: 2px solid #ffffff;
  display: flex;
  align-items: center;
  padding: 0 4px;
  z-index: 1000;
}

.start-button {
  background: linear-gradient(to bottom, #e0e0e0, #c0c0c0);
  border: 2px outset #c0c0c0;
  padding: 4px 16px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 8px;
  font-size: 11px;
}

.start-button:hover {
  background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
}

.start-button:active {
  border: 2px inset #c0c0c0;
}

.taskbar-apps {
  flex: 1;
  display: flex;
  gap: 4px;
  overflow: hidden;
}

.taskbar-app {
  background: #c0c0c0;
  border: 1px outset #c0c0c0;
  padding: 4px 8px;
  cursor: pointer;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.taskbar-app:hover {
  background: #d0d0d0;
}

.taskbar-app.minimized {
  background: #a0a0a0;
  border: 1px inset #c0c0c0;
}

.system-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.tray-item {
  padding: 2px 4px;
  cursor: pointer;
}

.system-clock {
  background: #808080;
  border: 1px inset #c0c0c0;
  padding: 4px 8px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes windowOpen {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.retro-window {
  animation: windowOpen 0.2s ease-out;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: #c0c0c0;
  border: 1px inset #c0c0c0;
}

::-webkit-scrollbar-thumb {
  background: #808080;
  border: 1px outset #808080;
}

::-webkit-scrollbar-thumb:hover {
  background: #606060;
}

::-webkit-scrollbar-corner {
  background: #c0c0c0;
}