
/* //language box  */

body{
    background:linear-gradient(135deg, #0f172a, #323a60);
}

/* Modal Design Upgrade */
#mergeModal .modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

#mergeModal .modal-header {
    background: linear-gradient(135deg, #198754, #157347);
    color: white;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

#mergeModal .modal-title {
    font-weight: 600;
    font-size: 18px;
}

#mergeModal .modal-body {
    max-height: 350px;
    overflow-y: auto;
    padding: 20px;
}

/* Table Row Design */
#mergeModal .modal-body .mb-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    transition: 0.2s ease;
    background: #f8f9fa;
}

#mergeModal .modal-body .mb-2:hover {
    background: #e9f7ef;
    transform: translateX(3px);
}

/* Checkbox spacing */
#mergeModal input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

/* Running badge glow */
#mergeModal .badge.bg-success {
    background-color: #198754 !important;
    box-shadow: 0 0 8px rgba(25,135,84,0.4);
}

/* Free badge style */
#mergeModal .badge.bg-secondary {
    background-color: #adb5bd !important;
}

/* Generate Button */
#mergeModal .modal-footer .btn-primary {
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 500;
    transition: 0.2s ease;
}

#mergeModal .modal-footer .btn-primary:hover {
    transform: scale(1.05);
}
.table-disabled {
    opacity: 0.4;
    pointer-events: none;/* Modal Design Upgrade */
#mergeModal .modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

#mergeModal .modal-header {
    background: linear-gradient(135deg, #198754, #157347);
    color: white;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

#mergeModal .modal-title {
    font-weight: 600;
    font-size: 18px;
}

#mergeModal .modal-body {
    max-height: 350px;
    overflow-y: auto;
    padding: 20px;
}

/* Table Row Design */
#mergeModal .modal-body .mb-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    transition: 0.2s ease;
    background: #f8f9fa;
}

#mergeModal .modal-body .mb-2:hover {
    background: #e9f7ef;
    transform: translateX(3px);
}

/* Checkbox spacing */
#mergeModal input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

/* Running badge glow */
#mergeModal .badge.bg-success {
    background-color: #198754 !important;
    box-shadow: 0 0 8px rgba(25,135,84,0.4);
}

/* Free badge style */
#mergeModal .badge.bg-secondary {
    background-color: #adb5bd !important;
}

/* Generate Button */
#mergeModal .modal-footer .btn-primary {
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 500;
    transition: 0.2s ease;
}

#mergeModal .modal-footer .btn-primary:hover {
    transform: scale(1.05);
}
    background: #ccc !important;
}

<style>

/* Remove dark black heavy background */
.modal-backdrop.show {
    opacity: 0.4 !important;
}

/* Modal Card Style */
#spiceModal .modal-content {
    border-radius: 18px;
    border: none;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Header clean */
#spiceModal .modal-header {
    border-bottom: none;
    justify-content: center;
}

#spiceModal .modal-title {
    font-weight: 600;
    font-size: 20px;
}

/* Modern Spice Buttons */
.spice-btn {
    border-radius: 12px !important;
    padding: 10px 18px !important;
    font-weight: 500;
    transition: all 0.25s ease;
    border: 1px solid #e0e0e0 !important;
    background: #f8f9fa;
    color: #333;
    min-width: 120px;
}

/* Hover effect */
.spice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Active selected */
.spice-btn.active {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white !important;
    border: none !important;
}

/* Confirm button */
#spiceModal .btn-success {
    border-radius: 12px;
    padding: 8px 25px;
    font-weight: 600;
}

/* No Special button */
#spiceModal .btn-secondary {
    border-radius: 12px;
    padding: 8px 20px;
}

/* Section spacing */
#spiceModal .modal-body hr {
    margin: 18px 0;
}

</style>
.taste-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.taste-chip {
    border: 2px solid #dee2e6;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.taste-chip:hover {
    background: #e9ecef;
}

.taste-chip.selected {
    background: #198754;
    color: #fff;
    border-color: #198754;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-content {
    border-radius: 12px;
}

.modal-header {
    border-bottom: none;
}

.modal-body hr {
    margin: 18px 0;
}



#menuItems {
    transition: all 0.3s ease;
}
@media (min-width: 992px) {
    .order-summary {
        position: sticky;
        top: 10px;
        height: fit-content;
    }
}
.table-tile {
    transition: all 0.2s ease;
}

.table-tile:hover {
    transform: translateY(-3px);
}

.table-active .table-no {
    
    font-weight: bold;
}
.table-active {
    border: 3px solid #0d6efd !important;
    background: #0d6efd !important;
    color: #fff !important;
    transform: scale(1.07);
    box-shadow: 0 6px 18px rgba(13,110,253,0.5);
    transition: all 0.2s ease;
}

.table-active .table-status {
    color: #fff !important;
    font-weight: 600;
}

.table-tile {
    transition: all 0.2s ease;
}


