/* =========================================================
   NN-ITPROJECT — Portal Publikasi
   Tema: Navy Blue + Coral (sesuai identitas logo NN-ITPROJECT)
   ========================================================= */

:root {
  --tiedu-deep-green: #1A2A57;   /* navy tua - background gelap (footer, sidebar) */
  --tiedu-emerald: #223B76;      /* navy utama - brand color, tombol, aksen */
  --tiedu-emerald-light: #3454A0;/* navy terang - hover state */
  --tiedu-gold: #E96767;         /* coral - aksen sekunder & CTA hangat */
  --tiedu-gold-light: #FF9B9B;   /* coral terang - teks aksen di atas navy */
  --tiedu-red: #B02127;          /* merah tua - garis bawah brand, aksen kecil */
  --tiedu-white: #ffffff;
  --tiedu-cream: #F5F7FB;        /* latar terang kebiruan, pengganti krem */
  --tiedu-text: #1E2433;
  --tiedu-muted: #62708A;
  --tiedu-radius: 16px;
  --tiedu-shadow: 0 10px 30px rgba(26, 42, 87, 0.10);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--tiedu-text);
  background: var(--tiedu-cream);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

a { text-decoration: none; color: var(--tiedu-emerald); transition: color .2s ease; }
a:hover { color: var(--tiedu-gold); }

.text-gold { color: var(--tiedu-gold) !important; }
.text-emerald { color: var(--tiedu-emerald) !important; }
.text-light-50 { color: rgba(255,255,255,.75) !important; }
.bg-emerald { background: var(--tiedu-emerald) !important; }
.bg-deep-green { background: var(--tiedu-deep-green) !important; }
.bg-cream { background: var(--tiedu-cream) !important; }

/* ---------- Topbar & Navbar ---------- */
.tiedu-topbar {
  background: var(--tiedu-deep-green);
  color: #fff;
  padding: 6px 0;
}

.tiedu-navbar {
  background: #fff;
  box-shadow: 0 2px 15px rgba(26,42,87,.08);
  padding: 12px 0;
}

.tiedu-navbar .navbar-brand-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--tiedu-emerald);
  line-height: 1.1;
}
.tiedu-navbar .navbar-brand-text span { color: var(--tiedu-gold); }
.tiedu-navbar .navbar-brand-tagline {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--tiedu-muted);
  text-transform: uppercase;
}

.tiedu-navbar .nav-link {
  color: var(--tiedu-text);
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: 8px;
}

.tiedu-navbar .nav-link:hover,
.tiedu-navbar .nav-link.active {
  color: var(--tiedu-emerald);
  background: rgba(34,59,118,.08);
}

.tiedu-logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tiedu-emerald), var(--tiedu-deep-green));
  color: var(--tiedu-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(26,42,87,.3);
}

.btn-tiedu-gold {
  background: linear-gradient(135deg, var(--tiedu-gold), var(--tiedu-red));
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-tiedu-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(233,103,103,.4);
  color: #fff;
}

.btn-tiedu-emerald {
  background: linear-gradient(135deg, var(--tiedu-emerald), var(--tiedu-deep-green));
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-tiedu-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(34,59,118,.35);
  color: #fff;
}

.btn-outline-tiedu {
  border: 2px solid var(--tiedu-emerald);
  color: var(--tiedu-emerald);
  font-weight: 600;
  border-radius: 10px;
  background: transparent;
}
.btn-outline-tiedu:hover {
  background: var(--tiedu-emerald);
  color: #fff;
}

/* ---------- Hero ---------- */
.tiedu-hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(233,103,103,.18), transparent 40%),
              linear-gradient(120deg, var(--tiedu-deep-green) 0%, var(--tiedu-emerald) 60%, #4a3a7a 100%);
  color: #fff;
  padding: 90px 0 110px;
  overflow: hidden;
}
.tiedu-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="50" cy="50" r="1.5" fill="white" opacity="0.15"/></svg>');
  background-size: 40px 40px;
  pointer-events: none;
}
.tiedu-hero h1 { font-size: 2.6rem; line-height: 1.2; }
.tiedu-hero .badge-gold {
  background: rgba(233,103,103,.2);
  color: var(--tiedu-gold-light);
  border: 1px solid rgba(233,103,103,.45);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  display: inline-block;
}
.tiedu-hero-stats {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--tiedu-radius);
  backdrop-filter: blur(6px);
}

