:root {
  --tosca: #088580;
  --tosca-dark: #095c5d;
  --hover-bg: #d3d8d8;
  --text-dark: #1f2937;
  --line-bright: #064029;
  --gray-dark: #3c3f43;      /* abu gelap */
  --gray-soft: #757e8c;      /* abu sedikit terang */
  --tosca-accent: #b7ece7;   /* aksen tosca */
}

/* HEADER */
.sidebar-header-clean {
  padding: 14px 16px;
  text-align: center;

  font-weight: 600;
  letter-spacing: 1px;
  color: #f9fafb;

  /* 🔥 background abu gelap senada */
  background: linear-gradient(135deg, var(--gray-dark), var(--gray-soft));

  /* 🔥 garis tipis full */
  border: 1px solid rgba(15, 118, 110, 0.4);

  /* 🔥 sedikit rounded */
  border-radius: 10px;

  /* 🔥 efek halus */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);

  position: relative;
}

/* 🔥 optional: garis aksen bawah tipis */
.sidebar-header-clean::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--tosca-accent);
  opacity: 0.6;
}

/* Sidebar */
.sidebar {
  width: 100%;
  max-width: 320px;
  font-family: sans-serif;
}

/* Header */
.sidebar-header {
  background: linear-gradient(135deg, var(--tosca), var(--tosca-dark));
  color: white;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Menu */
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 🔥 TANPA SPASI */
.menu li {
  margin-bottom: -1.5px;
  position: relative;
}

/* 🔥 GARIS PEMISAH */
.menu li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 6%;
  width: 88%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

/* 🔥 MENU SHAPE (OVAL TIPIS) */
.menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;

  text-decoration: none;
  color: white;

  background: linear-gradient(135deg, var(--tosca), var(--tosca-dark));

  border-radius: 7px; /* lebih cocok untuk tanpa spasi */

  transition: all 0.3s ease;
  position: relative;

  box-shadow: 0 3px 8px rgba(0,0,0,0.08);

  border: 0px solid rgba(255,255,255,0.08);
}

/* ICON */
.menu a i {
  font-size: 15px;
  min-width: 25px;
  text-align: center;
  transition: 0.3s;
}

/* 🔥 DIVIDER ICON - TEXT */
.menu a span {
  position: relative;
  padding-left: 14px;
}

.menu a span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  transition: 0.3s;
}

/* 🔥 HOVER */
.menu a:hover {
  background: var(--hover-bg);
  color: var(--text-dark);

  transform: translateX(6px) scale(1.02);

  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Divider berubah */
.menu a:hover span::before {
  background: var(--text-dark);
}

/* Icon animasi */
.menu a:hover i {
  transform: scale(1.2);
}

/* 🔥 GARIS BAWAH JADI CERAH */
.menu li:hover::after {
  background: var(--line-bright);
  height: 2px;
  width: 92%;
}

/* ACTIVE */
.menu li.active a {
  background: linear-gradient(135deg, #115e59, #022c22);
}

.menu li.active::after {
  background: var(--line-bright);
  height: 3px;
}

.icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;

  /* warna mengikuti tema (khusus SVG biasanya) */
  filter: brightness(0) invert(1);

  transition: 0.3s;
}

/* saat hover → jadi gelap */
.menu a:hover .icon-img {
  filter: brightness(0);
  transform: scale(1.2);
}

/* 🔥 HOVER GLOBAL */
.menu-tool a:hover {
  color: white;
  transform: translateX(6px);
}

/* ICON hidup */
.menu-tool a:hover .icon-img {
  filter: none;
  transform: scale(1.2);
}

/* divider ikut berubah */
.menu-tool a:hover span::before {
  background: white;
}
/* =========================
   BASE MENU
========================= */
.tool a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;

  border-radius: 16px;
  overflow: hidden;

  color: white;
  text-decoration: none;

  transition: all 0.3s ease;
}

/* =========================
   ICON DEFAULT (WARNA ASLI)
========================= */
.tool .icon-img {
  width: 18px;
  height: 18px;

  filter: none !important;   /* 🔥 pastikan tidak keubah */
  opacity: 1;

  transition: all 0.3s ease;
}

/* =========================
   DIVIDER
========================= */
.tool span {
  position: relative;
  padding-left: 12px;
}

.tool span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 2px;

  background: rgba(255,255,255,0.6);
  transition: 0.3s;
}

/* =========================
   LOGO SHADOW KANAN
========================= */
.tool a::before {
  content: "";
  position: absolute;
  inset: 0;

  background-repeat: no-repeat;
  background-position: right center;
  background-size: 70px;

  opacity: 0.15;
  transition: 0.3s;
}

