﻿/* Make modal and table responsive */
@media (max-width: 767.98px) {
    .modal-dialog {
        max-width: 98vw;
        margin: 1rem auto;
    }

    .modal-content {
        border-radius: 0.5rem;
    }

    .table-responsive {
        overflow-x: auto;
    }

    table.table {
        font-size: 0.95rem;
    }

    .modal-footer {
        flex-direction: column !important;
        gap: 0.5rem;
    }

    .btn {
        width: 100%;
    }

    th, td {
        white-space: nowrap;
    }
}
#bill-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}


/* For very small screens */
@media (max-width: 480px) {
    .modal-dialog {
        max-width: 100vw;
        margin: 0.5rem auto;
    }

    .table {
        font-size: 0.85rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }
}
@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}
@media print {
    body * {
        visibility: hidden;
    }

    #printable-bill, #printable-bill * {
        visibility: visible;
    }

    #printable-bill {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    #bill-modal .modal-header,
    .btn-print,
    .btn-view {
/*        display: none !important;*/
    }
}
/* Add at the end of your site.css for best effect */
.qty-group {
    flex-wrap: nowrap !important;
    gap: 2px;
}
.qty-group .qty-input {
    min-width: 48px;
    max-width: 60px;
    font-size: 1rem;
    text-align: center;
    padding: 2px 4px;
}
.qty-group .btn {
    min-width: 28px;
    padding: 2px 6px;
}
@media (max-width: 576px) {
    .qty-group {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center;
    }
    .qty-group .qty-input {
        min-width: 4+0px;
        max-width: 56px;
        font-size: 1.05rem;
    }
    .qty-group .btn {
        min-width: 24px;
        font-size: 0.95rem;
    }
}
/* Live Orders Dashboard Section CSS */

/* Main dashboard section container */
.dashboard-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
/*    max-width:auto;*/
}

/* Section title with icon and notification */
.section-title {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

    .section-title span {
        margin-right: 10px;
    }

/* Notification badge for new orders */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Platform filtering tabs */
.platform-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.platform-tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .platform-tab.active {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }

    .platform-tab.zomato.active {
        color: var(--zomato-color);
        border-bottom-color: var(--zomato-color);
    }

    .platform-tab.swiggy.active {
        color: var(--swiggy-color);
        border-bottom-color: var(--swiggy-color);
    }

    .platform-tab:hover {
        background-color: rgba(0,0,0,0.05);
    }

/* Platform indicators (colored dots) */
.platform-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.zomato-indicator {
    background-color: var(--zomato-color);
}

.swiggy-indicator {
    background-color: var(--swiggy-color);
}

.restaurant-indicator {
    background-color: var(--primary-color);
}

/* Orders grid container */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Individual order card */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

    .order-card.zomato {
        border-left-color: var(--zomato-color);
    }

    .order-card.swiggy {
        border-left-color: var(--swiggy-color);
    }

    .order-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

/* Order card header */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-id {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Platform badges */
.platform-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-zomato {
    background-color: var(--zomato-color);
    color: white;
}

.badge-swiggy {
    background-color: var(--swiggy-color);
    color: white;
}

.badge-restaurant {
    background-color: var(--primary-color);
    color: white;
}

/* Order items list */
.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Order card footer */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--success-color);
}

/* Status badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-new {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-preparing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-ready {
    background-color: #f8d7da;
    color: #721c24;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-action {
    flex: 1;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* CSS Variables (needed for the colors) */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --zomato-color: #e23744;
    --swiggy-color: #ff6600;
    --background-light: #f8f9fa;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .orders-grid {
        grid-template-columns: 1fr;
    }

    .platform-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
}
/*form desktop*/


@media (min-width: 992px) {
    body .container {
        max-width: 100% !important;
    }
}
:root {
    --primary-color: #007bff;
    --restaurant-color: #007bff;
    --success-color: #28a745;
    --info-color: #17a2b8;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Restaurant Order Card */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--restaurant-color);
    transition: all 0.3s ease;
}

    .order-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

/* Order Header */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-id {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
}

/* Platform Badge */
.platform-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-restaurant {
    background-color: var(--restaurant-color);
    color: white;
}

/* Order Info Section */
.order-info {
    margin-bottom: 15px;
}

    .order-info div {
        margin-bottom: 8px;
        font-size: 0.95rem;
        color: #495057;
    }

    .order-info strong {
        color: #212529;
        font-weight: 600;
    }

/* Order Items List */
.order-items {
    margin-bottom: 15px;
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #495057;
}

    .order-item:last-child {
        margin-bottom: 0;
    }

/* Order Footer */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-total {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--success-color);
}

