/**
 * App-Style Menu Widget Styles
 */

.reboot-app-menu {
    --background-color: #FFFFFF;
    --menu-active-color: #9B1FE8;
    --active-icon-color: #FFFFFF;
    --default-text-color: #000000;
    --default-icon-color: #333333;

    width: max-content;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transition: none;
    gap: 10px;
    /* Default gap */
}

.reboot-app-menu__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-color, #ffffff);
    z-index: 1;
    /* Main bar color on middle layer */
    pointer-events: none;
}

.reboot-app-menu__shadow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: -1;
    /* Shadow at the very bottom */
    pointer-events: none;
    border-radius: inherit;
}

.reboot-app-menu.fixed {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
}

.reboot-app-menu.transition {
    transition: all 0.3s ease-in-out;
}

.reboot-app-menu.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Menu Items */
.reboot-app-menu__item {
    position: relative;
    width: 60px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    /* Items on top layer */
}

.reboot-app-menu__item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center vertically */
    width: 100%;
    height: 100%;
}

.reboot-app-menu__icon-wrap {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    color: var(--default-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reboot-app-menu__item.active .reboot-app-menu__icon-wrap {
    transform: translateY(-37px);
    /* Float to bubble */
    color: var(--menu-active-color);
}

.reboot-app-menu__icon-wrap i {
    font-size: 20px;
    display: block;
}

.reboot-app-menu__icon-wrap svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: var(--default-icon-color);
}

.reboot-app-menu__item.active .reboot-app-menu__icon-wrap svg {
    fill: var(--menu-active-color);
}

.reboot-app-menu__title {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translate(-50%, 10px);
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    color: var(--default-text-color);
    white-space: nowrap;
}

.reboot-app-menu__item.active .reboot-app-menu__title {
    opacity: 1;
    transform: translate(-50%, -10px) !important;
    /* Center where icon was - User Tweaked */
}

/* Magic Indicator */
.reboot-app-menu__indicator {
    position: absolute;
    top: -35px;
    /* Bigger bubble offset */
    left: 0;
    width: 70px;
    /* Bigger bubble */
    height: 70px;
    background: var(--background-color);
    border-radius: 50%;
    z-index: 0;
    /* Indicator behind the bar */
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
    pointer-events: none;
}

.reboot-app-menu.bubbling .reboot-app-menu__indicator {
    opacity: 1;
}

.reboot-app-menu__indicator::before {
    content: "";
    position: absolute;
    top: 0px;
    /* Moved up 10px */
    left: -21px;
    width: 25px;
    height: 35px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 15px 18px 0 var(--background-color, #ffffff);
}

.reboot-app-menu__indicator::after {
    content: "";
    position: absolute;
    top: 0px;
    /* Moved up 10px */
    right: -21px;
    width: 25px;
    height: 35px;
    background: transparent;
    border-radius: 50%;
    box-shadow: -15px 18px 0 var(--background-color, #ffffff);
}

/* Version 2 Styles */
.reboot-app-menu.v2 .reboot-app-menu__item {
    flex-direction: column;
}

.reboot-app-menu.v2 .reboot-app-menu__title {
    position: absolute;
    bottom: auto;
    top: 0;
    background: var(--menu-active-color);
    color: #fff;
    padding: 5px 5px;
    border-radius: 15px;
    border: 4px solid var(--background-color);
    transform: translate(-50%, 30%) !important;

    left: 50%;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reboot-app-menu.v2 .reboot-app-menu__item.active .reboot-app-menu__title {
    transform: translate(-50%, -55px);
}

/* Version 3 Styles */
.reboot-app-menu.v3 .reboot-app-menu__item.active .reboot-app-menu__icon-wrap {
    color: var(--active-icon-color);
}

.reboot-app-menu.v3 .reboot-app-menu__indicator::after {
    content: '';
    position: absolute;
    background: var(--menu-active-color);
    border-radius: 100%;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    width: calc(100% - 10px);
    z-index: -1;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 767px) {
    .reboot-app-menu.fixed {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        bottom: 0 !important;
        border-radius: 0 !important;
    }

    .reboot-app-menu.fixed .reboot-app-menu__bar,
    .reboot-app-menu.fixed .reboot-app-menu__shadow {
        border-radius: 0 !important;
    }
}

