
/* Kiosk Global Styles */
body.kiosk-mode {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    overflow: hidden; /* Prevent body scroll, handle in containers */
}

/* Welcome Screen */
.kiosk-welcome {
    background: linear-gradient(135deg, #FFC72C 0%, #DA291C 100%); /* McDonald's-ish colors: Yellow to Red */
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kiosk-welcome::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('/images/brand_logo.png') no-repeat center center;
    background-size: 50% auto;
    opacity: 0.1;
    z-index: 0;
}

.kiosk-welcome-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

.kiosk-btn-start {
    background-color: white;
    color: #DA291C;
    border: none;
    padding: 20px 60px;
    font-size: 2rem;
    font-weight: 800;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.kiosk-btn-start:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Menu Layout */
.kiosk-menu-layout {
    display: flex;
    height: 100vh;
    background-color: #f4f4f4;
}

/* Sidebar Categories */
.kiosk-sidebar {
    width: 280px;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.kiosk-category-btn {
    padding: 25px 20px;
    text-align: left;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    border-left: 6px solid transparent;
    transition: all 0.3s;
    width: 100%;
    outline: none;
    display: flex;
    align-items: center;
}

.kiosk-category-btn:hover {
    background-color: #f8f9fa;
}

.kiosk-category-btn.active {
    background-color: #fff0f0;
    color: #DA291C;
    border-left-color: #DA291C;
}

.kiosk-category-icon {
    margin-right: 15px;
    font-size: 1.5rem;
}

/* Product Grid */
.kiosk-products-container {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #f4f4f4;
}

.kiosk-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    cursor: pointer;
}

.kiosk-product-card:active {
    transform: scale(0.98);
}

.kiosk-product-img-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background-color: #fff;
}

.kiosk-product-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.kiosk-product-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kiosk-product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.3;
}

.kiosk-product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #DA291C;
}

.kiosk-add-btn {
    background-color: #f2f2f2;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.2s;
}

.kiosk-product-card:hover .kiosk-add-btn {
    background-color: #DA291C;
    color: white;
}

/* Cart Sidebar */
.kiosk-cart-sidebar {
    width: 380px;
    background-color: white;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0,0,0,0.05);
}

.kiosk-cart-header {
    padding: 25px;
    background-color: white;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.kiosk-cart-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #333;
}

.kiosk-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.kiosk-cart-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.kiosk-cart-item-info {
    flex: 1;
}

.kiosk-cart-item-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: block;
}

.kiosk-cart-item-addons {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.kiosk-cart-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    min-width: 80px;
    text-align: right;
}

.kiosk-cart-footer {
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.kiosk-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #333;
}

.kiosk-pay-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    background-color: #28a745;
    border: none;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.kiosk-cancel-btn {
    width: 100%;
    margin-top: 10px;
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    font-weight: 600;
    padding: 15px;
    border-radius: 12px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.kiosk-scale-click:active {
    transform: scale(0.95);
}

/* Scrollbar styling */
.kiosk-sidebar::-webkit-scrollbar,
.kiosk-products-container::-webkit-scrollbar,
.kiosk-cart-items::-webkit-scrollbar {
    width: 6px;
}
.kiosk-sidebar::-webkit-scrollbar-thumb,
.kiosk-products-container::-webkit-scrollbar-thumb,
.kiosk-cart-items::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}
