:root {
  --accent: #01ffff;
  --accent-soft: rgba(1, 255, 255, 0.35);

  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.72);

  --overlay: rgba(8, 12, 18, 0.62);

  --radius: 14px;
  --shadow: 0 14px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);

  background-image: url("../Assets/Sage_background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(0,0,0,0.35), var(--overlay));
  z-index: 0;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;

  background: rgba(15, 20, 28, 0.42);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 55px;
  width: 75px;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
  transition: transform 180ms ease, filter 180ms ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
  filter:
    drop-shadow(0 10px 24px rgba(0,0,0,0.55))
    drop-shadow(0 0 12px rgba(1,255,255,0.25));
}

.nav{
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link{
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.nav-link:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
.nav-link.is-active{
  color: var(--text);
  background: rgba(1,255,255,0.10);
  border-color: rgba(1,255,255,0.22);
}

.page{
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 18px 18px;
}

.hero h1{
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}
.hero p{
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 70ch;
}
@media (max-width: 900px){
  .content-grid{ grid-template-columns: 1fr; }
  .brand-subtitle{ display:none; }
}
.card{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(15, 20, 28, 0.45);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card-title{
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.actions{
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
/* -------------------------------experiemnt ----------------------------------- */
.history-card {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
}

.history-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.history-card__top h3 {
  margin: 0;
  font-size: 1rem;
}

.history-card__top span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.history-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 6px;
  font-size: 0.92rem;
}

.history-card__row span {
  color: rgba(255,255,255,0.92);
}

/* -------------------------------experiemnt ----------------------------------- */

.btn{
  padding: 11px 16px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.14);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease, opacity 200ms ease;
}

.btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost{
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.btn-ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
}

.btn-primary{
  background: linear-gradient(180deg, rgba(1,255,255,0.95), rgba(1,255,255,0.72));
  color: rgba(0,0,0,0.85);
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 18px var(--accent-soft);
}

.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(1,255,255,0.22);
}

.fineprint{
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.58);
  line-height: 1.45;
}

.footer{
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 16px auto 28px;
  padding: 0 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,0.58);
  font-size: 13px;
}

.custum-file-upload {
  height: 220px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;

  border: 2px dashed rgba(255,255,255,0.18);
  background: rgba(0, 0, 0, 0.22);
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);

  transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.custum-file-upload:hover{
  transform: translateY(-2px);
  border-color: rgba(1,255,255,0.35);
  box-shadow: var(--shadow);
}

.custum-file-upload.is-dragover{
  border-color: rgba(1,255,255,0.55);
  background: rgba(1,255,255,0.10);
}

.custum-file-upload.has-file{
  border-color: rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.07);
}

.custum-file-upload .icon{
  display: flex;
  align-items: center;
  justify-content: center;
}

.custum-file-upload .icon svg{
  height: 74px;
  fill: rgba(255,255,255,0.88);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.35));
}

.custum-file-upload .text{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.custum-file-upload .text span{
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
}

.custum-file-upload .text small{
  font-size: 0.82rem;
  color: rgba(255,255,255,0.60);
}

.custum-file-upload input{ display: none; }