/* Enhanced Menu Section Styles */

.menu-selection {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.menu-selection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.menu-selection h2 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.menu-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Menu Categories Tabs */
.menu-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.menu-tab {
    padding: 15px 30px;
    border: none;
    background: var(--white);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.menu-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.menu-tab:hover::before {
    left: 100%;
}

.menu-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.menu-tab.active {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* Menu Content */
.menu-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-content.active {
    opacity: 1;
    animation: fadeInUp 0.6s ease;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Menu Package Cards */
.menu-package {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-package::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.menu-package:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.package-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    background: linear-gradient(135deg, #ff6b35, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-content h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-content h4::before {
    content: '🍽️';
    font-size: 1rem;
}

.package-content ul {
    list-style: none;
    margin-bottom: 1rem;
}

.package-content li {
    padding: 0.3rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.package-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.select-package {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.select-package:hover {
    background: linear-gradient(135deg, #2980b9, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Detailed Menu Styles */
.detailed-menu {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.menu-section {
    margin-bottom: 3rem;
}

.menu-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Menu Table Styles */
.menu-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.menu-table thead {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: var(--white);
}

.menu-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.menu-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.menu-table tbody tr:last-child td {
    border-bottom: none;
}

/* Food Type Badges */
.veg, .non-veg, .dessert, .beverage {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.veg {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
}

.non-veg {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: var(--white);
}

.dessert {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: var(--white);
}

.beverage {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: var(--white);
}

/* Menu Notes */
.menu-notes {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid #f39c12;
    margin-top: 2rem;
}

.menu-notes h4 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-notes ul {
    list-style: none;
    color: #856404;
}

.menu-notes li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.menu-notes li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

/* Menu Customization */
.menu-customization {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.menu-customization::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.menu-customization h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.menu-customization p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.menu-customization .btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.menu-customization .btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
}

/* Menu Content Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-content {
    transition: all 0.3s ease;
}

.menu-content.active {
    animation: fadeInUp 0.6s ease;
}

/* Enhanced Package Selection */
.menu-package {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.menu-package:hover {
    border-color: rgba(52, 152, 219, 0.3);
}

.menu-package.selected {
    border-color: #3498db;
    background: linear-gradient(135deg, #f8f9ff, #e8f4fd);
}

/* Loading Animation for Buttons */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-selection h2 {
        font-size: 2.2rem;
    }
    
    .menu-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-tab {
        width: 100%;
        max-width: 300px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-table {
        font-size: 0.9rem;
    }
    
    .menu-table th,
    .menu-table td {
        padding: 0.7rem 0.5rem;
    }
    
    .package-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .detailed-menu {
        padding: 1rem;
    }
    
    .menu-section h3 {
        font-size: 1.4rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .menu-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .menu-table thead,
    .menu-table tbody,
    .menu-table th,
    .menu-table td,
    .menu-table tr {
        display: block;
    }
    
    .menu-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .menu-table tr {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
        border-radius: 10px;
        padding: 1rem;
        background: var(--white);
    }
    
    .menu-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        padding-bottom: 0.5rem;
        white-space: normal;
    }
    
    .menu-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: var(--primary-color);
    }
}

/* Additional Interactive Elements */
.menu-tab {
    position: relative;
}

.menu-tab.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #f8f9fa;
}

/* Pulse animation for selected packages */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.select-package:active {
    animation: pulse 0.6s;
}

/* Improved hover effects */
.menu-package:hover .package-header h3 {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.menu-package:hover .price {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}