﻿.menu-workbench {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
}

/* HEADER */
.workbench-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .workbench-header h2 {
        font-size: 18px;
        font-weight: 600;
    }

.btn-add {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
}

/* ================= CARD GRID ================= */

.menu-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* INDIVIDUAL CARD */
.menu-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .menu-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.13);
    }

/* CARD IMAGE */
.card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

/* CARD BODY */
.card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* NAME ROW */
.card-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
}

.card-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    flex: 1;
}

.card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.card-btn-edit,
.card-btn-delete {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.15s;
}

.card-btn-edit {
    background: #eff6ff;
    color: #2563eb;
}

    .card-btn-edit:hover {
        background: #dbeafe;
    }

.card-btn-delete {
    background: #fff5f5;
    color: #dc2626;
}

    .card-btn-delete:hover {
        background: #fee2e2;
    }

/* CATEGORY */
.card-category {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* PRICE ROW */
.card-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.card-price {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.card-badge {
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-gst {
    background: #ede9fe;
    color: #7c3aed;
}

.badge-discount {
    background: #dcfce7;
    color: #16a34a;
}

/* CUSTOMIZATION CHIPS */
.card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-chip {
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 11px;
    color: #374151;
    font-weight: 500;
}

/* FOOTER — TIMING / CAPACITY */
.card-footer {
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdf8f2;
}

.card-footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #f97316;
}

.card-footer-right {
    font-size: 12px;
    color: #6b7280;
}

.card-footer-time {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

/* EMPTY STATE */
.card-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
    font-size: 14px;
}

/* ================= ADD PANEL ================= */

.add-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px dashed #ced4da;
    border-radius: 6px;
    display: none;
}

    .add-panel h3 {
        margin-bottom: 1rem;
        font-size: 16px;
    }

/* GRID */
.add-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
}

/* FIELDS */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .field label {
        font-size: 13px;
        font-weight: 500;
    }

/* INPUTS */
.input-text,
.input-select,
.input-file {
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

/* TIME */
.time-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .time-row span {
        font-size: 11px;
        color: #555;
    }

    .time-row input {
        width: 40px;
        text-align: center;
        padding: 5px;
    }

/* IMAGE PREVIEW */
.image-preview {
    height: 160px; /* a bit taller so it looks intentional */
    border: 1px dashed #ced4da;
    border-radius: 8px;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* ← THIS is the key fix */
    background: #f9fafb;
}
    .image-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* crops neatly, no overflow */
        border-radius: 8px;
        display: block;
    }

/* CUSTOMIZATION */
.customization-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.customization-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-add-small {
    width: fit-content;
    background: #198754;
    color: #fff;
    border: none;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-remove {
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 4px;
    padding: 3px 7px;
    cursor: pointer;
    font-size: 12px;
}

/* HIDDEN CATEGORY INPUT */
.add-category {
    display: none;
}

.save-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #dcdcdc;
}

.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

    .btn-save:hover {
        background: linear-gradient(135deg, #1d4ed8, #1e40af);
        box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
        transform: translateY(-1px);
    }

    .btn-save:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    }

    .btn-save:disabled {
        background: #94a3b8;
        cursor: not-allowed;
        box-shadow: none;
    }

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    transition: .3s;
    border-radius: 20px;
}

    .slider:before {
        content: "";
        position: absolute;
        height: 18px;
        width: 18px;
        left: 2px;
        bottom: 2px;
        background: white;
        transition: .3s;
        border-radius: 50%;
    }

.switch input:checked + .slider {
    background: #4CAF50;
}

    .switch input:checked + .slider:before {
        transform: translateX(22px);
    }

.pricing-box {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    grid-column: 1 / -1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.section-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

/* ============================================================
   STYLE.CSS  —  ADD-ON BLOCK
   Paste at the bottom of your existing Style.css
   ============================================================ */

/* TAX MODE BADGE  (Inclusive / Exclusive) */
.badge-taxmode {
    background: #fef9c3;
    color: #854d0e;
}

/* VAT BADGE */
.badge-vat {
    background: #dcfce7;
    color: #16a34a;
}

/* ACTIVE STATUS PILL */
.status-pill.active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #dcfce7;
    color: #16a34a;
}

/* LOW-CAPACITY WARNING in footer */
.card-remaining {
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
}

/* CHIP PRICE  (the "+₹54" part inside a customization chip) */
.chip-price {
    font-weight: 700;
    color: #374151;
}

/* ── REPLACE the existing .pricing-grid rule in Style.css ── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 20px;
    align-items: end; /* labels + inputs sit on the same baseline */
}

    /* Make sure labels above inputs are consistent */
    .pricing-grid label {
        display: block;
        font-size: 12px;
        font-weight: 500;
        color: #6b7280;
        margin-bottom: 5px;
    }

    /* inputs/selects fill their column */
    .pricing-grid input,
    .pricing-grid select {
        width: 100%;
    }

/* VAT checkbox — vertically center it with the other fields */
.discount-check {
    display: flex;
    align-items: center;
    padding-bottom: 6px; /* nudge up to align with input baseline */
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

/* toggle row — keep Exclusive / switch / Inclusive inline */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px; /* matches input height so baseline lines up */
}

.card-img-wrap {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-img-fallback {
    width: 100%;
    height: 100%;
    background: #e8e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}