/*
 * Custom stylesheet untuk frontend OJS 3.3 dengan tema Default.
 * Unggah: Settings > Website > Appearance > Advanced > Journal Style Sheet.
 * Jika sudah ada stylesheet kustom, tambahkan aturan ini di bagian akhir.
 * Hasil: tombol menu berteks hitam; isi footer dan logo OJS/PKP sejajar.
 * Untuk Jurnal Tatat Kota dan Daerah by Achmad Riyanto
 */

/* USER NAVIGATION MENU */
#navigationUser {
    --ojs-user-green: #1e5a1d;
    --ojs-user-green-hover: #154314;
    --ojs-user-green-active: #10360f;
}

#navigationUser > li {
    position: relative;
    display: inline-block;
    margin: 0 0 6px 6px;
    margin: 0 0 6px 8px;
    vertical-align: top;
}

#navigationUser > li:first-child {
    margin-left: 0;
}

#navigationUser a,
#navigationUser a:visited,
#navigationUser a:hover,
#navigationUser a:focus,
#navigationUser a:active {
    color: #000;
    text-decoration: none;
}

/* Model pill: ujung tombol membulat penuh. */
#navigationUser > li > a {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin: 0;
    padding: 5px 12px;
    border: 1px solid #888;
    border-radius: 0; /* Ubah ke 4px jika ingin sedikit membulat. */
    background: #fff;
    padding: 5px 16px;
    border: 1px solid var(--ojs-user-green);
    border-radius: 999px;
    background: var(--ojs-user-green);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    font-weight: 700;
    line-height: 18px;
    box-shadow: 0 2px 5px rgba(30, 90, 29, 0.18);
    transition: background-color 160ms ease, border-color 160ms ease;
}

/* Teks tetap putih pada semua kondisi, termasuk setelah dikunjungi. */
#navigationUser > li > a,
#navigationUser > li > a:visited,
#navigationUser > li > a:hover,
#navigationUser > li > a:focus,
#navigationUser > li > a:active {
    color: #fff;
}

#navigationUser > li > a:hover,
#navigationUser > li > a:focus {
    border-color: #000;
    background: #eee;
    border-color: var(--ojs-user-green-hover);
    background: var(--ojs-user-green-hover);
}

/* Indikator fokus untuk navigasi dengan keyboard. */
#navigationUser > li > a:active {
    border-color: var(--ojs-user-green-active);
    background: var(--ojs-user-green-active);
}

/* Fokus keyboard terlihat di atas latar terang maupun gelap. */
#navigationUser a:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
    outline: 2px solid var(--ojs-user-green);
    outline-offset: 3px;
    box-shadow: 0 0 0 2px #fff;
}

/* Posisi dan buka/tutup submenu tetap ditangani OJS. */
/* Submenu: latar putih dengan teks hijau tua agar mudah dibaca.
 * Posisi dan buka/tutup submenu tetap ditangani OJS.
 */
#navigationUser ul {
    border-radius: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

#navigationUser ul a,
#navigationUser ul a:visited,
#navigationUser ul a:hover,
#navigationUser ul a:focus,
#navigationUser ul a:active {
    color: var(--ojs-user-green);
}

#navigationUser ul a:hover,
#navigationUser ul a:focus {
    border-left-color: var(--ojs-user-green);
    background: #eee;
    background: #eaf2e9;
}

/* Angka tugas/notifikasi pada akun yang sudah login. */
#navigationUser .task_count {
    top: 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: #ddd;
    color: #000;
    margin-left: 6px;
    border-radius: 50%;
    background: #fff;
    color: var(--ojs-user-green);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    vertical-align: middle;
}


/* FOOTER DAN LOGO PLATFORM & WORKFLOW BY OJS/PKP */
.pkp_structure_footer {
    box-sizing: border-box;
    display: flex;
    align-items: center; /* Ganti flex-start untuk sejajar sisi atas. */
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
}

/* Clearfix bawaan tidak diperlukan pada container flex. */
.pkp_structure_footer::before,
.pkp_structure_footer::after,
.pkp_brand_footer::before,
.pkp_brand_footer::after {
    display: none;
    content: none;
}

.pkp_structure_footer > .pkp_footer_content {
    flex: 1 1 0%;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

.pkp_footer_content > :first-child {
    margin-top: 0;
}

.pkp_footer_content > :last-child {
    margin-bottom: 0;
}

.pkp_structure_footer > .pkp_brand_footer {
    flex: 0 0 150px; /* Sesuaikan bersama width jika perlu. */
    float: none;
    width: 150px;
    max-width: 100%;
    margin: 0 0 0 auto;
    padding: 0;
}

.pkp_brand_footer > a {
    display: block;
    float: none;
    max-width: 100%;
}

.pkp_brand_footer img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}

/* LAYAR KECIL */
@media (max-width: 991px) {
    #navigationUser > li {
        margin: 0 6px 6px 0;
    }
}

@media (max-width: 767px) {
    .pkp_structure_footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .pkp_structure_footer > .pkp_footer_content {
        flex: 0 1 auto;
        width: 100%;
    }

    .pkp_structure_footer > .pkp_brand_footer {
        flex: 0 1 auto;
        margin: 0;
    }
}

/* SIDEBAR ABOUT TATA KOTA DAN DAERAH */
/* Baris rapat, garis tunggal, dan animasi hover tanpa menggeser kotak. */
.tkd-sidebar,
.tkd-sidebar * {
    box-sizing: border-box;
}

.tkd-sidebar {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tkd-sidebar .tkd-sidebar__title {
    display: block;
    margin: 0;
    padding: 0 0 8px;
    border: 0;
    background: transparent;
    color: #222;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
}

.tkd-sidebar .tkd-sidebar__list {
    display: block;
    margin: 0;
    padding: 0;
    border: 1px solid #1e5a1d;
    border-radius: 0;
    list-style: none;
    background: #fff;
}

.tkd-sidebar .tkd-sidebar__list > li {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #1e5a1d;
    list-style: none;
}

.tkd-sidebar .tkd-sidebar__list > li:last-child {
    border-bottom: 0;
}

.tkd-sidebar .tkd-sidebar__link,
.tkd-sidebar .tkd-sidebar__link:visited {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 9px 11px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #292929;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.tkd-sidebar .tkd-sidebar__link > span {
    position: relative;
    display: block;
    margin: 0;
    transform: translateX(0);
    transition: transform 180ms ease;
}

.tkd-sidebar .tkd-sidebar__icon {
    flex: 0 0 18px;
    width: 18px;
    color: inherit;
    font-size: 15px;
    text-align: center;
}

.tkd-sidebar .tkd-sidebar__link > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tkd-sidebar .tkd-sidebar__link:hover,
.tkd-sidebar .tkd-sidebar__link:focus {
    border: 0;
    background: #1e5a1d;
    color: #fff;
    text-decoration: none;
}

/* Ikon dan teks bergeser bersama; tinggi baris tetap. */
.tkd-sidebar .tkd-sidebar__link:hover > span,
.tkd-sidebar .tkd-sidebar__link:focus > span {
    transform: translateX(4px);
}

.tkd-sidebar .tkd-sidebar__link:focus {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

.tkd-sidebar .tkd-sidebar__link:active {
    background: #10360f;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .tkd-sidebar .tkd-sidebar__link,
    .tkd-sidebar .tkd-sidebar__link > span {
        transition: none;
    }

    .tkd-sidebar .tkd-sidebar__link:hover > span,
    .tkd-sidebar .tkd-sidebar__link:focus > span {
        transform: none;
    }
}
