/* =============================================================================
   main0.css - Landing page styles
   ============================================================================= */

/* Hero Section */
.hero-section h1 {
    font-size: 2rem;
    font-weight: 300;
    color: #333;
}

.hero-section h1 strong {
    font-weight: 700;
    color: #007bff;
}

.hero-section .lead {
    color: #666;
    font-size: 1.1rem;
}

/* Benefits Section */
.benefits-section h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.benefits-section p {
    color: #666;
    font-size: 0.95rem;
}

/* Auth Section */
.auth-section {
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

/* Status Badges - Geo and Mic */
.gclsStatusBadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    user-select: none;
    background-color: #adb5bd;
    color: #fff;
}

.gclsStatusBadge:hover {
    opacity: 0.85;
}

.gclsStatusBadge.cls-status-ok {
    background-color: #06ac01;
    color: #fff;
}

.gclsStatusBadge.cls-status-error {
    background-color: #dc3545;
    color: #fff;
}

.gclsStatusBadge.cls-status-unknown {
    background-color: #adb5bd;
    color: #fff;
}

.gclsStatusBadge.cls-status-manual {
    background-color: #0d6efd;
    color: #fff;
}

/* Manual location override icon */
.gclsLocOverride {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.85rem;
    color: #adb5bd;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.gclsLocOverride:hover {
    color: #0d6efd;
}

/* Settings Bar */
.settings-bar {
    background-color: #f8f9fa;
}

.settings-bar .badge {
    font-size: 0.85rem;
    padding: 0.4em 0.6em;
}

/* Input Area */
.input-area .input-group-lg .form-control {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.input-area .btn-success {
    padding: 0.5rem 1rem;
}

/* Mic Button - Circular Treatment */
.gClsInputMic {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: #06ac01;
    padding: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: right;
    margin: 4px 6px 4px 0;
}

.gClsInputMic:hover {
    background-color: #058a01;
}

.gClsInputMic.cls-mic-recording {
    background-color: #dc3545;
    animation: obvMicPulse 1.2s infinite;
}

.gClsInputMic.cls-mic-disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

@keyframes obvMicPulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Status Area */
.status-area {
    min-height: 40px;
}

.status-area .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
}

/* Conversation Area */
.conversation-area .card-body {
    padding: 1rem;
}

.ai-response-question,
.ai-response-confirmation,
.ai-response-suggestion,
.ai-response-error {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
}

.ai-response-error {
    background-color: #f8d7da;
    border-left: 3px solid #dc3545;
}

.user-input {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    background-color: #e7f3ff;
    text-align: right;
}

/* Venue Area */
.venue-area .text-muted {
    font-size: 0.95rem;
}

