/*
 * AMORE Animal Clinic — standalone navigation theme
 * Warna sengaja tidak menggunakan variabel tema agar tampilannya selalu konsisten.
 */
html:has(body.amore-layout),
body.amore-layout {
    background: #aa1d22 !important;
}

.amore-side-nav {
    --amore-wine: #aa1d22;
    --amore-wine-deep: #aa1d22;
    --amore-rose: #f2a1aa;
    --amore-blush: #fff0f1;
    --amore-white: #ffffff;
    position: relative;
    width: 250px;
    min-height: calc(100vh + 2.5rem);
    margin-top: -1.25rem;
    margin-bottom: -1.25rem;
    padding: 1.25rem 16px 64px 12px;
    box-sizing: border-box;
    overflow-x: hidden;
    background: #aa1d22 !important;
    color: var(--amore-white);
}

.amore-side-nav::before {
    content: "";
    position: absolute;
    top: -168px;
    right: -122px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.016), 0 0 0 76px rgba(255, 255, 255, 0.009);
    pointer-events: none;
}

.amore-side-nav > * {
    position: relative;
    z-index: 1;
}

.amore-side-nav .amore-side-nav__brand {
    display: flex;
    min-height: 230px;
    margin: 10px 0 12px;
    padding: 12px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.045));
    box-shadow: 0 12px 28px rgba(73, 5, 11, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    color: var(--amore-white);
    text-decoration: none;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.amore-side-nav__logo-wrap {
    display: flex;
    width: 202px;
    height: 202px;
    flex: 0 0 202px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 36px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(68, 4, 10, 0.20);
}

.amore-side-nav__logo {
    width: 190px;
    height: 190px;
    border-radius: 32px;
    object-fit: contain;
}

.amore-side-nav .side-nav__devider {
    height: 1px;
    margin: 8px 8px 13px;
    background: rgba(255, 255, 255, 0.12) !important;
}

.amore-side-nav h4 {
    margin: 20px 0 7px;
    padding: 0 12px;
    color: var(--amore-white) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.13em;
    line-height: 16px;
    text-transform: uppercase;
}

.amore-side-nav .side-menu {
    position: relative;
    display: flex;
    min-height: 46px;
    height: auto;
    margin: 3px 0;
    padding: 5px 10px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: var(--amore-white) !important;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.amore-side-nav .side-menu::before,
.amore-side-nav .side-menu::after,
.amore-side-nav .side-menu__icon::before {
    display: none !important;
}

.amore-side-nav .side-menu:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(2px);
}

.amore-side-nav .side-menu:focus-visible {
    outline: 2px solid var(--amore-rose);
    outline-offset: 2px;
}

.amore-side-nav .side-menu__icon {
    display: flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--amore-white) !important;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.amore-side-nav .side-menu__icon i,
.amore-side-nav .side-menu__icon svg {
    width: 18px;
    height: 18px;
    font-size: 17px;
    line-height: 18px;
    text-align: center;
    stroke-width: 1.8;
}

.amore-side-nav .side-menu__title {
    display: flex;
    min-width: 0;
    width: 100%;
    margin-left: 11px;
    align-items: center;
    color: var(--amore-white) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.amore-side-nav .side-menu__sub-icon {
    display: flex;
    width: 26px;
    height: 26px;
    margin-left: auto;
    margin-right: 0;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--amore-white) !important;
    opacity: 0.72;
}

.amore-side-nav > ul > li > .side-menu.side-menu--active,
.amore-side-nav > ul > li > .side-menu.side-menu--open {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.13) !important;
    box-shadow: 0 10px 24px rgba(61, 5, 12, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.amore-side-nav > ul > li > .side-menu.side-menu--active::after {
    content: "";
    position: absolute;
    top: 11px;
    right: 0;
    display: block !important;
    width: 3px;
    height: 24px;
    border-radius: 3px 0 0 3px;
    background: var(--amore-rose);
}

.amore-side-nav .side-menu--active .side-menu__icon,
.amore-side-nav .side-menu--open .side-menu__icon {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.13) !important;
    transform: scale(1.03);
}

.amore-side-nav .side-menu--active .side-menu__title {
    color: var(--amore-white) !important;
    font-weight: 750;
}

.amore-side-nav > ul ul {
    margin: 5px 0 8px 15px;
    padding: 4px 3px 4px 8px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background: transparent !important;
}

.amore-side-nav > ul ul .side-menu {
    min-height: 38px;
    margin: 1px 0;
    padding: 3px 8px;
    border-radius: 10px;
}

.amore-side-nav > ul ul .side-menu__icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border: 0;
    background: transparent;
}

.amore-side-nav > ul ul .side-menu__icon i,
.amore-side-nav > ul ul .side-menu__icon svg {
    width: 15px;
    height: 15px;
    font-size: 13px;
    line-height: 15px;
}

.amore-side-nav > ul ul .side-menu__title {
    margin-left: 7px;
    font-size: 12px;
    font-weight: 550;
}

.amore-side-nav > ul ul .side-menu.side-menu--active {
    background: rgba(255, 255, 255, 0.105) !important;
}

@media (max-width: 1279px) {
    .amore-side-nav {
        width: 86px;
        padding-right: 12px;
    }

    .amore-side-nav .amore-side-nav__brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .amore-side-nav__logo-wrap {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 14px;
    }

    .amore-side-nav__logo {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }

    .amore-side-nav h4,
    .amore-side-nav .side-menu__title,
    .amore-side-nav .side-menu__sub-icon {
        display: none !important;
    }

    .amore-side-nav .side-menu {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .amore-side-nav > ul ul {
        margin-left: 0;
        padding-left: 3px;
        border-left: 0;
    }
}

@media (max-width: 767px) {
    .amore-side-nav {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .amore-side-nav .side-menu,
    .amore-side-nav .side-menu__icon {
        transition: none;
    }
}