.modal {
    z-index: 2000 !important;
}
.modal-backdrop {
    z-index: 1999 !important;
}


.category-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    border: none;
    background: #f1f1f1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: 0.2s ease;
}

.category-btn:hover {
    background: #ffd54f;
}

.category-btn.active {
    background: #ffc107;
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255,193,7,0.5);
}

.category-search input {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    width: 200px;
}

@media (max-width: 768px) {
    .category-search input {
        width: 100%;
    }
}

.cancel-btn {
    display: inline-block;
    vertical-align: middle;
}
.pos-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #16a34a;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.pos-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/*//searchbar */
.pos-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0f172a; /* dark bg */
    padding: 8px;
}

/* scrolling sirf items pe */
.pos-items-area {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

/* 🔒 South Indian table scroll */
.south-table-scroll {
    max-height: 55vh;      /* mobile ke hisab se */
    overflow-y: auto;
}

/* 🔥 Sticky header */
.south-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc;   /* light bg so text dikhe */
}

/* optional: border thoda strong */
.south-table thead th {
    border-bottom: 2px solid #dee2e6;
}


.lang-switch .btn{
    
    font-weight:600;
    margin-right:6px;
}
.category-btn{
    font-weight:600;
    border-radius:999px;
    padding:8px 14px;
    display:flex;
    align-items:center;
    gap:6px;
}

/* ACTIVE CATEGORY */
.category-btn.active{
    font-weight:800;
    text-decoration:underline;
    text-underline-offset:4px;
    background:#0f172a !important;
    color:#fff !important;
    border-color:#0f172a !important;
}


.pos-top-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 16px;
    background:#ffffff;
    border-bottom:1px solid #e5e7eb;
    position:sticky;
    top:0;
    z-index:100;
}

.btn-back{
    text-decoration:none;
    background:#0f172a;
    color:#fff;
    padding:8px 14px;
    border-radius:10px;
    font-weight:600;
    font-size:14px;
}

.btn-back:hover{
    background:#020617;
}

.current-table{
    font-weight:800;
    font-size:16px;
    color:#0f172a;
}

/* ===== TABLE STATUS CARD ===== */

.table-status-card {
    border-radius: 12px;
    overflow: hidden;
}

/* Card header */
.table-status-card .card-header {
    background: #1f2937; /* dark grey */
    color: #fff;
    font-size: 15px;
    padding: 8px 12px;
}

/* Table tile base */
.table-tile {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 6px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Hover / active feel */
.table-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    text-decoration: none;
}

.table-tile:active {
    transform: scale(0.96);
}

/* Table number */
.table-no {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Status text */
.table-status {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

/* ===== STATUS COLORS ===== */

/* FREE */
.table-free {
    background: #e9f7ef;
    color: #198754;
    border: 2px solid #198754;
}

/* RUNNING */
.table-running {
    background: #fff8e1;
    color: #856404;
    border: 2px solid #ffc107;
}

/* PENDING */
.table-pending {
    background: #fdecea;
    color: #842029;
    border: 2px solid #dc3545;
}

/* ===== MOBILE TWEAK ===== */
@media (max-width: 576px) {
    .table-no {
        font-size: 16px;
    }

    .table-status {
        font-size: 11px;
    }
}

/* ===== QTY COLUMN FIX (CSS ONLY) ===== */

table td.text-center {
    white-space: nowrap;
}

/* minus / plus buttons */
table td.text-center button {
    width: 32px;
    height: 32px;
    padding: 0;
    line-height: 1;
    border-radius: 6px;
    font-size: 18px;
}

/* qty number */
table td.text-center span.fw-bold,
table td.text-center span.mx-2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin: 0 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    font-weight: 600;
}

/* mobile fine-tune */
@media (max-width: 576px) {
    table td.text-center button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    table td.text-center span.fw-bold,
    table td.text-center span.mx-2 {
        min-width: 30px;
        height: 30px;
        margin: 0 4px;
    }
}

.lang-switch{
    display:flex;
    gap:8px;
    padding:6px 10px;
}
.lang-btn{
    padding:6px 14px;
    border-radius:20px;
    font-size:13px;
    border:1px solid #ccc;
    background:#f8f8f8;
    color:#333;
    text-decoration:none;
}
.lang-btn.active{
    background:#1e7e34;
    color:#fff;
    border-color:#1e7e34;
}
.item-card{
    background:#ffffff;
    border-radius:12px;
    padding:10px;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
    cursor:pointer;
    transition:all 0.2s ease;
    height:100%;
}
.item-card:hover{
    transform:scale(1.03);
    box-shadow:0 4px 10px rgba(0,0,0,0.12);
}

.item-name{
    font-size:14px;
    font-weight:600;
    color:#222;
    line-height:1.2;
}

.item-price{
    margin-top:6px;
    font-size:13px;
    color:#198754;
    font-weight:700;
}