/* ============================================
   PUBLIC KIOSK - Simplified Styles
   No Admin Features - Only Order Creation
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    overflow: hidden;
}

/* Embedded kiosk: hide any admin-like chrome */
body.embedded-kiosk .header,
body.embedded-kiosk .admin-controls,
body.embedded-kiosk #firestoreStatus {
    display: none !important;
}

#publicKioskRoot {
    width: 1920px;
    height: 1080px;
    background: #f5f5f5;
}

.app-container {
    width: 1920px;
    height: 1080px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 70px;
    max-height: 70px;
}

.header h1 {
    font-size: 32px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Menu Area (Left Side - 70%) */
.menu-area {
    flex: 7;
    padding: 30px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 10px;
    font-size: 16px;
    color: #667eea;
}

.breadcrumb button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.breadcrumb button:hover {
    background: rgba(102, 126, 234, 0.1);
}

.breadcrumb span {
    margin: 0 8px;
    color: #666;
}

/* Menu Canvas */
.menu-canvas {
    width: 100%;
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* Menu Grid */
.menu-grid {
    display: block;
    position: relative;
    min-height: 100%;
    width: 100%;
    padding: 20px;
}

/* Menu Card */
.menu-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
    position: absolute;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.menu-card-image {
    width: 100%;
    height: 60%;
    object-fit: cover;
    pointer-events: none;
}

.menu-card-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.menu-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 4px;
}

.menu-card-description {
    font-size: 14px;
    color: #6c757d;
    margin-top: 4px;
}

.menu-card-price {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    margin-top: 8px;
}

.menu-card.no-image .menu-card-content {
    height: 100%;
}

.menu-card.card-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.menu-card.optional-selected {
    border: 3px solid #51cf66;
    box-shadow: 0 0 0 2px rgba(81, 207, 102, 0.3);
}

/* Choice Options */
.choice-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}

.choice-option-inline {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    transition: all 0.2s;
    text-align: center;
}

.choice-option-inline:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.choice-option-inline.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.optional-levels-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
}

/* Cart Area (Right Side - 30%) */
.cart-area {
    flex: 3;
    background: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.cart-area h2 {
    font-size: 28px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-empty {
    text-align: center;
    color: #6c757d;
    font-size: 18px;
    padding: 40px 20px;
}

.cart-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    gap: 8px;
}

.cart-item-main-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
}

.qty-btn {
    background: white;
    border: 1px solid #dee2e6;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-number {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    min-width: 24px;
    text-align: center;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0 12px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    min-width: 100px;
    text-align: right;
    flex-shrink: 0;
}

.cart-item-details-container {
    margin-left: 0;
    padding-left: 0;
}

.cart-item-details {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 2px;
    line-height: 1.4;
    padding-left: 0;
}

.cart-summary {
    border-top: 2px solid #e9ecef;
    padding-top: 20px;
    margin-bottom: 20px;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 18px;
    color: #212529;
}

.cart-row.total {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    border-top: 2px solid #e9ecef;
    padding-top: 16px;
    margin-top: 8px;
}

.cart-actions {
    display: flex;
    gap: 12px;
}

.btn-primary {
    flex: 1;
    background: #667eea;
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    flex: 1;
    background: #6c757d;
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.modal-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 24px;
    text-align: center;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-option-btn {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option-btn.cash {
    background: #51cf66;
    color: white;
    border: none;
}

.payment-option-btn.cash:hover {
    background: #40c057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(81, 207, 102, 0.3);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.order-number-display {
    text-align: center;
    padding: 20px 0;
}

.order-number-label {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 16px;
}

.order-number-value {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin: 20px 0;
}

.order-instruction {
    font-size: 20px;
    color: #212529;
    margin-top: 24px;
    font-weight: 600;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

