/* 配料项样式 */
.ingredient-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.ingredient-input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ingredient-input[data-field="name"] {
    width: 120px;
}

.ingredient-input[data-field="amount"] {
    width: 80px;
}

.ingredient-input[data-field="unit"] {
    width: 60px;
}

.ingredient-input[data-field="note"] {
    width: 120px;
}

/* 按钮样式 */
.ingredient-button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: white;
}

.move-btn {
    background: #0066cc;
}

.move-btn:hover {
    background: #0052a3;
}

.delete-btn {
    background: #dc3545;
}

.delete-btn:hover {
    background: #c82333;
}

/* 移动选项样式 */
.move-options {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.move-option {
    padding: 8px 16px;
    cursor: pointer;
}

.move-option:hover {
    background: #f0f0f0;
}

/* 分类标签样式 */
.category-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-tag {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.category-tag.active {
    background: #0066cc;
    color: white;
}

/* 厨具标签样式 */
.tag-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.tag.active {
    background: #0066cc;
    color: white;
}

/* AI部分样式 */
.ai-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ai-container {
    display: flex;
    gap: 20px;
}

.ai-input-box,
.ai-output-box {
    flex: 1;
}

.ai-textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: monospace;
}

.ai-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ai-button:hover {
    background: #0052a3;
}

/* 配料列表部分 */
.ingredients-section {
    margin: 20px 0;
}

.ingredients-section h3 {
    margin-bottom: 10px;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.add-ingredient {
    margin-top: 10px;
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-ingredient:hover {
    background: #218838;
}

/* 保存按钮 */
.save-btn {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.save-btn:hover {
    background: #218838;
}

/* 状态提示 */
#status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    display: none;
    z-index: 1000;
}

#status.success {
    background: #28a745;
}

#status.error {
    background: #dc3545;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
