/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

/* Body Styling */
body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  overflow: hidden;
  color: white;
}

/* Updated color scheme to match teal palette */
:root {
  --primary-teal: #4cc3bc;
  --dark-teal: #2a817d;
  --deep-teal: #1d4948;
  --light-teal: #5dd4cd;
}

/* Updated Boot Screen Styles */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('1dffb86052042dfaf946a9fe383d8bf0.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.boot-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(42, 129, 125, 0.4), rgba(29, 73, 72, 0.6));
  backdrop-filter: blur(10px);
}

.light-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3CradialGradient id='rg' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.2'/%3E%3Cstop offset='100%25' stop-color='%23ffffff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23rg)'/%3E%3C/svg%3E") center/cover;
  opacity: 0.5;
  animation: rotate 120s linear infinite;
}

.login-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 30px;
  width: 400px;
  box-shadow: 
    0 0 40px rgba(255, 255, 255, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}

.user-avatar {
  width: 128px;
  height: 128px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.login-button {
  background: linear-gradient(to bottom, var(--primary-teal) 0%, var(--dark-teal) 100%);
  border: none;
  color: white;
  padding: 12px;
  border-radius: 4px;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button:hover {
  background: linear-gradient(to bottom, var(--light-teal) 0%, var(--primary-teal) 100%);
  box-shadow: 0 0 15px rgba(76, 195, 188, 0.4);
}

.windows-logo {
  position: absolute;
  bottom: 20px;
  left: 20px;
  opacity: 0.7;
}

.power-options {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.power-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.power-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Progress Bar Styles */
.boot-progress {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--primary-teal);
  animation: progress 3s ease-in-out forwards;
}

/* Start OS Button */
.start-os-btn {
  padding: 12px 24px;
  background: linear-gradient(to bottom, var(--primary-teal) 0%, var(--dark-teal) 100%);
  border: none;
  border-radius: 20px;
  color: white;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(76, 195, 188, 0.3);
}

.start-os-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(76, 195, 188, 0.5);
}

/* Keyframes */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Enhanced Desktop Background */
@keyframes backgroundFade {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Desktop */
.desktop {
  width: 100vw;
  height: 100vh;
  background: url('1dffb86052042dfaf946a9fe383d8bf0.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.desktop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(42, 129, 125, 0.7),
    rgba(29, 73, 72, 0.8)
  );
  animation: backgroundFade 15s ease infinite;
}

/* Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(76, 195, 188, 0.2);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  padding: 0 10px;
  justify-content: space-between;
  border-top: 1px solid var(--primary-teal);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(to bottom, var(--primary-teal) 0%, var(--dark-teal) 100%);
  border: none;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.start-btn:hover {
  background: linear-gradient(to bottom, var(--light-teal) 0%, var(--primary-teal) 100%);
}

.saturn-taskbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
}

.saturn-taskbar-logo svg {
  filter: drop-shadow(0 0 2px rgba(76, 195, 188, 0.5));
}

.time {
  color: white;
  font-size: 12px;
  padding: 5px 15px;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  font-weight: bold;
}

/* Desktop Icons */
.icons {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 110px);
  gap: 20px;
  position: relative;
}

.desktop-icon {
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 15px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(76, 195, 188, 0.15);
  border: 1px solid var(--primary-teal);
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.2),
    0 0 5px rgba(255, 255, 255, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
}

.desktop-icon:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.desktop-icon .app-icon {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.3s ease;
}

.desktop-icon .app-icon svg {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  transform: translateZ(10px);
}

.desktop-icon span {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 
    0 1px 1px rgba(0, 0, 0, 0.6),
    0 0 5px rgba(255, 255, 255, 0.5);
  transform: translateZ(5px);
}

.desktop-icon:hover {
  background: rgba(76, 195, 188, 0.25);
  border: 1px solid var(--light-teal);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(255, 255, 255, 0.3),
    inset 0 0 25px rgba(255, 255, 255, 0.2);
}

.desktop-icon:hover .app-icon {
  transform: translateY(-2px) rotateX(10deg);
}

.desktop-icon:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.2),
    0 0 5px rgba(255, 255, 255, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Enhanced Start Menu */
.start-menu {
  position: fixed;
  bottom: 40px;
  left: 0;
  width: 300px;
  background: rgba(29, 73, 72, 0.9);
  border: 2px solid var(--primary-teal);
  box-shadow: 0 0 20px rgba(76, 195, 188, 0.3);
  backdrop-filter: blur(20px);
  border-radius: 15px 15px 0 0;
  display: none;
}

.user-info {
  padding: 20px;
  background: linear-gradient(to right, var(--dark-teal), var(--deep-teal));
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  border-radius: 13px 13px 0 0;
}

/* Enhanced Start Menu Items */
.menu-item {
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--primary-teal);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.menu-item:hover {
  background: rgba(76, 195, 188, 0.2);
  border: 1px solid var(--primary-teal);
  box-shadow: 0 0 15px rgba(76, 195, 188, 0.2),
              inset 0 0 20px rgba(76, 195, 188, 0.1);
}

/* Update context menu styling */
.context-menu {
  position: fixed;
  background: rgba(29, 73, 72, 0.8);
  border: 2px solid var(--primary-teal);
  box-shadow: 0 0 20px rgba(76, 195, 188, 0.3);
  backdrop-filter: blur(20px);
  border-radius: 10px;
  display: none;
  min-width: 200px;
  padding: 5px 0;
}

/* Saturn Watermark Logo */
.saturn-watermark {
  position: fixed;
  top: 20px;
  right: 20px;
  opacity: 0.15;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(76, 195, 188, 0.5));
  animation: fadeInOut 8s infinite;
}

/* Brand Text */
.brand-text {
  position: fixed;
  bottom: 60px;
  right: 20px;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: white;
  opacity: 0.15;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(76, 195, 188, 0.5);
  animation: fadeInOut 8s infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.2; }
}

/* Screen blackout effect */
.blackout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10000;
}

.blackout.active {
  opacity: 1;
}