/* ===============================
   OJS 3.3 CUSTOM THEME - SOFT GREEN
   =============================== */

/* ===============================
   GLOBAL VARIABLES & RESET
   =============================== */
:root {
    --primary-color: #00c853;
    /* Strong Green */
    --accent-color: #e5ff00;
    /* Lime/Yellow Accent */
    --bg-color: #b1ffb5;
    /* Soft Green Background */
    --text-color: #000000;
    --white: #ffffff;
}

body {
    background: var(--bg-color);
    /* Matches soft green request */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===============================
   HEADER SECTION
   =============================== */
.pkp_structure_head {
    background-color: var(--primary-color) !important;
    border-bottom: none;
    padding: 6px 0 4px;
    position: relative;
    text-align: center;
}

.pkp_head_wrapper {
    position: relative;
    text-align: center;
}

/* Center journal title */
.pkp_site_name,
.pkp_site_name a {
    display: block !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: -5px !important;
    margin-top: -50px !important;
    padding-top: 0 !important;
    text-align: center !important;
}

/* ===============================
   NAVIGATION BAR
   =============================== */
.pkp_structure_navigation {
    /* Using the last defined color from original file (#e5ff00) */
    background-color: var(--accent-color) !important;
    border-bottom: 4px solid var(--text-color);
    margin-top: 100px !important;
    padding-top: 10px !important;
}

/* Reset default backgrounds for nav elements */
.pkp_structure_navigation,
.pkp_navigation_primary,
.pkp_navigation_user_wrapper,
.pkp_navigation_user,
.pkp_navigation_search,
.pkp_nav_list {
    background: transparent;
    /* Cleaned up !important where possible, but keeping structural ones if needed */
}

/* Inner Navigation Wrapper */
.pkp_structure_navigation .pkp_navigation_primary_wrapper {
    align-items: center !important;
    display: flex !important;
    min-height: 40px !important;
    padding: 0 20px !important;
}

/* Primary Menu List */
.pkp_nav_list {
    align-items: center;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_nav_list a {
    border-radius: 5px;
    color: var(--text-color) !important;
    font-weight: 600;
    padding: 6px 10px;
}

.pkp_nav_list a:hover {
    background: rgba(255, 255, 255, 0.6);
}

.pkp_nav_list a:active,
.pkp_nav_list a:focus {
    background: #b6b6b6 !important;
    outline: none;
}

/* ===============================
   USER MENU (Top Right)
   =============================== */
.pkp_navigation_user_wrapper {
    position: absolute;
    /* Posisikan di kanan atas */
    top: 10px;
    right: -200px;
    z-index: 1000;
    background: transparent !important;
    padding: 0;
    margin: 0;
    width: auto;
}

.pkp_navigation_user {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.pkp_navigation_user a {
    border-radius: 6px;
    color: var(--text-color) !important;
    font-weight: 600;
    padding: 6px 10px;
}

.pkp_navigation_user a:hover {
    background: rgba(255, 255, 255, 0.6);
}

.pkp_navigation_user a:active,
.pkp_navigation_user a:focus {
    background: #69f0ae !important;
    outline: none;
}

/* ===============================
   SEARCH COMPONENT
   =============================== */
.pkp_navigation_search {
    align-items: center;
    display: flex !important;
    margin-left: auto;
    position: static !important;
    transform: none !important;
}

.pkp_navigation_search input[type="search"] {
    background: var(--white) !important;
    border: 1px solid #686868;
    border-radius: 6px;
    margin: 0;
    padding: 6px 10px;
    vertical-align: middle;
}

/* ===============================
   MAIN LAYOUT WRAPPER
   =============================== */
.pkp_structure_main {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    margin: 20px auto;
    max-width: 1100px;
    padding: 0 15px;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

/* Additional spacing for issue view */
.pkp_page_index .pkp_structure_main {
    margin-top: 0px;
}

/* ===============================
   CONTENT & SIDEBAR COLUMNS
   =============================== */
.pkp_structure_main .pkp_structure_content {
    flex: 1;
    min-width: 0;
    width: auto;
}

.pkp_structure_main .pkp_structure_sidebar {
    padding-left: 0;
    width: 300px;
    /* Fixed width sidebar, safe size */
    flex-shrink: 0;
}

/* Card Style for Main Content blocks */
.pkp_structure_content>* {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    padding: 36px;
}

/* Tabs Reset */
.pkp_structure_content .cmp_tabs {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* ===============================
   SIDEBAR BLOCKS
   =============================== */
.pkp_block {
    background: var(--white);
    /* Changed to white to be visible against green bg */
    border-radius: 20px;
    box-shadow: 0 5px 12px #00c853;
    margin-bottom: 24px;
    padding: 36px;
}

/* Sidebar Headings */
.pkp_block h2 {
    border-bottom: 3px solid var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
}

/* Sidebar Links */
.pkp_block a {
    color: var(--text-color);
    display: block;
    font-size: 14px;
    padding: 6px 0;
}

.pkp_block a:hover {
    text-decoration: underline;
}

/* Login Block Specifics */
.pkp_block_login input[type="text"],
.pkp_block_login input[type="password"] {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 10px;
    width: 100%;
}

.pkp_block_login button {
    background: #ff6a3d;
    border: none;
    border-radius: 4px;
    color: var(--white);
    cursor: pointer;
    padding: 6px 14px;
}

.pkp_block_login button:hover {
    opacity: 0.9;
}

/* ===============================
   FOOTER SECTION
   =============================== */
.pkp_structure_footer {
    background-color: var(--primary-color) !important;
    border-top: 4px solid var(--bg-color);
    margin: 0 !important;
    padding: 20px 0 10px !important;
    width: 100% !important;
}

/* Footer Wrapper */
.custom-footer {
    align-items: start;
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr auto;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* Footer Columns */
.custom-footer .footer-col {
    color: var(--white);
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.custom-footer h4 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-logo img {
    height: auto;
    max-width: 140px;
}

/* Footer Bottom Bar */
.footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    margin: 15px auto 0;
    max-width: 1200px;
    padding: 10px 20px 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-bottom a {
    color: var(--white) !important;
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===============================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   =============================== */

/* Tablet & Smaller Desktop */
@media (max-width: 992px) {
    .pkp_structure_main {
        margin: 20px auto;
    }

    .pkp_structure_main .pkp_structure_content,
    .pkp_structure_main .pkp_structure_sidebar {
        padding-left: 0;
        width: 100%;
        /* Stack columns */
    }
}

@media (min-width:1200px) {

    .pkp_site_name_wrapper,
    .pkp_navigation_primary_wrapper,
    .pkp_navigation_user,
    .pkp_search_mobile,
    .pkp_structure_content,
    .pkp_structure_footer {
        width: 1180px
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Stack Navigation */
    .pkp_nav_list {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    /* Reset User Menu for Mobile */
    .pkp_navigation_user_wrapper {
        position: static;
        margin: 0 auto 10px;
        justify-content: center;
        width: 100%;
    }

    .pkp_navigation_user {
        justify-content: center;
    }

    /* Stack Footer */
    .custom-footer {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}