/* Custom Sidebar Styling OJS 3.4 - Modern Card Look (#154668) */
.pkp_structure_sidebar .block_custom ul,
.pkp_structure_sidebar [id^="customblock-" i] ul {
    list-style: none !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.pkp_structure_sidebar .block_custom ul li,
.pkp_structure_sidebar [id^="customblock-" i] ul li {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
}

.pkp_structure_sidebar .block_custom ul li:last-child,
.pkp_structure_sidebar [id^="customblock-" i] ul li:last-child {
    border-bottom: none;
}

/* Header blok (Menu, Template, Information, Tools, Visitor) */
.pkp_structure_sidebar .block_custom ul li:first-child,
.pkp_structure_sidebar [id^="customblock-" i] ul li:first-child {
    background: linear-gradient(135deg, #154668 0%, #1e5f8c 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 14px !important;
    border-bottom: none;
}

.pkp_structure_sidebar .block_custom ul li:first-child a,
.pkp_structure_sidebar [id^="customblock-" i] ul li:first-child a {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0 !important;
    text-align: center;
}

/* Link menu */
.pkp_structure_sidebar .block_custom ul li a,
.pkp_structure_sidebar [id^="customblock-" i] ul li a {
    display: block !important;
    padding: 9px 14px !important;
    background-color: #ffffff;
    color: #1e293b !important;
    text-align: left;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.pkp_structure_sidebar .block_custom ul li a:hover,
.pkp_structure_sidebar [id^="customblock-" i] ul li a:hover {
    background-color: #eef5f9 !important;
    color: #154668 !important;
    border-left: 3px solid #154668;
    padding-left: 18px !important;
}

/* Hindari efek geser pada judul Menu yang berupa link */
.pkp_structure_sidebar .block_custom ul li:first-child a:hover,
.pkp_structure_sidebar [id^="customblock-" i] ul li:first-child a:hover {
    background: transparent !important;
    color: #ffffff !important;
    border-left: none;
    padding-left: 0 !important;
}

/* Gambar (Template, Tools, Visitor) */
.pkp_structure_sidebar .block_custom p,
.pkp_structure_sidebar [id^="customblock-" i] p {
    text-align: center;
    margin: -8px 0 16px 0;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pkp_structure_sidebar .block_custom p img,
.pkp_structure_sidebar [id^="customblock-" i] p img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}