.afeksi-sidebar {
    --afeksi-green: #176b38;
    --afeksi-dark-green: #0d4f2a;
    --afeksi-soft-green: #edf5e9;
    --afeksi-pale-green: #f7faf4;
    --afeksi-border: #dce9d7;
    --afeksi-text: #1e2621;

    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 22px 16px 30px;
    background: #ffffff;
    border: 1px solid var(--afeksi-border);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(22, 76, 43, 0.1);
    font-family: Arial, Helvetica, sans-serif;
}

.afeksi-sidebar *,
.afeksi-sidebar *::before,
.afeksi-sidebar *::after {
    box-sizing: border-box;
}

.afeksi-sidebar::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -65px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(184, 211, 168, 0.28);
}

.afeksi-sidebar::after {
    content: "";
    position: absolute;
    left: -25%;
    bottom: -95px;
    width: 150%;
    height: 170px;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(
        135deg,
        rgba(224, 239, 214, 0.65),
        rgba(184, 211, 168, 0.28)
    );
}

.afeksi-sidebar-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 7px 20px;
}

.afeksi-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    color: var(--afeksi-green);
    background: var(--afeksi-soft-green);
    border: 1px solid var(--afeksi-border);
    border-radius: 15px;
    font-size: 36px;
    line-height: 1;
}

.afeksi-sidebar-title {
    margin: 0;
    color: var(--afeksi-dark-green);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.afeksi-sidebar-subtitle {
    margin-top: 4px;
    color: #667269;
    font-size: 11px;
    line-height: 1.45;
}

.afeksi-wave-lines {
    position: relative;
    z-index: 2;
    height: 24px;
    margin: -5px 0 10px;
    overflow: hidden;
}

.afeksi-wave-lines::before,
.afeksi-wave-lines::after {
    content: "";
    position: absolute;
    left: -10%;
    width: 120%;
    height: 24px;
    border-top: 1px solid rgba(23, 107, 56, 0.2);
    border-radius: 50%;
}

.afeksi-wave-lines::before {
    top: 7px;
    transform: rotate(-2deg);
}

.afeksi-wave-lines::after {
    top: 13px;
    transform: rotate(2deg);
}

.afeksi-main-menu,
.afeksi-settings-menu {
    position: relative;
    z-index: 2;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.afeksi-main-menu li,
.afeksi-settings-menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.afeksi-main-menu li::before,
.afeksi-settings-menu li::before {
    display: none !important;
}

.afeksi-main-menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    margin: 7px 0;
    padding: 11px 14px;
    color: var(--afeksi-text) !important;
    background: linear-gradient(90deg, #f7faf5, #f1f5ef);
    border: 1px solid transparent;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.afeksi-main-menu a:hover,
.afeksi-main-menu a:focus {
    color: var(--afeksi-dark-green) !important;
    background: var(--afeksi-soft-green);
    border-color: #cfe1c8;
    box-shadow: 0 5px 14px rgba(23, 107, 56, 0.08);
    transform: translateX(3px);
}

.afeksi-main-menu a.active {
    color: var(--afeksi-dark-green) !important;
    background: linear-gradient(90deg, #e7f2e2, #f5f8f3);
    border-color: #c9ddc2;
    font-weight: 700;
}

.afeksi-main-menu a.active::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 5px;
    background: var(--afeksi-green);
    border-radius: 0 8px 8px 0;
}

.afeksi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    color: var(--afeksi-green);
    font-size: 20px;
    font-weight: 400;
}

.afeksi-main-menu a span:last-child {
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.afeksi-divider {
    position: relative;
    z-index: 2;
    height: 1px;
    margin: 24px 3px 20px;
    background: var(--afeksi-border);
}

.afeksi-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 9px;
    height: 9px;
    background: #8bae79;
    border: 3px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.afeksi-settings-title {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 7px 8px;
    color: var(--afeksi-dark-green);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.afeksi-settings-icon {
    color: var(--afeksi-green);
    font-size: 21px;
}

.afeksi-settings-menu {
    padding: 0 7px 30px !important;
}

.afeksi-settings-menu li {
    border-bottom: 1px solid var(--afeksi-border);
}

.afeksi-settings-menu li:last-child {
    border-bottom: 0;
}

.afeksi-settings-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 3px;
    color: var(--afeksi-text) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.afeksi-settings-menu a:hover,
.afeksi-settings-menu a:focus {
    color: var(--afeksi-green) !important;
    padding-left: 7px;
}

.afeksi-settings-menu a span:last-child {
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.afeksi-leaf-decoration {
    position: absolute;
    z-index: 1;
    right: 10px;
    bottom: 5px;
    color: rgba(56, 126, 67, 0.3);
    font-size: 66px;
    transform: rotate(-20deg);
    pointer-events: none;
}

/* Menghapus style bawaan blok OJS */
.block_custom .afeksi-sidebar ul,
.block_custom .afeksi-sidebar li {
    margin-left: 0;
    padding-left: 0;
}

/* Penyesuaian sidebar tema bawaan OJS */
.pkp_block .afeksi-sidebar {
    font-size: initial;
}

@media screen and (max-width: 767px) {
    .afeksi-sidebar {
        border-radius: 14px;
        padding: 18px 13px 26px;
    }

    .afeksi-main-menu a {
        min-height: 48px;
        padding: 10px 12px;
    }
}