/* Button Menu Overlay Styles - Following MenuBoard/BookingCalendar Pattern */
#button-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 65%; /* Only cover left column (65% of screen) */
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#button-menu-overlay.show {
    opacity: 1;
}

#button-menu-container {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95), rgba(25, 25, 25, 0.95));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(241, 196, 15, 0.4);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(241, 196, 15, 0.1);
    color: #e0e0e0;
    max-height: calc(100vh - 150px);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.button-menu-content {
    padding: 0;
}

.button-menu-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(243, 156, 18, 0.08));
    border-bottom: 2px solid rgba(241, 196, 15, 0.4);
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.button-menu-header h2 {
    color: #f1c40f;
    text-align: center;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    flex: 1;
}

.close-button {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.9), rgba(25, 25, 25, 0.9));
    border: 2px solid rgba(241, 196, 15, 0.3);
    color: #f1c40f;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(243, 156, 18, 0.15));
    border-color: #f1c40f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(241, 196, 15, 0.3);
}

.button-menu-buttons {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.8));
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

.menu-button {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.8));
    border: 2px solid rgba(241, 196, 15, 0.3);
    border-radius: 10px;
    padding: 20px 18px; /* Increased from 15px to 20px for easier touch */
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-button:last-child {
    margin-bottom: 0;
}

.menu-button:hover {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(243, 156, 18, 0.08));
    border-color: #f1c40f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(241, 196, 15, 0.3);
}

.menu-button:active {
    transform: translateY(0);
}

.button-label {
    color: #f1c40f;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.button-description {
    color: #e0e0e0;
    font-size: 0.85em;
    line-height: 1.4;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    #button-menu-overlay {
        width: 100%; /* Cover full screen on mobile */
    }
    
    #button-menu-container {
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        max-width: 400px;
        top: 60px;
    }
    
    .button-menu-header {
        padding: 12px 15px;
    }
    
    .button-menu-header h2 {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .button-menu-buttons {
        padding: 15px;
    }
      .menu-button {
        padding: 17px 15px; /* Increased from 12px to 17px for easier touch */
        margin-bottom: 10px;
    }
    
    .button-label {
        font-size: 1em;
    }
    
    .button-description {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    #button-menu-container {
        width: 98%;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .button-menu-header h2 {
        font-size: 1rem;
    }
      .menu-button {
        padding: 15px 12px; /* Increased from 10px to 15px for easier touch */
    }
}

/* Large screen adjustments to match MenuBoard pattern */
@media (min-width: 1000px) and (orientation: portrait) {
    #button-menu-container {
        max-width: 600px;
        top: 30%;
        left: 50%;
        transform: translateX(-50%);
    }

    .button-menu-header h2 {
        font-size: 1.6rem;
    }

    .button-label {
        font-size: 1.3rem;
    }

    .button-description {
        font-size: 1rem;
    }
}

/* Subtle animation for button interaction */
.menu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.1), transparent);
    transition: left 0.6s ease;
}

.menu-button:hover::before {
    left: 100%;
}
