:root {
  --panel: #0b1220;
  --panel-alt: #0d1625;
  --muted: #9aa7b2;
  --accent: #4f46e5;
  --radius: 12px;

  font-family: imAVariable, Inter, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

/* ===================== BODY ===================== */

body {
  background: none;
  color: #e6eef6;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ===================== SHELL ===================== */

.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  width: 100vw;
  background: var(--panel);
}

/* ===================== SIDEBAR ===================== */

nav.left {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  background: var(--panel);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  width: 55px;
  margin: 0 auto 20px;
}

.logo img {
  width: 100%;
  height: auto;
}

.navigationTop,
.navigationBottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.navigationItem {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 183, 255, 0.018);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.navigationItem:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.spacer {
  flex: 1;
}

/* ===================== MAIN CONTENT ===================== */

.main {
  display: flex;
  flex-direction: column;
  background: var(--panel-alt);
  height: 100%;
  overflow: hidden;
}

header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.pageTitle {
  display: flex;
  gap: 20px;
}

.account {
  text-align: right;
}

.account #name {
  font-weight: 700;
  color: white;
}

.account #email {
  font-size: 13px;
  color: var(--muted);
}

/* ===================== CONTENT AREA =================** */

section {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}

.linkUnderline {
  color: rgba(234, 240, 255, 0.6);
  text-decoration: underline;
  font-weight: 600;
}

/* ===================== BUTTONS ===================== */

button {
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

/* ===================== MESSAGES ===================== */

.message {
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-weight: 600;
}

.message.success {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.25);
}

.message.error {
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.25);
}

/* ===================== LOADING ===================== */

.loading {
  background: #b3c7e6 !important;
  color: #fff !important;
  cursor: wait !important;
  position: relative;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.loading::after {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  animation: spinnerRotate 0.8s linear infinite;
}

#loadingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 26, 0.965);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#loadingOverlay.active {
  opacity: 1;
  pointer-events: all;
}

.loadingSpinner {
  width: 55px;
  height: 55px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
  to {
    transform: rotate(360deg);
  }
}

/* ===================== WORK IN PROGRESS ===================== */

.notice {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: 20px 40px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 992px) {
  .shell {
    grid-template-columns: 220px 1fr;
  }

  section {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  nav.left {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
  }

  .navigationTop,
  .navigationBottom {
    flex-direction: row;
  }

  header.top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .account {
    text-align: left;
    width: 100%;
  }
}

.navigationItem[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
  background: rgba(255, 255, 255, 0.08);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8ab4ff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


.pageSection {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pageCard {
  background: #0f1828;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.sectionTitle {
  margin: 0 0 14px 0;
  text-align: center;
}

.hidden {
  display: none;
}

.navigationItem--strong {
  font-weight: bold;
}

.notice--warning {
  color: #ffc3c3;
  border: 1px solid rgba(255, 116, 116, 0.35);
  background: rgba(255, 116, 116, 0.12);
}

