/* macOS Web Experience - Main Styles */

:root {
  --bg-peal: rgba(255, 255, 255, 0.1);
  /* non-blurred fallback */
  --dock-bg: rgba(20, 20, 20, 0.3);
  --menu-bg: rgba(20, 20, 20, 0.3);
  --window-bg: rgba(30, 30, 32, 0.85);
  --window-header: #2d2d2d;
  --text-color: #ffffff;
  --accent: #007aff;
  --system-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body,
html {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: var(--system-font);
  color: var(--text-color);
  /* Default Wallpaper - Monterey style */
  background: linear-gradient(200deg, #a729f5, #5823d6, #092775, #1d6f9c);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  cursor: default;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* --- Boot Screen --- */
#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-out;
}

.apple-logo {
  color: white;
  font-size: 80px;
  margin-bottom: 40px;
}

.loading-bar {
  width: 200px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: #fff;
  width: 0%;
  border-radius: 3px;
  transition: width 3s ease-in-out;
}

/* --- UI Layout --- */
#desktop {
  width: 100%;
  height: 100%;
  position: relative;
}

/* --- Dialog Windows --- */
.dialog-window {
  position: absolute;
  background: rgba(40, 40, 42, 0.95);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 100000;
  min-width: 320px;
  max-width: 500px;
  animation: dialogAppear 0.2s ease;
}

@keyframes dialogAppear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dialog-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: move;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dialog-header:has(.dialog-title:empty) {
  padding: 12px 20px;
  border-bottom: none;
}

.dialog-traffic-lights {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dialog-traffic-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: transparent;
  transition: all 0.15s ease;
}

.dialog-traffic-btn.close {
  background: #ff5f57;
}

.dialog-traffic-btn.minimize {
  background: #febc2e;
}

.dialog-traffic-btn.maximize {
  background: #28c840;
}

.dialog-traffic-btn:hover {
  color: rgba(0, 0, 0, 0.5);
}

.dialog-traffic-btn.close:hover::before {
  content: '×';
}

.dialog-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex: 1;
  text-align: center;
  margin-right: 65px; /* Compensate for traffic lights on the left */
}

.dialog-title:empty {
  display: none;
}

.dialog-body {
  padding: 20px;
  color: #ccc;
  font-size: 13px;
  line-height: 1.6;
}

.dialog-footer {
  padding: 12px 20px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dialog-btn {
  padding: 7px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--system-font);
  background: rgba(60, 60, 62, 0.9);
  color: #fff;
  min-width: 70px;
}

.dialog-btn:hover {
  background: rgba(80, 80, 82, 1);
}

.dialog-btn-primary {
  background: var(--accent);
  color: #fff;
}

.dialog-btn-primary:hover {
  background: #0066dd;
}

.dialog-btn:active {
  transform: scale(0.97);
}

.dialog-btn-danger {
  background: #ff3b30;
  color: #fff;
}

.dialog-btn-danger:hover {
  background: #e02d22;
}

/* Dialog content styles */
.dialog-info-table {
  width: 100%;
  border-spacing: 0;
  background: rgba(60, 60, 62, 0.4);
  border-radius: 8px;
  padding: 12px;
}

.dialog-info-table tr td {
  padding: 6px 8px;
}

.dialog-info-table tr td:first-child {
  color: #888;
  width: 35%;
  font-size: 12px;
}

.dialog-info-table tr td:last-child {
  color: #fff;
  font-weight: 500;
  font-size: 12px;
}

.dialog-icon {
  text-align: center;
  margin-bottom: 15px;
}

.dialog-icon i {
  font-size: 48px;
  color: var(--accent);
}

