/* AeroCloud — aqua glass theme, written from scratch (no image assets) */

:root {
  --glass: linear-gradient(rgba(37, 209, 248, 0.28), rgba(0, 208, 255, 0.38));
  --glass-glow: inset 0 0 20px rgba(148, 246, 255, 0.4), 0 0 20px rgba(0, 0, 0, 0.2), 0 0 10px 2px rgba(255, 255, 255, 0.4);
  --glass-glow-hover: inset 0 0 20px rgba(148, 246, 255, 0.5), 0 8px 12px rgba(0, 0, 0, 0.2), 0 0 12px 3px rgba(255, 255, 255, 0.8);
  --gloss: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.55) 25%, rgba(255, 255, 255, 0.25) 65%, rgba(255, 255, 255, 0.05) 100%);
  --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 255, 255, 0.55);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  background: #1b8fe0;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
  flex: none;
}

/* ---------- background ---------- */

.main-container {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  background: linear-gradient(180deg, #1478d4 0%, #3aaef0 38%, #8fe0ff 66%, #d3f8ff 80%);
}

.main-container::before {            /* sun glow */
  content: "";
  position: absolute;
  top: -140px;
  right: -60px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.35) 40%, transparent 70%);
  pointer-events: none;
}

.hills {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -16vh;
  height: 40vh;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(ellipse at 50% 0%, #a4f26f 0%, #4fba2d 55%, #2a8a1c 100%);
  box-shadow: inset 0 14px 40px rgba(255, 255, 255, 0.55);
}

.hills::before {
  content: "";
  position: absolute;
  left: -25%;
  bottom: 0;
  width: 70%;
  height: 80%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(ellipse at 50% 0%, #7fdc4c 0%, #3ea524 70%);
  opacity: 0.85;
}

.circle, .circle2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
}
.circle  { width: 40rem; height: 40rem; background: rgba(0, 251, 255, 0.45); filter: blur(6rem); left: 5%;  top: 10%; animation: drift1 32s ease-in-out infinite; }
.circle2 { width: 36rem; height: 36rem; background: rgba(30, 128, 255, 0.45); filter: blur(5rem); right: 5%; top: 30%; animation: drift2 38s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0, 0); } 33% { transform: translate(35vw, 12vh); } 66% { transform: translate(10vw, -10vh); } }
@keyframes drift2 { 0%,100% { transform: translate(0, 0); } 33% { transform: translate(-30vw, -8vh); } 66% { transform: translate(-8vw, 14vh); } }

/* Custom photo background: app.js adds .has-bg when background.jpg/.webp/.png exists.
   The light tint behind it keeps the white text readable; remove the first layer to go untinted. */
.has-bg .main-container {
  background:
    linear-gradient(rgba(0, 30, 70, 0.18), rgba(0, 30, 70, 0.18)),
    var(--bg-url) center / cover no-repeat;
}
.has-bg .main-container::before,
.has-bg .hills { display: none; }

/* ---------- layout ---------- */

.stage {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2rem;
  width: min(1180px, 94vw);
  height: min(41rem, calc(100vh - 6rem));
  margin-top: 1.5rem;
}

.main-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ---------- glass surfaces ---------- */

