:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --dark-bg: #1A1A1A;
    --card-bg: #2D2D2D;
    --text-color: #F7F7F7;
    --text-muted: #A0A0A0;
    --glass-bg: rgba(45, 45, 45, 0.9);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Welcome Screen */
.welcome-screen {
    display: none;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    padding: 2rem;
}

.welcome-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.welcome-logo h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.welcome-logo span {
    color: var(--primary-color);
}

.welcome-tagline {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.welcome-message h2 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.order-type-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.order-type-btn {
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.order-type-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.dine-in-btn:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.3);
}

.delivery-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
}

.order-type-btn .btn-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.order-type-btn h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.order-type-btn p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Dine-In Setup Screen */
.dine-in-setup {
    display: none;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    padding: 2rem;
}

.setup-content {
    max-width: 500px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.setup-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.setup-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2.5rem;
}

.setup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setup-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setup-input-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.setup-input-group select {
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

.setup-input-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.start-order-btn {
    background: linear-gradient(135deg, var(--secondary-color), #3db9b0);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.start-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
}

.back-btn-setup,
.back-btn-header {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn-setup:hover,
.back-btn-header:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

/* Menu Screen */
.menu-screen {
    display: none;
    padding-bottom: 100px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Header */
.app-header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Cards */
.menu-item {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
}

.item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background-color: #333;
}

.item-details {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn:hover {
    background-color: var(--primary-color);
}

/* Sticky Footer */
.cart-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    z-index: 100;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.cart-summary {
    display: flex;
    flex-direction: column;
}

.cart-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-total {
    font-weight: 700;
    font-size: 1.1rem;
}

.view-cart-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.view-cart-btn:active {
    transform: scale(0.95);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

#cart-items-list {
    list-style: none;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.cart-item-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-item-remove {
    color: var(--primary-color);
    background: none;
    font-weight: 700;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.modal-footer {
    padding: 1.5rem;
    text-align: center;
}

.confirm-btn {
    background-color: #4ECDC4;
    color: #1A1A1A;
    border: none;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.confirm-btn:hover {
    background-color: #3db9b0;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4ECDC4;
    color: #1A1A1A;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn:hover {
    background-color: var(--primary-color);
}

/* Sticky Footer */
.cart-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    z-index: 100;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.cart-summary {
    display: flex;
    flex-direction: column;
}

.cart-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-total {
    font-weight: 700;
    font-size: 1.1rem;
}

.view-cart-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.view-cart-btn:active {
    transform: scale(0.95);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

#cart-items-list {
    list-style: none;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.cart-item-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-item-remove {
    color: var(--primary-color);
    background: none;
    font-weight: 700;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.modal-footer {
    padding: 1.5rem;
    text-align: center;
}

.confirm-btn {
    background-color: #4ECDC4;
    color: #1A1A1A;
    border: none;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.confirm-btn:hover {
    background-color: #3db9b0;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4ECDC4;
    color: #1A1A1A;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.hidden {
    transform: translate(-50%, -100px);
    opacity: 0;
}

/* Take Away Section in Modal */
.takeaway-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.takeaway-section .input-group {
    margin-bottom: 1rem;
}

.takeaway-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.takeaway-section input {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.takeaway-section input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-logo h1 {
        font-size: 2.5rem;
    }

    .order-type-buttons {
        grid-template-columns: 1fr;
    }

    .setup-content {
        padding: 2rem 1.5rem;
    }
}