/* Label Scanner — minimal CSS (most styling via Tailwind tw- classes) */

.ls-step { display: none; }
.ls-step.ls-active { display: block; }

/* Dropzone drag-over state */
.ls-dropzone.ls-dragover {
    border-color: #000 !important;
    background-color: #F5F5F4 !important;
}

/* Spinner */
.ls-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ls-spin 0.6s linear infinite;
}
@keyframes ls-spin {
    to { transform: rotate(360deg); }
}

/* Ingredients table */
.ls-ing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.ls-ing-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #737373;
    border-bottom: 1px solid #EAEAE9;
    white-space: nowrap;
}
.ls-ing-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #F5F5F4;
    vertical-align: top;
    color: #000;
}
/* Give the ingredient name column more room */
.ls-ing-table th:nth-child(2),
.ls-ing-table td:nth-child(2) {
    width: 40%;
    min-width: 200px;
}
/* Keep number columns compact */
.ls-ing-table th:nth-child(1) { width: 80px; }
.ls-ing-table th:nth-child(3),
.ls-ing-table th:nth-child(4),
.ls-ing-table th:nth-child(5) {
    white-space: nowrap;
}
.ls-ing-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status badges — pill style matching filter-chip pattern */
.ls-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}
.ls-badge-danger   { background: #FF5F57; color: #fff; border-color: #FF5F57; }
.ls-badge-warning  { background: #FF8D28; color: #fff; border-color: #FF8D28; }
.ls-badge-ok       { background: #D9F7F4; color: #00C8B3; border-color: #A6E6DF; }
.ls-badge-info     { background: #E8F4FD; color: #0066FF; border-color: #C5DEF5; }
.ls-badge-unmatched { background: #F5F5F4; color: #737373; border-color: #D9D9D9; }

/* Message under ingredient name */
.ls-ing-message {
    font-size: 0.75rem;
    color: #737373;
    margin-top: 3px;
    line-height: 1.3;
}
.ls-ing-message.ls-msg-danger  { color: #FF5F57; font-weight: 600; }
.ls-ing-message.ls-msg-warning { color: #FF8D28; }

/* Summary number cards */
.ls-summary-card .ls-num {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
}
.ls-summary-card .ls-label {
    font-size: 0.7rem;
    color: #737373;
    margin-top: 4px;
}

/* Results sub-sections */
#ls-other-ingredients h3,
#ls-warnings h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 8px;
}
#ls-other-ingredients ul,
#ls-warnings ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.85rem;
}
#ls-other-ingredients li,
#ls-warnings li {
    margin-bottom: 3px;
}

/* Product info block */
#ls-product-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 2px;
    color: #000;
}
#ls-product-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #737373;
}

/* Responsive table scroll */
@media (max-width: 640px) {
    .ls-ing-table thead th,
    .ls-ing-table tbody td {
        padding: 8px 6px;
        font-size: 0.78rem;
    }
}
