:root {
  --tosca-dark: #0d5c56;
  --tosca: #20b2aa;
  --tosca-light: #a0dedb;
  --white: #eeebeb;
  --gray-900: #0b1220;
  --gray-700: #374151;
  --focus: #ffcc70;
}

/* Global background */
body {
  background-color: var(--tosca);
  background-image: linear-gradient(180deg, var(--tosca-dark), var(--tosca));
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--gray-900);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
/* Main content */
.pkp_structure_page,
.pkp_structure_main {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem auto;
  max-width: 1230px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
/* ================= Header Full Width ================= */
.pkp_head_wrapper {
  display: flex;
  flex-direction: column; /* top bar + navbar */
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--tosca);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--focus);

  /* Animasi masuk lebih elegan */
  opacity: 0;
  transform: translateY(-30px) scale(0.98);
  animation: headerFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes headerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Top bar: nama jurnal/universitas */
.pkp_top_bar {
  display: flex;
  justify-content: space-between; /* rata kanan-kiri */
  align-items: center;
  padding: 0.5rem 2rem;
}
/* Article menu with shadow */
.obj_article_summary {
  background-color: var(--white);
  border: 1px solid var(--tosca-light);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.25s ease-in-out;
}
.obj_article_summary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--tosca-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Links */
a {
  color: var(--tosca-dark);
  text-decoration: none;
}
a:hover {
  color: var(--focus);
  text-decoration: underline;
}

/* Buttons */
.pkp_button,
.pkp_button_primary,
.obj_galley_link {
  background-color: var(--tosca-dark);
  color: var(--white);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  border: none;
  transition: all 0.2s ease-in-out;
}
.pkp_button:hover,
.pkp_button_primary:hover,
.obj_galley_link:hover {
  background-color: var(--tosca);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
}
thead th {
  background-color: var(--tosca);
  color: var(--white);
  padding: 0.75rem;
}
tbody td {
  padding: 0.7rem;
  border-top: 1px solid var(--tosca-light);
}

/* Sidebar menu */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease-in-out;
}
/* ===================== Sidebar OJS 3 ===================== */

/* Container sidebar */
.sidebar {
    width: 280px; /* lebar sidebar */
    background-color: #f8f9fa; /* warna latar sidebar */
    border-left: 3px solid #20b2aa; /* aksen border tosca */
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* bayangan lembut */
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease-in-out;
}

/* Sidebar heading */
.sidebar h3, .sidebar h4 {
    color: #0d5c56; /* tosca dark */
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #20b2aa; /* garis bawah tosca */
    padding-bottom: 5px;
    text-transform: uppercase;
    font-size: 1.1em;
}

/* Sidebar links */
.sidebar a {
    display: block;
    color: #374151; /* abu gelap */
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px dotted #d1d5db; /* pemisah link */
    transition: all 0.2s ease-in-out;
}

.sidebar a:hover {
    color: #20b2aa; /* tosca */
    padding-left: 10px;
    font-weight: 500;
}

/* Widget box di sidebar */
.sidebar .widget {
    margin-bottom: 25px;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.sidebar .widget:hover {
    transform: translateY(-3px);
}

/* List artikel populer atau kategori */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    font-size: 0.95em;
}

/* Responsif: untuk layar kecil, sidebar full width */
@media screen and (max-width: 991px) {
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
        border-left: none;
        box-shadow: none;
    }
}
/* ================= Header Sections ================= */
.sidebar-menu h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0d5c56; /* var(--tosca-dark) */
  text-decoration: underline;
  margin-bottom: 0.75rem;
}

/* ================= Links and Paragraphs ================= */
.sidebar-menu p, 
.sidebar-menu ul {
  margin: 0 0 1rem 0;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #374151; /* var(--gray-700) */
}

.sidebar-menu ul li {
  list-style: none;
  margin-bottom: 0.5rem;
}

.sidebar-menu ul li a {
  text-decoration: none;
  color: #0d5c56; /* var(--tosca-dark) */
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.sidebar-menu ul li a:hover {
  color: #20b2aa; /* var(--tosca) */
  transform: translateX(4px);
}

/* ================= Image Links ================= */
.sidebar-menu img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sidebar-menu img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* ================= Click Animation for Sections ================= */
.sidebar-menu a:active, 
.sidebar-menu img:active {
  transform: scale(0.97);
  transition: transform 0.1s;
}

/* ================= About Section Custom ================= */
#aboutPolicies ul, 
#aboutSubmissions ul {
  padding-left: 1rem;
}

#aboutPolicies ul li a,
#aboutSubmissions ul li a {
  color: #0d5c56;
}

/* ================= License and Visitor ================= */
.sidebar-menu div img {
  max-width: 120px;
  margin-bottom: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sidebar-menu div img:hover {
  transform: rotate(-2deg) scale(1.05);
  box-shadow: 2px 4px 10px rgba(0,0,0,0.2);
}

/* ================= Overall Sidebar Box ================= */
.sidebar-menu > div, 
.sidebar-menu > p {
  background-color: #ffffff;
  border: 1px solid #a0dedb; /* var(--tosca-light) */
  border-radius: 12px;
  padding: 0.8rem 1rem;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
/* Footer */
.pkp_structure_footer {
  background-color: var(--tosca-dark);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  font-size: 0.50rem;
}