/* =========================
   GRADASI GELAP SETENGAH
========================= */
.tool a::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;

  background: linear-gradient(to left, rgba(0,0,0,0.5), transparent);
}

/* =========================
   DEFAULT (WARNA BRAND)
========================= */

/* WHATSAPP */
.tool.wa a {
  background: #25D366;
}
.tool.wa a::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/733/733585.png");
}

/* MENDELEY */
.tool.mendeley a {
  background: #a31f34;
}
.tool.mendeley a::before {
  background-image: url("https://jurnalfamilia.org/public/site/images/adminfamilia/IMG_2865.png");
}

/* TURNITIN */
.tool.turnitin a {
  background: #00a6d6;
}
.tool.turnitin a::before {
  background-image: url("https://cdn-icons-png.flaticon.com/512/5968/5968875.png");
}

/* GRAMMARLY */
.tool.grammarly a {
  background: #15c39a;
}
.tool.grammarly a::before {
  background-image: url("https://jurnalfamilia.org/public/site/images/adminfamilia/IMG_2866.png");
}

/* =========================
   HOVER (MODE NETRAL)
========================= */
.tool a:hover {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #1f2937;

  transform: translateX(6px);
}

/* divider */
.tool a:hover span::before {
  background: #1f2937;
}

/* 🔥 ICON → ABU-ABU GELAP (FIX UTAMA) */
.tool a:hover .icon-img {
  filter: grayscale(100%) brightness(0.3) !important;
  transform: scale(1.2);
}

/* logo tetap halus */
.tool a:hover::before {
  opacity: 0.1;
}

/* hilangkan gradasi saat hover */
.tool a:hover::after {
  opacity: 0;
}

/* FRAME */
.indexing-slider {
  width: 100%;
  overflow: hidden;
  margin: 20px 0;
  position: relative;
}

/* TRACK */
.slider-track {
  display: flex;
  width: max-content;
  animation: scrollLeft 25s linear infinite;
}

/* LINK WRAPPER (klik area) */
.slider-track a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 14px;
  text-decoration: none;
}

/* LOGO: rasio 1:3 (tinggi:lebar) */
.slider-track img {
  height: 45px;        /* 🔥 tinggi */
  width: 135px;        /* 🔥 lebar = 3x tinggi */

  object-fit: contain;

  /* tampilan elegan */
  filter: grayscale(100%);
  opacity: 0.85;
  transition: all 0.3s ease;
}

/* HOVER (klik lebih terasa) */
.slider-track a:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.08);
}

/* ANIMASI LOOP */
@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



/* FOOTER UTAMA */
.journal-footer {
  background: linear-gradient(135deg, #f9fafb, var(--gray-soft));
  color: var(--text-dark);
  font-family: sans-serif;
  margin-top: 40px;
}

/* BAGIAN ATAS */
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 30px;
  border-top: 3px solid var(--tosca);
}

/* KIRI */
.footer-left {
  flex: 1;
  text-align: center;
}

.footer-qr {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 10px;
}

.journal-name {
  font-weight: 600;
  color: var(--tosca);
}

/* KANAN */
.footer-right {
  flex: 2;
}

.footer-right h4 {
  margin-bottom: 10px;
  color: var(--tosca);
}

.footer-right p {
  margin: 4px 0;
  font-size: 14px;
}

/* 🔥 BAGIAN BAWAH */
.footer-bottom {
  background: var(--tosca);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.footer-right {
  border-left: 2px solid rgba(15,118,110,0.2);
  padding-left: 20px;
}
/* 🔥 LOGO LINK */
.footer-logo-link {
  display: inline-block;
  transition: 0.3s;
}

.footer-logo-link:hover {
  transform: scale(1.08);
}

/* efek pada gambar */
.footer-logo-link:hover .footer-qr {
  filter: brightness(1.1);
}

/* 🔥 FOOTER BOTTOM JADI LINK */
.footer-bottom {
  display: block;
  text-decoration: none;
  background: var(--tosca);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: 0.3s;
}

/* HOVER */
.footer-bottom:hover {
  background: #14b8a6; /* tosca lebih terang */
  transform: scale(1.01);
}
/* BLOK LISENSI */
.footer-license {
  text-align: center;
  font-size: 13px;
  padding: 12px 10px;

  background: #f9fafb;
  border-top: 1px solid rgba(0,0,0,0.05);

  color: #374151;
}

/* LINK */
.footer-license a {
  color: #0f766e;
  text-decoration: none;
  transition: 0.3s;
}

.footer-license a:hover {
  text-decoration: underline;
  color: #14b8a6;
}

/* ICON CC */
.footer-license img {
  max-width: 1em;
  max-height: 1em;
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.8;
}