/* Windows 11 Setup / Install screens */
.win11-screen {
  width: 100%;
  height: 100%;
  position: relative;
  background: #0c0c0c;
  color: #fff;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
}

.win11-bloom {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(0, 103, 192, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 85%, rgba(76, 29, 149, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(0, 120, 212, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.win11-logo-corner {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  opacity: 0.9;
  z-index: 2;
}

.win11-loading-center,
.win11-install-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 2rem;
}

.win11-status-text {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.5rem;
  text-align: center;
}

.win11-spin-dots {
  position: relative;
  width: 36px;
  height: 36px;
}

.win11-spin-dots.large {
  width: 44px;
  height: 44px;
}

.win11-spin-dots span {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  margin: -2.5px 0 0 -2.5px;
  animation: win11-dot-spin 1.6s linear infinite;
  opacity: 0;
}

.win11-spin-dots.large span {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
}

.win11-spin-dots span:nth-child(1) { animation-delay: 0s; }
.win11-spin-dots span:nth-child(2) { animation-delay: 0.16s; }
.win11-spin-dots span:nth-child(3) { animation-delay: 0.32s; }
.win11-spin-dots span:nth-child(4) { animation-delay: 0.48s; }
.win11-spin-dots span:nth-child(5) { animation-delay: 0.64s; }

@keyframes win11-dot-spin {
  0% { transform: rotate(0deg) translateY(-16px); opacity: 1; }
  80% { opacity: 0.3; }
  100% { transform: rotate(360deg) translateY(-16px); opacity: 0; }
}

.win11-spin-dots.large span {
  animation-name: win11-dot-spin-lg;
}

@keyframes win11-dot-spin-lg {
  0% { transform: rotate(0deg) translateY(-20px); opacity: 1; }
  80% { opacity: 0.3; }
  100% { transform: rotate(360deg) translateY(-20px); opacity: 0; }
}

.win11-setup-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 6rem;
  z-index: 1;
  overflow-y: auto;
}

.win11-setup.classic-mode .win11-setup-body {
  background: rgba(0, 0, 0, 0.5);
}

.win11-step {
  width: 100%;
  max-width: 560px;
  animation: win11-fade-in 0.25s ease;
}

.win11-step-inner { width: 100%; }
.win11-step-narrow { max-width: 440px; margin: 0 auto; }

.win11-step-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

@keyframes win11-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.win11-heading {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.win11-subtext {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.win11-field { margin-bottom: 1.25rem; }

.win11-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.4rem;
}

.win11-select-wrap { position: relative; }

.win11-select {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.65rem 2rem 0.65rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: 2px;
  cursor: pointer;
}

.win11-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.win11-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.65rem 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.win11-input::placeholder { color: rgba(255, 255, 255, 0.35); }

.win11-install-now-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.win11-install-now-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.win11-install-now-icon { display: flex; align-items: center; }

.win11-edition-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
}

.win11-edition-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.win11-edition-item:hover { background: rgba(255, 255, 255, 0.06); }

.win11-edition-item.selected {
  background: rgba(0, 120, 212, 0.25);
  border-color: rgba(0, 120, 212, 0.6);
}

.win11-edition-item input { display: none; }

.win11-edition-radio {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.15rem;
  position: relative;
}

.win11-edition-item.selected .win11-edition-radio { border-color: #60cdff; }

.win11-edition-item.selected .win11-edition-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #60cdff;
  border-radius: 50%;
}

.win11-edition-text { display: flex; flex-direction: column; gap: 0.15rem; }
.win11-edition-text strong { font-weight: 600; font-size: 0.95rem; }
.win11-edition-text small { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

.win11-eula {
  height: 200px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.win11-eula p { margin-bottom: 0.65rem; }

.win11-checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.win11-checkbox input { display: none; }

.win11-checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 3px;
  flex-shrink: 0;
  position: relative;
}

.win11-checkbox input:checked + .win11-checkmark {
  background: #0067c0;
  border-color: #0067c0;
}

.win11-checkbox input:checked + .win11-checkmark::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
}

.win11-type-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.win11-type-card {
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.win11-type-card:hover { background: rgba(255, 255, 255, 0.09); }

.win11-type-card.selected {
  background: rgba(0, 120, 212, 0.2);
  border-color: #60cdff;
}

.win11-type-icon {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  opacity: 0.7;
}

.win11-type-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.win11-type-card small {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.win11-setup-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  z-index: 2;
}

.win11-setup-nav.hidden { display: none; }

.win11-link-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.win11-link-btn:hover { color: #fff; }
.win11-link-btn.hidden { visibility: hidden; }

.win11-nav-buttons {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.win11-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-family: inherit;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s;
}

.win11-btn.primary {
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.85);
}

.win11-btn.primary:hover:not(:disabled) { background: #fff; }

.win11-btn.primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.win11-btn.ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.25);
}

.win11-btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }

.win11-btn.hidden { display: none; }

/* Classic WinPE drive dialog */
.win11-classic-dialog {
  width: min(640px, 94vw);
  background: #f0f0f0;
  color: #1a1a1a;
  border: 1px solid #888;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.win11-classic-titlebar {
  background: linear-gradient(180deg, #0078d4 0%, #0067b8 100%);
  color: #fff;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.win11-classic-body {
  padding: 1rem 1.25rem 0.75rem;
  background: #fff;
}

.win11-classic-body h2 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.win11-drive-list {
  list-style: none;
  border: 1px solid #ababab;
  height: 180px;
  overflow-y: auto;
  background: #fff;
  margin-bottom: 0.75rem;
}

.win11-drive-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  user-select: none;
}

.win11-drive-item:hover { background: #e8f4fd; }

.win11-drive-item.selected {
  background: #0078d4;
  color: #fff;
}

.win11-drive-formatted {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #107c10;
  font-weight: 600;
}

.win11-drive-item.selected .win11-drive-formatted { color: #a8f0a8; }
.win11-drive-formatted.hidden { display: none; }

.win11-drive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.win11-classic-btn {
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-family: inherit;
  background: #f0f0f0;
  border: 1px solid #adadad;
  border-radius: 2px;
  cursor: pointer;
  color: #1a1a1a;
}

.win11-classic-btn:hover:not(:disabled) {
  background: #e5f1fb;
  border-color: #0078d4;
}

.win11-classic-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.win11-classic-btn.primary {
  background: #0078d4;
  color: #fff;
  border-color: #0067b8;
  min-width: 75px;
}

.win11-classic-btn.primary:hover:not(:disabled) { background: #006cbd; }

.win11-drive-hint {
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.win11-classic-footer {
  padding: 0.65rem 1.25rem;
  background: #f0f0f0;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: flex-end;
}

.win11-install-percent {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.35rem;
}

.win11-install-steps {
  list-style: none;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.win11-install-steps li { padding: 0.15rem 0; }
.win11-install-steps li.active { color: rgba(255, 255, 255, 0.85); }
.win11-install-steps li.done { color: rgba(96, 205, 255, 0.7); }

.win11-install-bar-wrap {
  width: min(280px, 80vw);
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  margin-top: 1.25rem;
  overflow: hidden;
}

.win11-install-bar {
  height: 100%;
  width: 0%;
  background: #60cdff;
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* Shared loading dots (OOBE) */
.loading-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  margin: 0 4px;
  animation: win11-blink 1.4s infinite both;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes win11-blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}
