/* Menu Page Specific Styles */

/* Menu Hero Section */
.menu-hero {
    background: linear-gradient(rgba(6, 24, 22, 0.85), rgba(26, 92, 72, 0.85)), 
                url('images/background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.menu-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.menu-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.menu-hero p {
    font-size: 1.3rem;
    margin: 0 auto 30px;
    color: #f0f0f0;
    max-width: 750px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.menu-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.menu-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.menu-tag:hover {
    background: rgba(255, 180, 0, 0.2);
    transform: translateY(-3px);
}

.menu-tag i {
    color: #ffb400;
}

.halal-tag {
    background: rgba(46, 125, 50, 0.3);
    border-color: #2e7d32;
}

.halal-tag i {
    color: #4caf50;
}

/* Menu Categories Navigation */
.menu-categories {
    background-color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 82px;
    z-index: 998;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f0f0f0;
}

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-link {
    padding: 12px 25px;
    background-color: #f9f9f9;
    color: #0c3b2e;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-link:hover {
    background-color: #ffb400;
    color: #0c3b2e;
    transform: translateY(-3px);
}

.category-link.active {
    background-color: #0c3b2e;
    color: white;
    border-color: #ffb400;
}

/* Menu Sections */
.menu-section {
    padding: 80px 0;
}

.menu-section.alt-bg {
    background-color: #fef9f3;
}

.menu-section .section-title {
    margin-bottom: 50px;
}

.menu-section .section-title h2 {
    font-size: 2.5rem;
}

/* Menu Items - New Layout with Image Preview */
.menu-items {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.menu-item-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.menu-item-card.featured {
    border: 2px solid #ffb400;
    background: linear-gradient(to bottom, #fffaf0, white);
}

.menu-item-preview {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item-card:hover .menu-item-image {
    transform: scale(1.05);
}

.menu-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 59, 46, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 20px;
}

.menu-item-card:hover .menu-preview-overlay {
    opacity: 1;
}

.preview-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffb400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.preview-order-btn {
    background: linear-gradient(to right, #ffb400, #ff9800);
    color: #0c3b2e;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 180, 0, 0.3);
}

.preview-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 180, 0, 0.4);
    background: linear-gradient(to right, #ff9800, #ffb400);
}

.menu-item-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-info h3 {
    font-size: 1.6rem;
    color: #0c3b2e;
    margin-bottom: 12px;
}

.menu-item-info p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.menu-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.menu-item-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff9800;
}

.order-btn {
    background: linear-gradient(to right, #0c3b2e, #1a5c48);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-btn:hover {
    background: linear-gradient(to right, #1a5c48, #0c3b2e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 59, 46, 0.2);
}

.order-btn:before {
    content: '+';
    font-weight: 700;
    font-size: 1.2rem;
}

.dietary-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.dietary-tag {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.dietary-tag.vegetarian {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.dietary-tag.halal {
    background-color: #e3f2fd;
    color: #1565c0;
    font-size: 0.8rem;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(to right, #ffb400, #ff9800);
    color: #0c3b2e;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 180, 0, 0.3);
    z-index: 2;
}

/* Order Cart Button */
.order-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(to right, #ffb400, #ff9800);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.order-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.order-cart-btn i {
    font-size: 24px;
    color: #0c3b2e;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #0c3b2e;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid white;
}

/* Order Modal */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: #ffb400;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffb400;
}

.modal-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

/* Order Steps */
.order-step {
    display: none;
}

.order-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.order-items {
    margin-bottom: 20px;
}

.empty-order {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #0c3b2e;
}

.order-item-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    color: #0c3b2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
}

.quantity-btn:hover {
    background: #f0f0f0;
    border-color: #ffb400;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 5px;
}

.remove-btn:hover {
    color: #ff3333;
}

.order-item-total {
    font-weight: 700;
    color: #ff9800;
    font-size: 1.1rem;
}

.order-summary {
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0c3b2e;
}

.order-total span:last-child {
    color: #ff9800;
    font-size: 1.5rem;
}

/* Customer Form */
.customer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #0c3b2e;
    font-size: 0.95rem;
}

.form-group label.required:after {
    content: ' *';
    color: #ff6b6b;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0c3b2e;
    box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.1);
}

.form-help {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Radio and Checkbox Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.radio-label:hover {
    background-color: #f9f9f9;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #0c3b2e;
    background-color: #0c3b2e;
}

.radio-label input[type="radio"]:checked + .radio-custom:after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.checkbox-label:hover {
    background-color: #f9f9f9;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #0c3b2e;
    background-color: #0c3b2e;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.terms-agreement a {
    color: #0c3b2e;
    text-decoration: none;
    font-weight: 600;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

/* Card Details */
.card-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Confirmation Step */
.confirmation-content {
    text-align: center;
}

.confirmation-icon {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 20px;
}

.confirmation-content h4 {
    font-size: 1.5rem;
    color: #0c3b2e;
    margin-bottom: 10px;
}

.confirmation-content > p {
    color: #666;
    margin-bottom: 30px;
}

.confirmation-details {
    text-align: left;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.confirmation-section {
    margin-bottom: 25px;
}

.confirmation-section:last-child {
    margin-bottom: 0;
}

.confirmation-section h5 {
    font-size: 1.1rem;
    color: #0c3b2e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirmation-section h5 i {
    color: #ffb400;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.confirmation-item:last-child {
    border-bottom: none;
}

.confirmation-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 2px solid #ddd;
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0c3b2e;
}

.confirmation-total span:last-child {
    color: #ff9800;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-dot.active {
    background-color: #0c3b2e;
    transform: scale(1.2);
}

/* Modal Footer */
.modal-footer {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.step-buttons-right {
    display: flex;
    gap: 10px;
}

.btn-prev,
.btn-next,
.btn-clear,
.btn-confirm {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-prev {
    background: #f8f9fa;
    border: 2px solid #ddd;
    color: #666;
}

.btn-prev:hover {
    background: #e9ecef;
    border-color: #ccc;
}

.btn-next {
    background: linear-gradient(to right, #0c3b2e, #1a5c48);
    color: white;
}

.btn-next:hover {
    background: linear-gradient(to right, #1a5c48, #0c3b2e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 59, 46, 0.2);
}

.btn-clear {
    background: #f8f9fa;
    border: 2px solid #ddd;
    color: #666;
}

.btn-clear:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.btn-confirm {
    background: linear-gradient(to right, #ffb400, #ff9800);
    color: #0c3b2e;
    padding: 12px 30px;
}

.btn-confirm:hover {
    background: linear-gradient(to right, #ff9800, #ffb400);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 180, 0, 0.3);
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.success-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon {
    font-size: 64px;
    color: #4caf50;
    margin-bottom: 20px;
}

.success-content h3 {
    font-size: 2rem;
    color: #0c3b2e;
    margin-bottom: 15px;
}

.success-content > p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.success-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    margin-bottom: 25px;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.success-details p {
    margin: 10px 0;
    color: #555;
}

.success-details strong {
    color: #0c3b2e;
}

.btn-success {
    background: linear-gradient(to right, #0c3b2e, #1a5c48);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-success:hover {
    background: linear-gradient(to right, #1a5c48, #0c3b2e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 59, 46, 0.2);
}

/* Order Confirmation Message */
.order-confirmation {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(to right, #4caf50, #2e7d32);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    animation: slideIn 0.5s ease, fadeOut 0.5s ease 1.5s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.order-confirmation i {
    font-size: 1.2rem;
}

/* Menu Banner */
.menu-banner {
    background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.banner-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.banner-content .btn {
    background: linear-gradient(to right, #ffb400, #ff9800);
    color: #0c3b2e;
    font-size: 1.1rem;
    padding: 15px 40px;
}

/* Footer Active Link */
.footer-links a.active {
    color: #ffb400;
    font-weight: 600;
}

.footer-links a.active i {
    color: #ffb400;
}

/* Enhanced Terms & Conditions Styling */
.terms-agreement {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.terms-agreement .checkbox-label {
    margin: 0;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.terms-agreement .checkbox-label:hover {
    background: rgba(12, 59, 46, 0.05);
    border-color: rgba(12, 59, 46, 0.1);
}

.terms-agreement .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #0c3b2e;
    border-color: #0c3b2e;
}

.terms-agreement .checkbox-label span:last-child {
    color: #333;
    line-height: 1.5;
    font-size: 0.95rem;
}

.terms-agreement .checkbox-label a {
    color: #0c3b2e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.terms-agreement .checkbox-label a:hover {
    color: #ffb400;
    text-decoration: underline;
}

.terms-agreement .checkbox-label a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffb400;
    transition: width 0.3s ease;
}

.terms-agreement .checkbox-label a:hover:after {
    width: 100%;
}

/* Form Validation Styles */
.form-group input:invalid,
.form-group textarea:invalid,
.form-group select:invalid {
    border-color: #ff6b6b;
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
    border-color: #4caf50;
}

.form-group input:focus:invalid,
.form-group textarea:focus:invalid,
.form-group select:focus:invalid {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group input:focus:valid,
.form-group textarea:focus:valid,
.form-group select:focus:valid {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Required field indicator */
.form-group label:after {
    content: ' *';
    color: #ff6b6b;
    font-weight: bold;
}

.form-group label.optional:after {
    content: ' (optional)';
    color: #666;
    font-weight: normal;
    font-size: 0.9em;
}

/* Success modal enhancements */
.success-modal .success-details {
    background: linear-gradient(135deg, #f8fff8 0%, #f0f9f0 100%);
    border: 1px solid #4caf50;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    text-align: left;
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.success-modal .success-details:before {
    content: '📋';
    position: absolute;
    top: -15px;
    left: 20px;
    background: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 1.2rem;
    border: 1px solid #4caf50;
}

.success-modal .success-details p {
    margin: 12px 0;
    color: #333;
    line-height: 1.5;
}

.success-modal .success-details strong {
    color: #0c3b2e;
    min-width: 160px;
    display: inline-block;
}

/* Step indicator improvements */
.step-indicator {
    position: relative;
    margin: 20px 0 30px;
}

.step-indicator:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #e0e0e0;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-dot.active {
    background-color: #0c3b2e;
    border-color: #0c3b2e;
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.1);
}

.step-dot.completed {
    background-color: #4caf50;
    border-color: #4caf50;
}

.step-dot:before {
    content: attr(data-step);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.step-dot.active:before {
    color: #0c3b2e;
    font-weight: 700;
}

/* Confirmation step improvements */
.confirmation-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.confirmation-section:hover {
    border-color: #0c3b2e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.confirmation-section h5 {
    color: #0c3b2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffb400;
    display: flex;
    align-items: center;
    gap: 10px;
}

.confirmation-section h5 i {
    color: #ffb400;
    font-size: 1.1rem;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    transition: all 0.3s ease;
}

.confirmation-item:hover {
    background: #f9f9f9;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -10px;
    border-radius: 5px;
}

.confirmation-item:last-child {
    border-bottom: none;
}

.confirmation-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 2px solid #ddd;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0c3b2e;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 15px 20px;
}

.confirmation-total span:last-child {
    color: #ff9800;
    font-size: 1.4rem;
}

/* Receipt Styles - Enhanced */
.receipt-header {
    background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.receipt-header h4 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.receipt-header: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;
    opacity: 0.3;
}

.receipt-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.receipt-section:hover {
    border-color: #0c3b2e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.receipt-section h5 {
    color: #0c3b2e;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffb400;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    transition: all 0.3s ease;
}

.receipt-item:hover {
    background: #f9f9f9;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -10px;
    border-radius: 5px;
}

.receipt-item:last-child {
    border-bottom: none;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 2px solid #0c3b2e;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.3rem;
    color: #0c3b2e;
}

.receipt-total-amount {
    color: #ff9800;
    font-size: 1.4rem;
}

.receipt-note {
    background: #f8f9fa;
    border: 1px solid #4caf50;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 25px 0;
}

.receipt-note p {
    margin: 8px 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.receipt-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.print-receipt-btn {
    background: linear-gradient(to right, #0c3b2e, #1a5c48);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(12, 59, 46, 0.2);
}

.print-receipt-btn:hover {
    background: linear-gradient(to right, #1a5c48, #0c3b2e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 59, 46, 0.3);
}

.status-confirmed {
    color: #4caf50;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* AI Assistant Styles - FIXED FOR MOBILE */
.ai-assistant-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.ai-assistant-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ai-assistant-toggle i {
    font-size: 24px;
    color: #ffb400;
}

@keyframes pulse {
    0% { box-shadow: 0 5px 20px rgba(12, 59, 46, 0.4); }
    50% { box-shadow: 0 5px 25px rgba(12, 59, 46, 0.6); }
    100% { box-shadow: 0 5px 20px rgba(12, 59, 46, 0.4); }
}

.ai-assistant-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transform-origin: bottom right;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-header {
    background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
    color: white;
    padding: 15px 20px;
    flex-shrink: 0;
}

.ai-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffb400 0%, #ff9800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #0c3b2e;
}

.ai-info {
    flex: 1;
}

.ai-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.ai-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.ai-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ai-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    min-height: 0;
}

.ai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 0;
}

.ai-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
    animation: messageIn 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message-bot {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ai-message-user {
    background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-content p {
    margin: 0 0 10px 0;
}

.message-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 5px;
    text-align: right;
}

.ai-quick-questions {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.quick-question {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.85rem;
    color: #0c3b2e;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.quick-question:hover {
    background: #e9ecef;
    border-color: #0c3b2e;
    transform: translateY(-2px);
}

.quick-question i {
    color: #ffb400;
    font-size: 0.8rem;
}

.ai-input-container {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.ai-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.ai-user-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.ai-user-input:focus {
    border-color: #0c3b2e;
    box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.1);
}

.ai-send-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ai-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(12, 59, 46, 0.2);
}

.ai-send-btn i {
    font-size: 18px;
}

.ai-input-hint {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* Menu item suggestion in AI chat */
.ai-menu-suggestion {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #e0e0e0;
}

.ai-menu-suggestion h5 {
    margin: 0 0 10px 0;
    color: #0c3b2e;
    font-size: 1rem;
}

.ai-menu-suggestion p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #666;
}

.ai-suggestion-price {
    color: #ff9800;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Typing indicator */
.ai-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* AI thinking indicator */
.ai-thinking {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-style: italic;
    color: #666;
}

.ai-thinking i {
    color: #ffb400;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile close button for AI */
.ai-mobile-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 2001;
}

/* Fix for scroll on mobile */
.ai-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ai-messages::-webkit-scrollbar-thumb {
    background: #0c3b2e;
    border-radius: 3px;
}

.ai-messages::-webkit-scrollbar-thumb:hover {
    background: #1a5c48;
}

/* Order History Button Styles */
#orderHistoryBtn {
    animation: pulseHistory 3s infinite;
    position: fixed;
    bottom: 150px;
    right: 30px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1000;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

@keyframes pulseHistory {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
    }
    50% { 
        box-shadow: 0 4px 20px rgba(106, 17, 203, 0.6);
    }
}

#orderHistoryBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .menu-items {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-hero h1 {
        font-size: 2.5rem;
    }
    
    .menu-hero p {
        font-size: 1.1rem;
    }
    
    .menu-categories {
        top: 82px;
    }
    
    .category-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-link {
        padding: 10px 20px;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    .menu-items {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .menu-item-info {
        padding: 20px;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .menu-tags {
        flex-direction: column;
        align-items: center;
    }
    
    .order-cart-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        max-height: calc(95vh - 180px);
    }
    
    .card-details-row {
        grid-template-columns: 1fr;
    }
    
    .step-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-buttons-right {
        width: 100%;
    }
    
    .btn-prev,
    .btn-next,
    .btn-clear,
    .btn-confirm {
        width: 100%;
        justify-content: center;
    }
    
    .success-content {
        padding: 30px 20px;
    }
    
    .order-confirmation {
        top: 80px;
        right: 20px;
        left: 20px;
        text-align: center;
        justify-content: center;
    }
    
    .terms-agreement {
        padding: 15px;
    }
    
    .terms-agreement .checkbox-label {
        padding: 12px;
    }
    
    .success-modal .success-details {
        padding: 20px 15px;
    }
    
    .success-modal .success-details strong {
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .confirmation-section {
        padding: 15px;
    }
    
    .confirmation-total {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* AI Assistant Mobile Fixes */
    .ai-assistant-container {
        width: 350px;
        height: 500px;
        right: 20px;
        bottom: 80px;
    }
    
    .ai-assistant-toggle {
        right: 20px;
        bottom: 80px;
    }
    
    .ai-mobile-close {
        display: flex;
    }
    
    .ai-close-btn {
        display: none;
    }
    
    /* Receipt styles for mobile */
    .receipt-header h4 {
        font-size: 1.2rem;
    }
    
    .receipt-section {
        padding: 15px;
    }
    
    .receipt-section h5 {
        font-size: 1.1rem;
    }
    
    .receipt-item {
        font-size: 0.9rem;
    }
    
    .receipt-total {
        font-size: 1.2rem;
    }
    
    .receipt-total-amount {
        font-size: 1.3rem;
    }
    
    .print-receipt-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
    
    /* Order history button positioning */
    #orderHistoryBtn {
        bottom: 140px !important;
        right: 15px !important;
        font-size: 0.8rem !important;
        padding: 10px 12px !important;
    }
}

/* FIXED FOR 480px AND BELOW - AI ASSISTANT TOGGLE IS NOW CLICKABLE */
@media (max-width: 480px) {
    .menu-hero h1 {
        font-size: 2rem;
    }
    
    .menu-section {
        padding: 60px 0;
    }
    
    .menu-section .section-title h2 {
        font-size: 2rem;
    }
    
    .menu-item-info h3 {
        font-size: 1.4rem;
    }
    
    .menu-item-price {
        font-size: 1.6rem;
    }
    
    .menu-item-bottom {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .order-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .success-content h3 {
        font-size: 1.5rem;
    }
    
    .success-details {
        padding: 15px;
    }
    
    .terms-agreement .checkbox-label span:last-child {
        font-size: 0.9rem;
    }
    
    .success-modal .success-details p {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .success-modal .success-details strong {
        min-width: auto;
    }
    
    .step-dot:before {
        display: none;
    }
    
    .confirmation-item {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    /* CRITICAL FIX: AI Assistant now clickable on mobile */
    .ai-assistant-container {
        width: calc(100% - 30px);
        height: 70vh;
        right: 15px;
        left: 15px;
        bottom: 15px;
        border-radius: 20px;
        z-index: 9999;
    }
    
    .ai-assistant-toggle {
        width: 55px;
        height: 55px;
        right: 15px;
        bottom: 200px;
        z-index: 9999;
        background: linear-gradient(135deg, #0c3b2e 0%, #1a5c48 100%);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        min-width: 55px;
        min-height: 55px;
    }
    
    .ai-assistant-toggle i {
        font-size: 22px;
    }
    
    .quick-question {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .ai-messages {
        padding: 15px;
    }
    
    .ai-input-container {
        padding: 12px 15px;
    }
    
    .ai-user-input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .ai-send-btn {
        width: 45px;
        height: 45px;
    }
    
    /* Ensure order cart button doesn't overlap */
    .order-cart-btn {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        z-index: 9998;
    }
    
    /* Order History Button positioning */
    #orderHistoryBtn {
        bottom: 140px;
        right: 15px;
        font-size: 0.8rem;
        padding: 10px 12px;
        z-index: 9997;
    }
    
    /* Adjust spacing between buttons */
    .ai-assistant-toggle,
    #orderHistoryBtn,
    .order-cart-btn {
        margin: 5px;
    }
    
    /* Receipt styles for small mobile */
    .receipt-header {
        padding: 15px;
    }
    
    .receipt-header h4 {
        font-size: 1.1rem;
    }
    
    .receipt-section {
        padding: 12px;
    }
    
    .receipt-section h5 {
        font-size: 1rem;
    }
    
    .receipt-item {
        font-size: 0.85rem;
    }
    
    .receipt-total {
        font-size: 1.1rem;
        padding: 15px 0;
    }
    
    .receipt-total-amount {
        font-size: 1.2rem;
    }
    
    .receipt-note {
        padding: 15px;
    }
    
    .receipt-note p {
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .ai-assistant-container {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
    }
    
    .ai-header-content {
        gap: 10px;
    }
    
    .ai-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .ai-info h4 {
        font-size: 1.1rem;
    }
    
    .ai-info p {
        font-size: 0.8rem;
    }
    
    .ai-assistant-toggle {
        width: 50px;
        height: 50px;
        bottom: 180px;
    }
    
    .ai-assistant-toggle i {
        font-size: 20px;
    }
    
    #orderHistoryBtn {
        bottom: 120px;
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .order-cart-btn {
        width: 50px;
        height: 50px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 320px) {
    .ai-assistant-toggle {
        width: 45px;
        height: 45px;
        bottom: 160px;
        right: 10px;
    }
    
    .ai-assistant-toggle i {
        font-size: 18px;
    }
    
    #orderHistoryBtn {
        bottom: 110px;
        right: 10px;
        font-size: 0.7rem;
        padding: 6px 8px;
    }
    
    .order-cart-btn {
        width: 45px;
        height: 45px;
        right: 10px;
        bottom: 10px;
    }
    
    .menu-item-info h3 {
        font-size: 1.2rem;
    }
    
    .menu-item-price {
        font-size: 1.4rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .ai-assistant-toggle,
    .order-cart-btn,
    #orderHistoryBtn,
    .quick-question,
    .order-btn,
    .preview-order-btn {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .ai-assistant-toggle:active,
    .order-cart-btn:active,
    #orderHistoryBtn:active {
        transform: scale(0.95);
    }
    
    /* Increase touch target size for mobile */
    .ai-assistant-toggle,
    .order-cart-btn,
    #orderHistoryBtn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .quick-question {
        min-height: 36px;
    }
}

/* Show desktop close button on larger screens */
@media (min-width: 481px) {
    .ai-mobile-close {
        display: none !important;
    }
    
    .ai-close-btn {
        display: flex;
    }
}

/* Print styles for receipt */
@media print {
    .success-modal {
        position: static !important;
        background: white !important;
    }
    
    .success-content {
        box-shadow: none !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .btn-success, .ai-assistant-toggle, .order-cart-btn, #orderHistoryBtn {
        display: none !important;
    }
    
    .print-receipt-btn {
        display: none !important;
    }
}

/* Order History Modal Styles */
.order-history-modal .history-content::-webkit-scrollbar {
    width: 6px;
}

.order-history-modal .history-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.order-history-modal .history-content::-webkit-scrollbar-thumb {
    background: #0c3b2e;
    border-radius: 3px;
}

@media (max-width: 480px) {
    .order-history-modal {
        padding: 10px;
    }
    
    .history-content {
        padding: 15px !important;
    }
}