/* ========================================
   MODERN BOTTOM NAVIGATION BAR
   ======================================== */

.appBottomBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 75px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); 
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    z-index: 99999;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
} 

.appBarInner {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Button Styles */
.appBarButton {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--qrmenu-text-secondary, #666);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 16px;
    position: relative;
    min-width: 70px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex: 1;
}

.appBarButton i {
    font-size: 24px;
    margin-bottom: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.appBarButton span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

/* Hover Effect */
.appBarButton:hover {
    background: rgba(var(--qrmenu-primary-rgb, 255, 87, 34), 0.08);
    color: var(--qrmenu-primary, #ff5722);
    transform: translateY(-2px);
}

.appBarButton:hover i {
    transform: scale(1.1);
}

/* Active State */
.appBarButton.is-active {
    color: var(--qrmenu-primary, #ff5722);
    background: rgba(var(--qrmenu-primary-rgb, 255, 87, 34), 0.12);
}

.appBarButton.is-active i {
    color: var(--qrmenu-primary, #ff5722);
    transform: scale(1.1);
}

.appBarButton.is-active span {
    color: var(--qrmenu-primary, #ff5722);
    font-weight: 700;
}

/* Center Main Button - Floating Style */
.appBarButton-main {
    position: relative;
    top: -28px;
    margin: 0 -10px;
    z-index: 10;
}

.appBarMainButton {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--qrmenu-primary, #ff5722) 0%, var(--qrmenu-primary-hover, #ff784e) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(var(--qrmenu-primary-rgb, 255, 87, 34), 0.4),
                0 4px 12px rgba(var(--qrmenu-primary-rgb, 255, 87, 34), 0.3);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid rgba(255, 255, 255, 0.95);
}

.appBarMainButton::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--qrmenu-primary, #ff5722) 0%, var(--qrmenu-primary-hover, #ff784e) 100%);
    opacity: 0;
    transform: scale(1.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.appBarButton-main:hover .appBarMainButton,
.appBarButton-main.is-active .appBarMainButton {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(var(--qrmenu-primary-rgb, 255, 87, 34), 0.5),
                0 6px 16px rgba(var(--qrmenu-primary-rgb, 255, 87, 34), 0.4);
}

.appBarButton-main:hover .appBarMainButton::before,
.appBarButton-main.is-active .appBarMainButton::before {
    opacity: 0.3;
    transform: scale(1.4);
}

.appBarButton-main:active .appBarMainButton {
    transform: translateY(-2px) scale(0.98);
}

/* Ripple Effect */
.appBarButton {
    position: relative;
    overflow: hidden;
}

.appBarButton::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(var(--qrmenu-primary-rgb, 255, 87, 34), 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.appBarButton:active::after {
    width: 200px;
    height: 200px;
}

/* Dark Mode Support */
body.theme-dark .appBottomBar {
    background: rgba(30, 30, 30, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

body.theme-dark .appBarButton {
    color: var(--qrmenu-text-secondary, #a0a0a0);
}

body.theme-dark .appBarButton:hover {
    background: rgba(var(--qrmenu-primary-rgb, 255, 87, 34), 0.15);
    color: var(--qrmenu-primary, #ff784e);
}

body.theme-dark .appBarButton.is-active {
    background: rgba(var(--qrmenu-primary-rgb, 255, 87, 34), 0.2);
    color: var(--qrmenu-primary, #ff784e);
}

body.theme-dark .appBarMainButton {
    border-color: rgba(30, 30, 30, 0.95);
}

/* Waiter Call Button Special */
.appBarButton[id="call-waiter-btn"] {
    position: relative;
}

.appBarButton[id="call-waiter-btn"]::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: var(--qrmenu-primary, #ff5722);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(var(--qrmenu-primary-rgb, 255, 87, 34), 0.8);
}

.appBarButton[id="call-waiter-btn"]:hover::before,
.appBarButton[id="call-waiter-btn"].is-active::before {
    opacity: 1;
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Responsive Design */
@media screen and (max-width: 480px) {
    .appBottomBar {
        height: 70px;
    }
    
    .appBarButton {
        padding: 6px 12px;
        min-width: 60px;
    }
    
    .appBarButton i {
        font-size: 22px;
    }
    
    .appBarButton span {
        font-size: 10px;
    }
    
    .appBarMainButton {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .appBarButton-main {
        top: -4px;
    }
}

/* Smooth transitions */
.appBarButton * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accessibility */
.appBarButton:focus {
    outline: 2px solid var(--qrmenu-primary, #ff5722);
    outline-offset: 2px;
}

.appBarButton:focus:not(:focus-visible) {
    outline: none;
}

/* ========================================
   MAIN CONTENT PADDING FOR BOTTOM BAR
   ======================================== */

/* Add bottom padding to main content to prevent content from going under bottom bar */
main#main-content,
.page-content,
.col.position-relative.page-content {
    padding-bottom: 0px  !important; /* Bottom bar height (75px) + extra space (10px) */
    box-sizing: border-box;
}

/* Responsive bottom padding */
@media screen and (max-width: 480px) {
    main#main-content,
    .page-content,
    .col.position-relative.page-content {
        padding-bottom: 0px !important; /* Mobile: bottom bar (70px) + extra space (10px) */
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .appBarButton,
    .appBarMainButton,
    .appBarButton::after,
    .appBarMainButton::before {
        transition: none !important;
        animation: none !important;
    }
}

