/* Quick Menu Styles */
.quick-menu-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Base Button & Wrapper */
.quick-menu-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.quick-menu-button {
    width: 100px;
    height: 100px;
    background-color: #1e3a8a;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    overflow: hidden;
}

.quick-menu-button .icon {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
}

.quick-menu-button .text {
    font-size: 16px;
    font-weight: 550;
}

/* Expanded Menu */
.quick-menu-items {
    position: absolute;
    bottom: 5px;
    /* Offset slightly to prevent peeking out below circular button */
    left: 0;
    width: 100px;
    background-color: #102a63;
    border-radius: 50px;
    /* Match half of width for perfect circle */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0 90px;
    /* Space for items + space for base button */
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0.8);
    transform-origin: bottom;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.quick-menu-wrapper:hover .quick-menu-items {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1) translateY(0);
}

/* Base button adjustment on hover */
.quick-menu-wrapper:hover .quick-menu-button {
    box-shadow: none;
    background-color: #2546a3;
    /* Lighten slightly or keep same */
}

/* Individual Menu Items */
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    margin-bottom: 28px;
    transition: all 0.25s ease;
    width: 100%;
}

.menu-item:hover {
    color: #fff;
    transform: translateY(-2px);
}

.menu-item .item-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.menu-item .item-text {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

/* Top Button */
.go-top-button {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.go-top-button:hover {
    background-color: #f9fafb;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.go-top-button svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.2 !important;
}

/* Global Icon Thickness */
.quick-menu-wrapper svg,
.mobile-bottom-bar svg,
.go-top-button svg {
    stroke-width: 1.2 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quick-menu-container {
        right: 20px;
        bottom: 20px;
        gap: 10px;
    }

    .quick-menu-button {
        width: 70px;
        height: 70px;
    }

    .quick-menu-button .icon {
        width: 22px;
        height: 22px;
    }

    .quick-menu-button .text {
        font-size: 12px;
    }

    .quick-menu-items {
        width: 70px;
        border-radius: 35px;
        bottom: 5px;
        padding-bottom: 80px;
    }

    .go-top-button {
        width: 60px;
        height: 60px;
    }
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background-color: #1B45A8;
    /* Teal color from image */
    z-index: 10001;
    justify-content: space-around;
    align-items: center;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    padding: 0 10px;
}

.mobile-bottom-bar .bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    flex: 1;
    height: 100%;
}

.mobile-bottom-bar .bar-item .icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.mobile-bottom-bar .bar-item .icon svg {
    width: 100%;
    height: 100%;
}

.mobile-bottom-bar .bar-item .text {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Mobile Responsive Override */
@media (max-width: 768px) {
    .quick-menu-container {
        display: none !important;
        /* Hide floating menu on mobile */
    }

    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: 75px;
    }
}