/**
 * Min Online Chef - Main Stylesheet
 * Version: 1.0
 */

/* ==================== GLOBAL STYLES ==================== */
.moc-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* ==================== BUTTONS ==================== */
.moc-button {
    padding: 10px 20px;
    background-color: #ff9800;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.moc-button:hover {
    background-color: #e68900;
}

.btn-edit {
    background-color: #2196F3;
}

.btn-edit:hover {
    background-color: #0b7dda;
}

.btn-delete {
    background-color: #f44336;
}

.btn-delete:hover {
    background-color: #da190b;
}

/* ==================== FORMS ==================== */
.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ==================== INVENTORY DASHBOARD ==================== */
#moc-inventory-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.moc-add-ingredient-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

#inventory-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.inventory-item {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.inventory-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.inventory-item .category {
    display: inline-block;
    padding: 3px 8px;
    background: #ff9800;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 10px;
}

.inventory-item .quantity {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
}

.inventory-item-actions {
    margin-top: 10px;
}

.inventory-item-actions button {
    padding: 5px 10px;
    margin-right: 5px;
    font-size: 14px;
}

/* ==================== RECIPE GENERATOR ==================== */
#moc-recipe-generator {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.moc-recipe-params {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.moc-selected-ingredients {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
}

#available-ingredients {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.ingredient-checkbox {
    padding: 10px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.ingredient-checkbox:hover {
    background: #e8e8e8;
}

.ingredient-checkbox.selected {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.ingredient-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

#selected-items {
    list-style: none;
    padding: 0;
}

#selected-items li {
    padding: 5px 10px;
    background: #e3f2fd;
    margin: 5px 0;
    border-radius: 4px;
    display: inline-block;
    margin-right: 10px;
}

/* ==================== RECIPE DISPLAY ==================== */
#moc-generated-recipe {
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 30px;
}

.recipe-meta {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    flex-wrap: wrap;
}

.recipe-meta span {
    font-weight: bold;
}

.recipe-section {
    margin: 30px 0;
}

.recipe-section h4 {
    color: #ff9800;
    border-bottom: 2px solid #ff9800;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#recipe-ingredients li,
#recipe-instructions li {
    margin: 10px 0;
    line-height: 1.6;
}

#recipe-nutrition {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.nutrition-item {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.recipe-actions {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

.loading {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #ff9800;
}

/* ==================== USER DASHBOARD ==================== */
.moc-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.moc-avatar-img {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50%;
    object-fit: cover;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    #inventory-items,
    #available-ingredients {
        grid-template-columns: 1fr;
    }

    .recipe-meta {
        flex-direction: column;
        gap: 10px;
    }

    #recipe-nutrition {
        grid-template-columns: 1fr;
    }

    .moc-button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.error {
    color: #f44336;
    padding: 10px;
    background: #ffebee;
    border-radius: 4px;
    margin: 10px 0;
}

.success {
    color: #4CAF50;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 4px;
    margin: 10px 0;
}

.hidden {
    display: none !important;
}