/* Status Badge */
.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-new {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-preparing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-ready {
    background-color: #f8d7da;
    color: #721c24;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-action {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view {
    background-color: var(--primary-color);
    color: white;
}

    .btn-view:hover {
        background-color: #0056b3;
        transform: translateY(-1px);
    }

.btn-ready {
    background-color: var(--info-color);
    color: white;
}

    .btn-ready:hover {
        background-color: #138496;
        transform: translateY(-1px);
    }

.btn-accept {
    background-color: var(--success-color);
    color: white;
}

    .btn-accept:hover {
        background-color: #218838;
    }

.btn-action i {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .orders-grid {
        grid-template-columns: 1fr;
    }
}
/* Status Container Styles */
#status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-left: auto;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

    /* Status Text Styles */
    #status p {
        margin: 0;
        font-size: 0.875rem;
        font-weight: 500;
        color: #495057;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

/* Status Indicator Spans */
#zomatoStatus,
#swiggyStatus {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.813rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

    /* Connected State */
    #zomatoStatus.connected,
    #swiggyStatus.connected {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        color: #155724;
        border: 1px solid #b1dfbb;
    }

        #zomatoStatus.connected::before,
        #swiggyStatus.connected::before {
            content: "●";
            margin-right: 0.375rem;
            color: #28a745;
            animation: pulse 2s infinite;
        }

    /* Disconnected State */
    #zomatoStatus.disconnected,
    #swiggyStatus.disconnected {
        background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
        color: #721c24;
        border: 1px solid #f1b0b7;
    }

        #zomatoStatus.disconnected::before,
        #swiggyStatus.disconnected::before {
            content: "●";
            margin-right: 0.375rem;
            color: #dc3545;
        }

/* Pulse Animation for Connected Status */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Button Base Styles */
#zomatoBtn,
#swiggyBtn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    /* Connect Button Styles */
    #zomatoBtn.connect,
    #swiggyBtn.connect {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
    }

        #zomatoBtn.connect:hover,
        #swiggyBtn.connect:hover {
            background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
        }

        #zomatoBtn.connect:active,
        #swiggyBtn.connect:active {
            transform: translateY(0);
        }

    /* Disconnect Button Styles */
    #zomatoBtn.disconnect,
    #swiggyBtn.disconnect {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        color: white;
    }

        #zomatoBtn.disconnect:hover,
        #swiggyBtn.disconnect:hover {
            background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
        }

        #zomatoBtn.disconnect:active,
        #swiggyBtn.disconnect:active {
            transform: translateY(0);
        }

    /* Loading State */
    #zomatoBtn:disabled,
    #swiggyBtn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        pointer-events: none;
    }

    /* Ripple Effect */
    #zomatoBtn::after,
    #swiggyBtn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    #zomatoBtn:active::after,
    #swiggyBtn:active::after {
        width: 200px;
        height: 200px;
    }

/* Tablet Styles */
@media (max-width: 992px) {
    #status {
        gap: 1rem;
        padding: 0.625rem 1rem;
    }

        #status p {
            font-size: 0.813rem;
        }

    #zomatoBtn,
    #swiggyBtn {
        padding: 0.438rem 1rem;
        font-size: 0.813rem;
    }

    #zomatoStatus,
    #swiggyStatus {
        padding: 0.188rem 0.625rem;
        font-size: 0.75rem;
    }
}

/* Mobile Landscape / Small Tablet */
@media (max-width: 768px) {
    #status {
        gap: 0.75rem;
        padding: 0.5rem 0.875rem;
        justify-content: center;
    }

        #status p {
            font-size: 0.75rem;
            flex: 1 1 auto;
        }

    #zomatoBtn,
    #swiggyBtn {
        padding: 0.375rem 0.875rem;
        font-size: 0.75rem;
        min-width: 100px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    #status {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }

        #status p {
            width: 100%;
            justify-content: space-between;
            padding: 0.5rem;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

    #zomatoBtn,
    #swiggyBtn {
        width: 100%;
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    #zomatoStatus,
    #swiggyStatus {
        margin-left: auto;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    #status {
        padding: 0.625rem;
        gap: 0.625rem;
    }

        #status p {
            font-size: 0.688rem;
            padding: 0.438rem;
        }

    #zomatoBtn,
    #swiggyBtn {
        padding: 0.5rem;
        font-size: 0.813rem;
    }

    #zomatoStatus,
    #swiggyStatus {
        font-size: 0.688rem;
        padding: 0.188rem 0.5rem;
    }
}
/* Coffee ON/OFF Button */
#coffeeBtn.connect {
    background-color: #dc3545; 
    color: white;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 25px;
    transition: 0.3s;
}

    #coffeeBtn.connect:hover {
        background-color: #b02a37;
    }

#coffeeBtn.disconnect {
    background-color: #28a745; 
    color: white;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 25px;
    transition: 0.3s;
}

    #coffeeBtn.disconnect:hover {
        background-color: #1e7e34;
    }

#coffeeStatus {
    font-size: 1.1rem;
    margin-top: 10px;
}

.connected {
    color: #28a745; 
}

.disconnected {
    color: #dc3545; 
}

.sync-online::before {
    content: "🟢 ";
}

.sync-offline::before {
    content: "🔴 ";
}
.fade-in-row {
    animation: fadeInRows 0.4s ease-in-out;
}

@keyframes fadeInRows {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.discount-option {
    border: 2px solid #ccc;
    padding: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 15%;
    border-radius: 7px;
    margin-left: 20px;
    background: #fafafa;
    transition: 0.25s;
}

.discount-option:hover {
    border-color: #00aaff;
}

.discount-option.selected {
    border-color: #00aaff;
    background-color:   #e7f5ff;
        
}
