:root {
  --bg1:#5f80ff; 
  --bg2:#3c1ca7; 
  --card:#644fbd2e;
  --card-border:#8a71ff4f; 
  --ink:#eef; 
  --accent:#ffe36a;
  --white:#fff; 
  --inkDim:#cfd6ff9c; 
  --ghost:#ffffff22;
}

/* Base Reset */
* { box-sizing:border-box; }
html, body { height:100%; margin:0; }

body {
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial;
  color: var(--ink);
  background: radial-gradient(1100px 600px at 45% 23%, var(--bg1), transparent),
              radial-gradient(1500px 900px at 84% 20%, var(--bg2), #2b1b8b 60%);
}

/* ─────────────────────────────
   🔹 Top Brand Bar
   ───────────────────────────── */
.topbar {
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 26px; background:transparent;
}
.brand { display:flex; gap:.6rem; align-items:center; font-weight:700; letter-spacing:.4px; }
.logo { display:inline-grid; place-content:center; width:36px; height:36px; border-radius:10px;
  background:linear-gradient(135deg,#ff8b5f,#ff3b6e); color:#fff; font-weight:900; }
.brandname { font-size:20px; }

/* ─────────────────────────────
   🔹 Main Card
   ───────────────────────────── */
.frame {
  max-width:980px; margin:40px auto; padding:30px 28px;
  border-radius:16px; border:1px solid var(--card-border);
  background:var(--card);
  box-shadow:0 30px 120px #00000040 inset, 0 10px 40px #00000045;
}
.hero { text-align:center; transition:opacity .3s ease; }
.company { margin:.2rem 0 1rem; font-size:56px; line-height:1.08; letter-spacing:.6px; }
.tagline { color:var(--inkDim); margin:0 0 24px; }

/* ─────────────────────────────
   🔹 Buttons
   ───────────────────────────── */
.ctaRow { display:flex; gap:12px; justify-content:center; margin-top:8px; flex-wrap:wrap; }
.ctaHero {
  padding:12px 22px; border-radius:28px; font-weight:700; border:0; cursor:pointer;
  color:#1d1743; background:linear-gradient(180deg,#ffe36a,#ffc240);
  box-shadow:0 10px 20px #0000002b; transition:transform .12s ease, box-shadow .2s ease;
}
.ctaHero:hover { transform:translateY(-1px); box-shadow:0 12px 24px #00000035; }
.ctaGhost {
  padding:12px 22px; border-radius:28px; font-weight:700; cursor:pointer;
  color:var(--white); border:1.5px solid #ffffff66; background:transparent;
  backdrop-filter:blur(6px);
}
.ctaGhost:hover { background:var(--ghost); }

/* ─────────────────────────────
   🔹 Upload Result Message
   ───────────────────────────── */
#uploadResult {
  display:none; margin-top:16px; padding:12px 14px; border-radius:10px;
  white-space:normal; text-align:center;
}
#uploadResult.success {
  background:#e7f7ec; color:#136c2e; border:1px solid #b7e2c4;
}
#uploadResult.error {
  background:#fdecea; color:#9f2b24; border:1px solid #f5c2c0;
}

/* ─────────────────────────────
   🔹 Tabs
   ───────────────────────────── */
.tabs {
  display:flex; justify-content:center; gap:10px; margin-bottom:20px;
}
.tabBtn {
  background:transparent; border:1.5px solid var(--card-border);
  color:var(--ink); font-weight:600; border-radius:20px; padding:8px 18px;
  cursor:pointer; transition:all 0.2s ease;
}
.tabBtn.active { background:var(--accent); color:#1d1743; }

/* ─────────────────────────────
   🔹 Upload + History Sections
   ───────────────────────────── */
#uploadSection { margin-top:10px; }

#historySection {
  margin-top:35px;
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:16px;
  box-shadow:inset 0 6px 30px #00000030, 0 8px 30px #00000035;
  padding:20px;
}

/* Section Title */
#historySection h3 {
  text-align:center;
  margin:0 0 18px;
  color:var(--ink);
  font-weight:700;
  letter-spacing:.3px;
}

/* ─────────────────────────────
   🔹 Table-style Layout (No Nested Containers)
   ───────────────────────────── */
.history-wrapper {
  width:100%;
  border-radius:12px;
  overflow:hidden;
}

/* Header Row (Fixed) */
.history-header {
  display:grid;
  grid-template-columns:60% 40%;
  padding:12px 18px;
  color:var(--accent);
  font-weight:700;
  background:linear-gradient(90deg,rgba(120,90,250,0.45),rgba(60,40,180,0.45));
  border-bottom:1px solid rgba(255,255,255,0.2);
  position:sticky;
  top:0;
  z-index:10;
  text-align: left;        /* align text flush with the row data */
  padding-left: 12px;      /* same left padding as rows for perfect alignment */
}

/* Scrollable Rows (only data scrolls) */
.history-body {
  max-height:300px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#a391ff50 transparent;
}

/* Webkit Scrollbar */
.history-body::-webkit-scrollbar { width:8px; }
.history-body::-webkit-scrollbar-thumb {
  background-color:#b6a7ff66; border-radius:6px;
}
.history-body::-webkit-scrollbar-thumb:hover {
  background-color:#d4caffaa;
}

/* Data Rows */
.history-row {
  display:grid;
  grid-template-columns:60% 40%;
  padding:12px 12px;
  color:var(--ink);
  border-bottom:1px solid rgba(255,255,255,0.08);
  transition:background .2s ease;
}
.history-row:hover { background:rgba(255,255,255,0.07); }

.history-col.file { text-align:left; }
.history-col.date { text-align:left; color:var(--ink); }


/* ─────────────────────────────
   🔹 Upload Form Enhancements
   ───────────────────────────── */
#uploadForm {
  text-align: center;
}

.file-note {
  display: block;
  margin: 10px auto 6px;
  font-size: 14px;
  color: var(--inkDim);
}

/* Smooth fade + consistent spacing for messages */
#uploadResult {
  display: none;
  margin: 14px auto 0;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: center;
  transition: opacity 0.3s ease;
}

#uploadResult.success {
  background: #e7f7ec;
  color: #136c2e;
  border: 1px solid #b7e2c4;
}

#uploadResult.error {
  background: #fdecea;
  color: #9f2b24;
  border: 1px solid #f5c2c0;
}

.file-link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-size: 15px;
}

.file-link:hover {
  text-decoration: underline;
  color: #ffe36a;
}

.download-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

.download-btn:hover {
    color: #ffe26a; /* same yellow hover as file-link */
    text-decoration: underline;
}