.side-bar,
.main-box {
  position: relative;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid #fff;
  box-shadow: var(--glass-glow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.side-bar {
  flex: 0 0 14rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.5rem 1.2rem 1.2rem;
  border-radius: 2.2rem;
  text-align: center;
}

.side-bar::after {                    /* top gloss */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -15%;
  height: 32%;
  background: var(--gloss);
  opacity: 0.55;
  pointer-events: none;
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe { 0%,100% { opacity: 0.6; } 50% { opacity: 0.3; } }

.side-bar > * { position: relative; z-index: 1; }

.main-box {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  padding: 1.2rem 2rem 1rem;
}

#view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 0.6rem;
}

#view::-webkit-scrollbar { width: 6px; }
#view::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.55); border-radius: 10px; }
#view::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.2); border-radius: 10px; margin: 0.5rem 0; }

.page { animation: pageIn 0.25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- sidebar bits ---------- */

.orb {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 1.5rem;
  background: linear-gradient(to top, rgba(0, 183, 255, 0.25) 40%, rgba(255, 255, 255, 0.65) 95%);
  border: 2px solid #fff;
  box-shadow: 0 4px 8px 2px rgba(0, 0, 0, 0.12), inset 0 0 14px rgba(148, 246, 255, 0.5);
  animation: bob 4s ease-in-out infinite;
}
.orb .icon { width: 2.8rem; height: 2.8rem; stroke-width: 1.7; }

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.side-title {
  font-size: 1.3rem;
  text-shadow: var(--text-shadow);
}
.side-title small { font-size: 0.7rem; opacity: 0.85; vertical-align: super; }

.side-divider, .divider {
  width: 100%;
  height: 1px;
  border-radius: 100%;
  background: rgba(231, 255, 253, 0.6);
  box-shadow: inset 0 0 20px rgba(148, 246, 255, 0.5), 0 6px 10px rgba(0, 0, 0, 0.18), 0 0 10px 2px rgba(255, 255, 255, 0.5);
}
.divider { margin: 0.8rem 0 1.3rem; }

.button-container { display: flex; flex-direction: column; gap: 0.9rem; width: 100%; }

.skeu-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 2.7rem;
  padding: 0 0.9rem;
  overflow: hidden;
  border-radius: 0.7rem;
  border: 1px solid #fff;
  background: rgba(180, 255, 248, 0.08);
  box-shadow: inset 0 0 20px rgba(148, 246, 255, 0.4), 0 6px 10px rgba(0, 0, 0, 0.2), 0 0 10px 2px rgba(255, 255, 255, 0.4);
  transition: 0.3s;
  user-select: none;
}
.skeu-button::after {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 58%;
  border-radius: inherit;
  background: var(--gloss);
  pointer-events: none;
}
.skeu-button > * { position: relative; z-index: 1; }
.skeu-button span { font-size: 1rem; font-weight: 500; text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5); }
.skeu-button:hover { background: rgba(180, 255, 248, 0.45); box-shadow: var(--glass-glow-hover); transform: translateY(-1px); }
.skeu-button.active { background: rgba(120, 235, 255, 0.55); }

.subtext {
  margin-top: auto;
  font-size: 0.8rem;
  line-height: 1.2rem;
  opacity: 0.65;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: 0.2s;
}
.subtext:hover { opacity: 1; }

/* ---------- tabs ---------- */

.tabs {
  position: absolute;
  top: -2.1rem;
  left: 1.5rem;
  display: flex;
  gap: 0.4rem;
}

.tab {
  display: flex;
  align-items: center;
  height: 2.1rem;
  padding: 0 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px 8px 0 0;
  border: 1px solid #fff;
  border-bottom: none;
  background: rgba(116, 213, 255, 0.4);
  box-shadow: inset 0 0 10px rgba(148, 246, 255, 0.4), 0 0 10px rgba(0, 0, 0, 0.15);
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.2s;
  user-select: none;
}
.tab:hover { transform: translateY(-3px); background: rgba(116, 213, 255, 0.55); }
.tab.active { font-weight: 700; background: rgba(116, 213, 255, 0.75); transform: translateY(-3px); }

/* ---------- page content ---------- */

.page-title {
  margin: 0;
  text-align: center;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 14px rgba(255, 255, 255, 1);
  -webkit-box-reflect: below -1.2rem linear-gradient(transparent 60%, rgba(0, 0, 0, 0.35));
}

.text {
  font-size: 1.1rem;
  line-height: 1.65;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 1px 6px rgba(0, 0, 0, 0.25), 0 0 12px rgba(255, 255, 255, 0.9);
}
.text p { margin: 0 0 1rem; }

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.hero .orb { width: 6.5rem; height: 6.5rem; flex: none; }
.hero .orb .icon { width: 3.6rem; height: 3.6rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(234, 255, 217, 0.85), rgba(196, 244, 160, 0.85));
  border: 1px solid #fff;
  color: #1f6b0d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(40, 120, 20, 0.3);
}
.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #7cf04a 40%, #27a800);
  box-shadow: 0 0 8px #7cf04a;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.large-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 4rem;
  padding: 0 1.2rem;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid #fff;
  background: rgba(0, 221, 255, 0.4);
  box-shadow: inset 0 0 20px rgba(148, 246, 255, 0.4), 0 8px 10px rgba(0, 0, 0, 0.2), 0 0 10px 2px rgba(255, 255, 255, 0.4);
  transition: 0.3s;
  user-select: none;
}
.large-button::after {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 58%;
  border-radius: inherit;
  background: var(--gloss);
  opacity: 0.7;
  pointer-events: none;
}
.large-button > * { position: relative; z-index: 1; }
.large-button .icon { width: 2rem; height: 2rem; }
.large-button .label { font-weight: 500; line-height: 1.15; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.8); }
.large-button .sub { display: block; font-size: 0.8rem; font-weight: 400; }
a.large-button:hover { background: rgba(142, 240, 255, 0.6); box-shadow: var(--glass-glow-hover); transform: translateY(-2px); }
.large-button.disabled { opacity: 0.85; cursor: not-allowed; }
.large-button.disabled:hover { background: rgba(240, 150, 150, 0.45); }

