/* Windows 98 Desktop Styles */
body, html, #desktop {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #008080;
  font-family: 'MS Sans Serif', sans-serif;
  font-size: 11px;
}

#desktop {
  position: relative;
  width: 100%;
  height: 100%;
  background: #008080;
}

/* Aquarium Wallpaper */
#aquarium-wallpaper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(135deg, #006994 0%, #003d5c 100%);
  overflow: hidden;
}

#aquarium-wallpaper canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#caustics-canvas {
  z-index: 1;
  opacity: 0.3;
  mix-blend-mode: screen;
}

#particles-canvas {
  z-index: 2;
  pointer-events: none;
}

#goldfish-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

#fish-canvas {
  z-index: 3;
}

/* Rainbow text on wallpaper */
.rainbow-text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
  pointer-events: none;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.rainbow-text {
  font-family: 'RVFont', Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1;
  margin: 0;
}

.rainbow-text .char {
  display: inline-block;
  color: hsl(calc(360deg * var(--char-percent)), 90%, 75%);
  animation: rainbow-colors 2s linear infinite, float-effect 6s ease-in-out infinite;
  animation-delay: calc(-2s * var(--char-percent)), calc(0.1s * var(--char-index));
  transform-origin: center bottom;
}

@keyframes rainbow-colors {
  0% { color: #81a1c1; }
  25% { color: #b48ead; }
  50% { color: #8fbcbb; }
  75% { color: #ebcb8b; }
  100% { color: #88c0d0; }
}

@keyframes float-effect {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-15px) rotate(-2deg) scale(1.1); }
  50% { transform: translateY(-20px) scale(1.2); }
  75% { transform: translateY(-10px) rotate(2deg) scale(1.1); }
}

/* Desktop Icons */
.desktop-icons {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 20px;
  gap: 20px;
  width: calc(100% - 320px);
  height: calc(100% - 40px);
  overflow-y: auto;
  z-index: 5;
  align-content: flex-start;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  cursor: pointer;
  padding: 5px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.desktop-icon:hover {
  background: rgba(0, 0, 128, 0.5);
  border: 1px dotted #ffffff;
}

.desktop-icon.selected {
  background: rgba(0, 0, 128, 0.5);
  border: 1px solid #ffffff;
}

.icon-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrapper i {
  font-size: 48px;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000000;
  z-index: 2;
  position: relative;
}

.shortcut-overlay {
  position: absolute;
  bottom: -8px;
  left: -8px;
  width: 32px;
  height: 32px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(1px 1px 0 #000000);
  opacity: 0.9;
}

.desktop-icon span {
  color: #ffffff;
  text-align: center;
  text-shadow: 1px 1px 0 #000000;
  font-size: 11px;
  word-wrap: break-word;
  width: 100%;
}

/* Discord Widget - Static unmovable, NO BUTTONS */
.discord-widget {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 280px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 1px 1px 0 #000000;
  z-index: 100;
  pointer-events: auto;
}

.widget-title-bar {
  background: linear-gradient(to right, #000080, #1084d0);
  color: white;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.widget-title {
  font-weight: bold;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* REMOVED widget controls completely */
.widget-controls {
  display: none !important;
}

.widget-content {
  padding: 8px;
  max-height: 400px;
  overflow-y: auto;
}

/* Discord Status Colors */
.status-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  z-index: 2;
}

.status-badge.online {
  background-color: #3ba55c;
}

.status-badge.idle {
  background-color: #faa81a;
}

.status-badge.dnd {
  background-color: #ed4245;
}

.status-badge.offline {
  background-color: #747f8d;
}

.status-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-icon.online {
  background-color: #3ba55c;
}

.status-icon.idle {
  background-color: #faa81a;
}

.status-icon.dnd {
  background-color: #ed4245;
}

.status-icon.offline {
  background-color: #747f8d;
}

/* Discord Widget specific styling */
.discord-presence .presence-header {
  position: relative;
  background: #ffffff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-presence .avatar-container {
  position: relative;
  width: 40px;
  height: 40px;
}

.discord-presence .avatar {
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  width: 40px;
  height: 40px;
}

.discord-presence .status {
  font-size: 10px;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0;
}

/* Windows */
.window {
  position: absolute;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 1px 1px 0 #000000;
  min-width: 200px;
  min-height: 100px;
  z-index: 10;
}

.window.active {
  z-index: 90;
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: calc(100% - 320px) !important;
  height: calc(100% - 40px) !important;
}

.window.minimized {
  display: none;
}

/* Title Bar */
.title-bar {
  background: linear-gradient(to right, #000080, #1084d0);
  color: white;
  padding: 2px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.title-bar-text {
  font-weight: bold;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.title-bar-controls {
  display: flex;
  gap: 2px;
}

.title-bar-controls button {
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  width: 16px;
  height: 14px;
  font-size: 8px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-bar-controls button:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

/* Social Links - Clean and Simple */
.social-links-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.social-link {
  display: flex;
  align-items: center;
  padding: 8px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #ffffff;
  cursor: pointer;
}

.social-link:hover {
  background: #e0e8ff;
}

.social-link i {
  font-size: 24px;
  margin-right: 12px;
  width: 32px;
  text-align: center;
}

.social-link.discord i {
  color: #5865F2;
}

.social-link.steam i {
  color: #171a21;
}

.social-link.instagram i {
  color: #E1306C;
}

.social-link.twitter i {
  color: #1DA1F2;
}

.link-info {
  flex: 1;
}

.link-name {
  font-weight: bold;
  font-size: 12px;
  color: #000;
  margin-bottom: 2px;
}

.link-value {
  color: #404040;
  font-size: 11px;
  font-family: 'MS Sans Serif', monospace;
}

.social-link-actions {
  display: flex;
  gap: 4px;
}

.copy-button, .open-button {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  font-family: 'MS Sans Serif', sans-serif;
}

.copy-button:active, .open-button:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

/* Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #c0c0c0;
  border-top: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  display: flex;
  align-items: center;
  padding: 2px;
  z-index: 1000;
  gap: 2px;
}

.start-button {
  background: #008080;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 2px 12px;
  height: 32px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'MS Sans Serif', sans-serif;
  color: white;
  text-shadow: 1px 1px 0 #000000;
  min-width: 80px;
  position: relative;
}

.start-button:active {
  border-color: #808080 #ffffff #ffffff #808080;
  background: #006666;
}

.start-button::before {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M0 0h11.377v11.372H0zm0 12.628h11.377V24H0zm12.621 0H24V24H12.621zm0-11.377V0H24v11.377H12.621"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 4px;
  filter: drop-shadow(1px 1px 0 #000000);
}

.start-button span {
  margin-top: 1px;
}

.taskbar-items {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
}

.taskbar-item {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 2px 8px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  min-width: 120px;
  font-size: 11px;
  white-space: nowrap;
}

.taskbar-item.active {
  border-color: #808080 #ffffff #ffffff #808080;
  background: #ffffff;
}

.taskbar-item i {
  font-size: 14px;
}

/* System Tray - Simple Time Display */
.system-tray {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 2px 6px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 70px;
}

.tray-icons {
  display: flex;
  gap: 4px;
  margin-right: 6px;
  padding-right: 6px;
  border-right: 1px solid #808080;
}

.tray-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.tray-icon i {
  font-size: 14px;
  color: #000;
}

.tray-icon::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffe1;
  border: 1px solid #000;
  padding: 2px 4px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  margin-bottom: 4px;
  z-index: 10000;
}

.tray-icon:hover::after {
  opacity: 1;
}

/* Time Display - Simple and Clickable */
.datetime {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: #000;
  padding: 4px 8px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  cursor: pointer;
  min-width: 70px;
  height: 24px;
}

.datetime:hover {
  background: #dfdfdf;
}

.datetime:active {
  border-color: #ffffff #808080 #808080 #ffffff;
  background: #a0a0a0;
}

#clock {
  font-weight: bold;
}

/* Copy confirmation */
.copy-confirmation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 8px 16px;
  font-weight: bold;
  z-index: 2000;
  display: none;
}

.copy-confirmation.visible {
  display: block;
}

/* Simple Button Styles */
.field-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.field-row button {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 6px 12px;
  font-size: 11px;
  cursor: pointer;
  font-family: 'MS Sans Serif', sans-serif;
  flex: 1;
}

.field-row button:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .desktop-icons {
    width: calc(100% - 20px);
    padding: 10px;
    gap: 10px;
  }
  
  .discord-widget {
    width: 240px;
    right: 10px;
    top: 10px;
  }
  
  .window.maximized {
    width: 100% !important;
  }
  
  .rainbow-text {
    font-size: 12vw;
  }
  
  .taskbar {
    height: 36px;
  }
  
  .start-button,
  .taskbar-item,
  .system-tray {
    height: 28px;
  }
}