/* Business Cards (for Stage 2) */
.business-card {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.business-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.business-card .badge-open {
    background-color: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.business-card .badge-closed {
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* Order Ticket Area (for Stage 3) */
.order-ticket {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1.5rem;
    background-color: #fff;
}

.ticket-items {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    margin: 1rem 0;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.ticket-totals {
    padding-top: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.total-final {
    border-top: 2px solid #dee2e6;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.payment-badge {
    text-align: center;
    padding: 0.75rem;
    margin: 1rem 0;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

/* Footer Links */
.footer-links a {
    color: #6c757d;
    text-decoration: none;
}

.footer-links a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Test Controls */
.test-controls {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.test-controls h6 {
    margin-bottom: 1rem;
    color: #856404;
}

/* ===== Business Hero Header ===== */
.obv-biz-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.obv-biz-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.obv-biz-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.obv-biz-address {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

/* ===== AI Message Bar ===== */
.obv-ai-message {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.obv-ai-confirmation {
    background-color: #d1e7dd;
    color: #0a3622;
    border-left: 3px solid #06ac01;
}

.obv-ai-question {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 3px solid #ffc107;
    font-weight: 500;
}

/* ===== Order Card ===== */
.obv-order-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 12px;
    background-color: #fff;
    overflow: hidden;
}

.obv-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.obv-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #130076;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.obv-order-remove {
    font-size: 0.8rem;
    color: #dc3545;
    text-decoration: none;
}

.obv-order-remove:hover { text-decoration: underline; }

.obv-order-footer {
    padding: 8px 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.obv-order-instructions {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    background: transparent;
    font-size: 0.8rem;
    color: #555;
    resize: none;
    outline: none;
    min-height: 28px;
    max-height: 80px;
    overflow-y: auto;
    padding: 2px 0;
    line-height: 1.4;
    font-family: inherit;
}

.obv-order-instructions::placeholder {
    color: #bbb;
    font-style: italic;
}

.obv-add-item {
    font-size: 0.85rem;
    color: #06ac01;
    text-decoration: none;
    font-weight: 500;
}

.obv-add-item:hover { text-decoration: underline; }

/* ===== Add Order ===== */
.obv-add-order-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.obv-add-order-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px dashed #06ac01;
    background: #fff;
    color: #06ac01;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.obv-add-order-btn:disabled {
    border-color: #adb5bd;
    color: #adb5bd;
    cursor: not-allowed;
}

.obv-add-order-hint {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* ===== Empty State ===== */
.obv-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #555;
    font-size: 1.05rem;
}

.obv-empty-add-item {
    margin-top: 16px;
    font-size: 1rem;
}

/* ===== Item Row ===== */
.obv-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f5f5f5;
}

.obv-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.obv-item-info {
    flex: 1;
    min-width: 0;
}

.obv-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.obv-item-size {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

.obv-item-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
    flex-shrink: 0;
    min-width: 50px;
    text-align: right;
}

.obv-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.obv-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 0;
    line-height: 1;
}

.obv-qty-btn:hover { background-color: #f0f0f0; }

.obv-qty-val {
    font-weight: 600;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.obv-item-remove {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    line-height: 1;
}

.obv-item-remove:hover { color: #dc3545; }

/* ===== Ticket Footer (sticky total + submit) ===== */
.obv-ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 4px;
    border-top: 2px solid #e0e0e0;
    margin-top: 4px;
    position: sticky;
    bottom: 0;
    background-color: #f5f6fa;
    gap: 8px;
}

.obv-menu-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
}

.obv-total {
    font-size: 1.1rem;
    color: #222;
    flex: 1;
    text-align: center;
}

.obv-submit-btn {
    min-width: 110px;
    font-weight: 600;
}

/* Mobile: larger touch targets */
@media (max-width: 768px) {
    .obv-qty-btn {
        width: 40px;
        height: 40px;
    }
    .obv-item-img {
        width: 55px;
        height: 55px;
    }
}

/* ===== Add-on Accordion ===== */
.obv-menu-item-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.obv-addon-toggle {
    padding: 4px 0 4px 74px; /* indent past image */
    font-size: 0.8rem;
    color: #06ac01;
    cursor: pointer;
    user-select: none;
}

.obv-addon-toggle:hover {
    text-decoration: underline;
}

.obv-addon-panel {
    padding: 6px 0 6px 74px; /* indent past image */
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.obv-addon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
}

.obv-addon-row:last-child {
    border-bottom: none;
}

.obv-addon-name {
    font-size: 0.85rem;
    color: #444;
}

.obv-addon-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.obv-addon-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 0;
    line-height: 1;
}

.obv-addon-btn:hover {
    background-color: #f0f0f0;
}

.obv-addon-val {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .benefits-section h4 {
        font-size: 1.1rem;
    }
    
    .benefits-section p {
        font-size: 0.9rem;
    }
    
    .auth-section .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }
    
    .settings-bar .row > div {
        margin-bottom: 0.5rem;
    }
    
    .input-area .input-group-lg .form-control {
        font-size: 1rem;
    }
}

/* Touch-friendly tap targets for mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
    }
    
    .form-check-input {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .form-check-label {
        padding-left: 0.5rem;
    }
}

/* ===== Type Selection Pills ===== */
.obv-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.obv-type-pill {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1.5px solid #ccc;
    background: #fff;
    color: #555;
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}

.obv-type-pill:hover {
    border-color: #888;
    color: #222;
}

.obv-type-pill-selected {
    border-color: #198754;
    background: #198754;
    color: #fff;
}

.obv-type-pill-selected:hover {
    border-color: #157347;
    background: #157347;
}

/* Hint shown above Place Order when a type is unselected */
.obv-submit-hint {
    font-size: 0.78rem;
    color: #dc3545;
    text-align: center;
    margin-bottom: 4px;
    flex-basis: 100%;
}

/* ===== Menu Modal ===== */
.obv-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.obv-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-radius: 6px;
}

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

.obv-menu-item:hover {
    background-color: #f5f9f5;
}

.obv-menu-item-clickable {
    cursor: pointer;
}

.obv-menu-item-clickable:hover {
    background-color: #f5f9f5;
}

.obv-menu-item-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.obv-menu-item-info {
    flex: 1;
    min-width: 0;
}

.obv-menu-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: #222;
}

.obv-menu-item-price {
    font-size: 0.88rem;
    color: #666;
    margin-top: 3px;
}
