/* ---------------------------------------------------------
   QUANTUM CORE (Variables + Resets)
   --------------------------------------------------------- */
:root {
  --bg-0: #010409;
  --bg-1: #0A0F1A;
  --bg-2: #111827;
  --glass: rgba(255,255,255,0.06);

  --accent-1: #3B82F6;
  --accent-2: #60A5FA;
  --accent-3: #93C5FD;

  --text-1: #F8FAFC;
  --text-2: #CBD5E1;
  --text-3: #64748B;

  --border: rgba(148,163,184,0.18);
  --shadow-1: 0 20px 60px rgba(0,0,0,0.55);

  --radius: 18px;
  --transition: 0.25s ease;
}

/* GLOBAL RESET */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
}

/* ---------------------------------------------------------
   PAGE BACKGROUND
   --------------------------------------------------------- */
body.dashboard-body {
  background: var(--bg-0);
  color: var(--text-1);
}

/* ---------------------------------------------------------
   MAIN CONTENT WRAPPER
   --------------------------------------------------------- */
.main-content {
  margin-left: 0;
  padding: 40px;
}

/* ---------------------------------------------------------
   PAGE WRAPPER
   --------------------------------------------------------- */
.doc-container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding-top: 110px;
    padding-bottom: 40px;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
.doc-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fade-in 0.6s ease;
}

.doc-header h1 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.doc-header p {
    font-size: 17px;
    color: var(--text-2);
    margin-top: 6px;
}

/* ---------------------------------------------------------
   CARDS
   --------------------------------------------------------- */
.card.doc-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(22px);
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-1);
    animation: fade-in-up 0.6s ease;
}

.card.doc-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
}

.sub {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 14px;
}

.section-title {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 18px;
}

/* ---------------------------------------------------------
   INPUTS
   --------------------------------------------------------- */
.doc-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-1);
    font-size: 15px;
    margin-bottom: 16px;
    backdrop-filter: blur(14px);
    transition: var(--transition);
}

.doc-input:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 14px rgba(96,165,250,0.4);
}

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.full-btn {
    width: 100%;
    margin-top: 20px;
}

/* ---------------------------------------------------------
   OUTPUT AREAS
   --------------------------------------------------------- */
.doc-output {
    white-space: pre-wrap;
    color: var(--text-1);
    line-height: 1.55;
    font-size: 15px;
}

/* ---------------------------------------------------------
   LOADER (Quantum Orbit)
   --------------------------------------------------------- */
.quantum-orbit {
    width: 40px;
    height: 40px;
    border: 4px solid var(--accent-2);
    border-top-color: transparent;
    border-radius: 50%;
    animation: orbit 0.9s linear infinite;
    margin: 0 auto;
}

@keyframes orbit {
    to { transform: rotate(360deg); }
}

.doc-loader {
    margin: 20px 0;
    text-align: center;
}

/* ---------------------------------------------------------
   ANIMATIONS
   --------------------------------------------------------- */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* ---------------------------------------------------------
   MOBILE RESPONSIVENESS
   --------------------------------------------------------- */
@media (max-width: 768px) {
    .doc-header h1 {
        font-size: 32px;
    }

    .card.doc-card {
        padding: 20px;
    }

    .doc-input {
        font-size: 14px;
    }
}

/* ---------------------------------------------------------
   TOP NAV — Quantum UI (EXACT COPY)
   --------------------------------------------------------- */
.top-nav {
  width: 100%;
  height: 64px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-1);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-3);
}

.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-1);
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
}

/* HAMBURGER */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 3px;
}

/* MOBILE MENU */
.mobile-top-menu {
  display: none;
  flex-direction: column;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  margin: 10px 20px;
}

.mobile-top-menu.show {
  display: flex !important;
}

.mobile-top-menu a {
  padding: 12px 0;
  color: var(--text-2);
  text-decoration: none;
  font-size: 16px;
}

/* RESPONSIVE NAV */
@media (max-width: 900px) {
  .nav-right { display: none; }
  #hamburger-menu { display: none !important; }
  .hamburger { display: flex !important; }
}

@media (max-width: 480px) {
  .nav-title { font-size: 1.2rem; }
  .nav-avatar { width: 32px; height: 32px; }
}
