/* =========================================
   ENHANCED AI SCAN RESULTS - PREMIUM DESIGN
   ========================================= */

#scanResultsSection {
    background: transparent !important;
    padding: 0 !important;
}

.scan-results {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 10px 0;
}

/* 1. Premium Summary Card */
.result-summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.result-thumb {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: #222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.result-info {
    flex: 1;
}

.result-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #fff;
    line-height: 1.2;
}

.confidence-wrapper {
    display: flex;
    align-items: center;
}

.confidence-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(212, 244, 88, 0.2);
    color: #d4f458;
}

/* 2. Manual Adjustment & Status */
.manual-adjustment-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.adjustment-status {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-weight: 600;
}

.adjustment-status i {
    color: #d4f458;
    font-size: 1.2rem;
}

.edit-label {
    font-size: 13px;
    color: #a1a1aa;
    margin: 4px 0;
}

.adjustment-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.quantity-control,
.calorie-control {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ctrl-label {
    font-size: 10px;
    color: #a1a1aa;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ctrl-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.ctrl-stepper button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ctrl-stepper button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #d4f458;
    color: #d4f458;
}

.cal-input-wrapper {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.cal-input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    width: 85px;
    padding: 0;
    outline: none;
}

.cal-input-wrapper .unit {
    font-size: 12px;
    color: #a1a1aa;
    font-weight: 500;
}

/* 3. Nutritional Summary Bar */
.scan-nutrition-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.scan-nutrition-summary .nav-metric {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    transition: all 0.3s;
}

.scan-nutrition-summary .nav-metric:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.scan-nutrition-summary .label {
    font-size: 9px;
    color: #a1a1aa;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.scan-nutrition-summary .value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.scan-nutrition-summary .unit {
    font-size: 10px;
    color: #a1a1aa;
}

/* 4. Ingredients Section */
.ingredients-section h5 {
    font-size: 1rem;
    margin: 16px 0 16px 4px;
    font-weight: 700;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.ingredient-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    min-height: 100px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ingredient-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 244, 88, 0.4);
    transform: scale(1.02);
}

.ingredient-card .ing-name {
    font-size: 12px;
    color: #a1a1aa;
    font-weight: 500;
    line-height: 1.3;
}

.ingredient-card .ing-amount {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.ingredient-card.add-ingredient-card {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    cursor: pointer;
    background: transparent;
}

.ingredient-card.add-ingredient-card:hover {
    border-color: #d4f458;
    background: rgba(212, 244, 88, 0.05);
}

.ingredient-card.add-ingredient-card i {
    font-size: 1.25rem;
    color: #a1a1aa;
    margin-top: 4px;
}