/* =========================================
   1. GLOBAL & BODY STYLES
   ========================================= */
body {
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    background-attachment: fixed;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. HEADER & NAVIGATION OJS
   ========================================= */
#header,
.pkp_site_name {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.pkp_site_name > a {
    padding-top: 0;
    padding-bottom: 0;
}

.pkp_site_name .is_img img {
    max-height: 180px !important;
}

.pkp_site_name_wrapper {
    padding-left: 0;
    padding-right: 0;
}

.pkp_navigation_user_wrapper {
    top: 0;
    right: 0;
    padding-right: 24px;
}

.pkp_structure_page {
    margin-top: 32px !important;
    margin-bottom: 32px !important;
    padding-bottom: 32px !important;
}

/* =========================================
   3. SIDEBAR MENU MODERN, MINIMALIS & HOVER HITAM
   ========================================= */
.modern-sidebar {
    background-color: #ffffff;
    border-radius: 16px; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    margin: 20px auto;
    max-width: 280px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.modern-sidebar-header {
    background: #000000;
    color: #ffffff;
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.modern-sidebar-header span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
}

.modern-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 10px;
}

.modern-sidebar-menu li {
    margin: 3px 0;
}

.modern-sidebar-menu a,  
.modern-sidebar-menu .no-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #444444;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease-in-out !important;
}

.modern-sidebar-menu a i,
.modern-sidebar-menu .no-link i {
    width: 20px;
    margin-right: 12px;
    color: #777777;
    font-size: 1rem;
    text-align: center;
    transition: color 0.2s ease-in-out;
}

/* Efek Hover Presisi: Hitam Elegan dengan teks/ikon putih */
.modern-sidebar-menu a:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    transform: translateX(4px);
    box-shadow: none;
}

.modern-sidebar-menu a:hover i {
    color: #ffffff !important;
}

/* =========================================
   4. ARTICLE LIST OJS MODERN & FRIENDLY
   ========================================= */
.obj_issue_summary .articles > li,
.obj_article_summary {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -2px rgba(0, 0, 0, 0.01);
}

.obj_issue_summary .articles > li:hover,
.obj_article_summary:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    border-color: #cbd5e1;
    transform: translateY(-3px);
}

/* Judul Artikel */
.obj_article_summary .title a,
.obj_issue_summary .title a {
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.obj_article_summary .title a:hover,
.obj_issue_summary .title a:hover {
    color: #4f46e5;
}

/* Author */
.obj_article_summary .meta .authors,
.obj_article_summary .authors {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Tombol PDF (Galleys) - Pill style minimalis */
.obj_article_summary .galleys_links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    color: #475569;
    background: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.obj_article_summary .galleys_links a:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Statistik & DOI */
.article-stats {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.article-stats span {
    margin-right: 16px;
}

.article-stats a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}

.article-stats a:hover {
    text-decoration: underline;
    color: #4f46e5;
}

/* Nomor Halaman (Badge Minimalis) */
.pages {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.025em;
}

/* Abstract & References Detail Page */
.obj_article_details .abstract,
.obj_article_details .references {
    text-align: justify;
    line-height: 1.8;
    color: #334155;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pages {
        position: static;
        display: inline-block;
        margin-top: 12px;
        background: #f8fafc;
    }
    
    .modern-sidebar {
        width: 100%;
        max-width: none;
    }
}