.card {
  position: relative;
  overflow: hidden;
  margin: 0 0 1rem;
  padding: 1rem 1.3rem;
  border-radius: 1rem;
  border: 1px solid #fff;
  background: rgba(0, 221, 255, 0.28);
  box-shadow: inset 0 0 20px rgba(148, 246, 255, 0.4), 0 6px 10px rgba(0, 0, 0, 0.15);
}
.card::after {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 45%;
  background: var(--gloss);
  opacity: 0.35;
  pointer-events: none;
}
.card > * { position: relative; z-index: 1; }
.card h3 { margin: 0 0 0.3rem; font-size: 1.15rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.card p { margin: 0; font-size: 1rem; line-height: 1.5; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }

.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  max-width: 24rem;
  margin: 0.5rem auto 0;
}
.form .text-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font: inherit;
  color: #fff;
  border-radius: 0.6rem;
  border: 1px solid #fff;
  background: rgba(180, 255, 248, 0.08);
  box-shadow: inset 0 0 20px rgba(148, 246, 255, 0.25);
}
.form .text-input::placeholder { color: rgba(255, 255, 255, 0.7); }
.form .text-input:disabled { opacity: 0.7; cursor: not-allowed; }
.form .large-button { width: 100%; justify-content: center; height: 3.2rem; }

.dropzone {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  min-height: 11rem;
  padding: 1.5rem;
  text-align: center;
  border-radius: 1.2rem;
  border: 2px dashed rgba(255, 255, 255, 0.9);
  background: rgba(180, 255, 248, 0.12);
  box-shadow: inset 0 0 25px rgba(148, 246, 255, 0.3);
  opacity: 0.85;
}
.dropzone .icon { width: 3rem; height: 3rem; }

/* ---------- small screens ---------- */

@media (max-width: 768px) {
  .side-bar { display: none; }
  .main-container { align-items: flex-start; padding: 1rem 0; }
  .stage { height: calc(100vh - 2rem); margin-top: 0; }
  .tabs { position: static; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 0.7rem; }
  .tab, .tab.active, .tab:hover { border-bottom: 1px solid #fff; border-radius: 8px; transform: none; }
  .main-box { padding: 1rem 1.1rem; border-radius: 1.5rem; }
  .page-title { font-size: 1.8rem; }
  .hero { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
