/* ============ 保质期计算器 - 表单样式 ============ */

.form-item {
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.form-item:first-child {
    padding-top: 0;
}

.form-item:last-child {
    border-bottom: none;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

/* 数字+单位选择器行 */
.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.shelf-value {
    width: 120px;
    flex-shrink: 0;
}

.shelf-unit {
    flex: 1;
    min-width: 0;
}

/* 快捷预设按钮 */
.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.preset-btn {
    padding: 5px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    transform: none !important;
    box-shadow: none !important;
    line-height: 1.5;
}

.preset-btn:hover {
    background: #f3e8ff;
    border-color: #8b5cf6;
    color: #8b5cf6;
    transform: none !important;
    box-shadow: none !important;
}

/* 到期日期展示 */
.expiry-result {
    font-size: 18px;
    font-weight: 600;
    color: #8b5cf6;
    padding: 6px 0;
}

/* ============ 结果展示 ============ */
.result-content {
    display: flex;
    flex-direction: column;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 14px;
    color: #6b7280;
}

.result-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.result-value.highlight {
    color: #8b5cf6;
    font-size: 16px;
}

.result-value.normal {
    color: #166534;
}

.result-value.warning {
    color: #d97706;
}

.result-value.expired {
    color: #dc2626;
}

/* ============ 状态标签 ============ */
.status-tag {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-normal {
    background: #dcfce7;
    color: #166534;
}

.status-warning {
    background: #fef3c7;
    color: #d97706;
}

.status-expired {
    background: #fee2e2;
    color: #dc2626;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
    }

    .shelf-value {
        width: 100%;
    }
}
