*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0d1b2a;
  background-image: url('./img/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.25s ease-in-out;
  position: relative;
  font-family: 'Segoe UI', sans-serif;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-bar {
  width: 260px;
  margin: 0 auto;
}



.desktop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
}

.desktop.visible {
  opacity: 1;
}



.win7-window {
  position: absolute;
  z-index: 10;
  cursor: default;
  min-width: 320px;
}

.win7-window .title-bar {
  cursor: move;
  user-select: none;
}

.win7-window .window-body {
  max-height: 70vh;
  overflow-y: auto;
}

.win7-window .window-body p,
.win7-window .window-body label,
.win7-window .window-body span,
.win7-window .window-body h1,
.win7-window .window-body h2,
.win7-window .window-body h3 {
  color: #222 !important;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  font-size: 11px;
  color: #444;
  border-top: 1px solid #d4d0c8;
  background: linear-gradient(to bottom, #f0f0f0, #e4e4e4);
}

.status-bar-text {
  font-size: 11px;
  color: #444;
}

.welcome-content {
  text-align: center;
}

.welcome-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #a8c8e8;
  margin-bottom: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0fe, #dce8f8);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.welcome-title {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.welcome-title .accent {
  color: #0078d7;
}

.welcome-subtitle {
  font-size: 13px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}

.welcome-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.about-section p {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

.explorer-toolbar {
  margin-bottom: 12px;
}

.explorer-path {
  display: flex;
  align-items: center;
  gap: 8px;
}

.explorer-path label {
  font-size: 12px;
  color: #555;
  white-space: nowrap;
}

.explorer-address {
  flex: 1;
  font-size: 12px;
  font-family: 'Segoe UI', sans-serif;
}

.project-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-screenshot {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #d0d0d0;
  margin-bottom: 12px;
  background: #f0f0f0;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-meta {
  flex: 1;
}

.project-desc {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

.project-properties {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prop-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.prop-row label {
  color: #555;
  font-weight: 600;
  min-width: 80px;
}

.prop-row span {
  color: #333;
}

.status-active {
  color: #2d8a4e;
  font-weight: 600;
}

.project-actions {
  display: flex;
  gap: 8px;
}

.wallpaper-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.wallpaper-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #f8f8f8;
}

.wallpaper-option.active {
  border-color: #0078d7;
  box-shadow: 0 0 0 1px rgba(0, 120, 215, 0.2);
  background: #eef6ff;
}

.wallpaper-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #cfcfcf;
  background: #e7e7e7;
}

.wallpaper-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wallpaper-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.settings-bottom-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #f8f8f8;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.contact-link-row:hover {
  background: #e8f0fe;
  border-color: #a0c4e8;
  color: #0078d7;
}

.contact-link-row svg {
  color: #0078d7;
  flex-shrink: 0;
}

.contact-bottom-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.win7-window fieldset {
  padding: 10px 14px;
}

.win7-window fieldset legend {
  font-weight: 600;
  color: #0078d7;
}

@media (max-width: 768px) {
  body {
    background-position: right center;
  }

  .desktop {
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    gap: 12px;
  }

  .win7-window {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
  }

  .win7-window .title-bar {
    cursor: default;
  }

  .win7-window .window-body {
    max-height: none;
  }

  .explorer-path {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .explorer-address {
    width: 100%;
  }

  .welcome-actions {
    flex-direction: column;
    align-items: center;
  }

  .welcome-actions button {
    width: 100%;
  }

  .contact-bottom-actions {
    flex-direction: column;
  }

  .contact-bottom-actions button {
    width: 100%;
  }

  .settings-bottom-actions {
    flex-direction: column;
  }

  .settings-bottom-actions button {
    width: 100%;
  }
}