/* wave divider */
.tiedu-wave { display: block; margin-top: -2px; }

/* ---------- Cards ---------- */
.tiedu-card {
  background: #fff;
  border: 1px solid rgba(26,42,87,.08);
  border-radius: var(--tiedu-radius);
  box-shadow: var(--tiedu-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.tiedu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(26,42,87,.18);
}

.tiedu-service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34,59,118,.12), rgba(233,103,103,.18));
  color: var(--tiedu-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.tiedu-section-title .eyebrow {
  color: var(--tiedu-gold);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: .8rem;
}

.tiedu-badge-issn {
  background: rgba(34,59,118,.1);
  color: var(--tiedu-emerald);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 600;
}

/* ---------- Steps / flow ---------- */
.tiedu-step {
  text-align: center;
  padding: 20px 10px;
}
.tiedu-step .num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tiedu-emerald), var(--tiedu-deep-green));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
  font-family: 'Poppins', sans-serif;
}

/* ---------- Tracking progress ---------- */
.tiedu-tracker { display: flex; flex-wrap: wrap; gap: 0; }
.tiedu-tracker .tstep {
  flex: 1;
  min-width: 110px;
  text-align: center;
  position: relative;
  padding-top: 10px;
}
.tiedu-tracker .tstep .dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: #e7eaf2; color: #8993ab;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; font-weight: 700; position: relative; z-index: 2;
  border: 3px solid #fff;
}
.tiedu-tracker .tstep.done .dot { background: var(--tiedu-emerald); color: #fff; }
.tiedu-tracker .tstep.current .dot { background: var(--tiedu-gold); color: #fff; box-shadow: 0 0 0 5px rgba(233,103,103,.25); }
.tiedu-tracker .tstep::before {
  content: "";
  position: absolute; top: 27px; left: -50%; width: 100%; height: 3px;
  background: #e7eaf2; z-index: 1;
}
.tiedu-tracker .tstep:first-child::before { display: none; }
.tiedu-tracker .tstep.done::before { background: var(--tiedu-emerald); }

/* ---------- Footer ---------- */
.tiedu-footer {
  background: var(--tiedu-deep-green);
  color: rgba(255,255,255,.85);
}
.tiedu-footer a { color: rgba(255,255,255,.75); }
.tiedu-footer a:hover { color: var(--tiedu-gold-light); }

.tiedu-wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
  z-index: 1000;
  animation: tiedu-pulse 2.2s infinite;
}
@keyframes tiedu-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Auth pages ---------- */
.tiedu-auth-wrap {
  min-height: calc(100vh - 250px);
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.tiedu-auth-card {
  border-radius: var(--tiedu-radius);
  box-shadow: var(--tiedu-shadow);
  overflow: hidden;
}
.tiedu-auth-side {
  background: linear-gradient(150deg, var(--tiedu-deep-green), var(--tiedu-emerald));
  color: #fff;
  padding: 50px 40px;
}

/* ---------- Dashboard (user/admin) ---------- */
.tiedu-dash-sidebar {
  background: var(--tiedu-deep-green);
  min-height: 100vh;
  color: rgba(255,255,255,.85);
}
.tiedu-dash-sidebar a.nav-link {
  color: rgba(255,255,255,.75);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 4px;
  font-size: .93rem;
}
.tiedu-dash-sidebar a.nav-link:hover,
.tiedu-dash-sidebar a.nav-link.active {
  background: rgba(233,103,103,.2);
  color: var(--tiedu-gold-light);
}
.tiedu-dash-topbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(26,42,87,.06);
}
.tiedu-stat-card {
  border-radius: var(--tiedu-radius);
  border: none;
  box-shadow: var(--tiedu-shadow);
  padding: 22px;
}
.tiedu-stat-card .icon-wrap {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
}

.badge-purple, .bg-purple { background-color: #7c3aed !important; color: #fff; }

table.tiedu-table thead { background: var(--tiedu-deep-green); color: #fff; }
table.tiedu-table thead th { border: none; font-weight: 600; font-size: .85rem; }

/* Utility */
.rounded-tiedu { border-radius: var(--tiedu-radius) !important; }
.shadow-tiedu { box-shadow: var(--tiedu-shadow) !important; }
.section-py { padding: 70px 0; }

@media (max-width: 767px) {
  .tiedu-hero h1 { font-size: 1.9rem; }
  .section-py { padding: 45px 0; }
}
