/* ===== Общие стили ===== */
.mirmyla-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}
.mirmyla-card {
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    background: #f9f9f9;
    transition: all 0.2s ease;
}
.mirmyla-card:hover {
    background: #e0e0e0;
}
.mirmyla-card input[type="radio"] {
    margin-right: 5px;
}
.mirmyla-results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.mirmyla-recipe-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    flex: 1 1 250px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.mirmyla-recipe-card h4 {
    margin-top: 0;
}
.oil-list {
    list-style: none;
    padding-left: 0;
}
.oil-list li {
    padding: 2px 0;
}
.properties {
    margin: 10px 0;
    font-size: 0.9em;
}
.error {
    color: red;
}
#mirmyla-advanced {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    margin-top: 15px;
}
#mirmyla-advanced .mirmyla-group {
    margin-bottom: 15px;
}
.mirmyla-property {
    margin-bottom: 5px;
}
#fixed_oils_list {
    list-style: none;
    padding-left: 0;
}
#fixed_oils_list li {
    padding: 3px 0;
}
.remove-fixed {
    color: red;
    cursor: pointer;
    margin-left: 5px;
}
.radar-container {
    width: 250px;
    height: 250px;
    margin: 10px auto;
    position: relative;
}

/* ===== Стили для блока рекомендаций ===== */
.mirmyla-recommendations {
    margin: 15px 0;
    padding: 12px 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #2c7a7b;
}
.mirmyla-recommendations h5 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #2c7a7b;
    font-size: 0.95em;
}
.mirmyla-recommendations ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.mirmyla-recommendations li {
    margin-bottom: 6px;
    font-size: 0.92em;
    line-height: 1.5;
}
.mirmyla-recommendations li:last-child {
    margin-bottom: 0;
}
.mirmyla-recommendations em {
    color: #666;
    font-style: italic;
}

/* ===== Аккордеон для полного рецепта ===== */
.mirmyla-toggle-recipe {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 16px;
    background: #eef2f7;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    color: #2c7a7b;
    transition: background 0.2s;
}
.mirmyla-toggle-recipe:hover {
    background: #dce3ec;
}
.mirmyla-arrow {
    display: inline-block;
    transition: transform 0.2s;
}
.mirmyla-full-recipe {
    margin: 10px 0;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #2c7a7b;
}
.mirmyla-full-recipe-content h4 {
    margin: 12px 0 6px 0;
    color: #2c7a7b;
    font-size: 1em;
}
.mirmyla-full-recipe-content ul,
.mirmyla-full-recipe-content ol {
    padding-left: 20px;
    margin: 6px 0 12px 0;
}
.mirmyla-full-recipe-content li {
    margin-bottom: 4px;
    line-height: 1.5;
}

/* ===== Модальное окно (оставлено для совместимости) ===== */
.mirmyla-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mirmyla-modal {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}
.mirmyla-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}
.mirmyla-modal-close:hover {
    color: #000;
}
.mirmyla-modal h3 {
    margin-top: 0;
    color: #2c7a7b;
}
.mirmyla-modal h4 {
    margin-top: 16px;
    margin-bottom: 6px;
    color: #2c7a7b;
    font-size: 1.1em;
}
.mirmyla-modal ul,
.mirmyla-modal ol {
    padding-left: 20px;
    margin: 6px 0 12px 0;
}
.mirmyla-modal li {
    margin-bottom: 4px;
    line-height: 1.5;
}
/* Кнопка сохранения рецепта */
.mirmyla-save-recipe {
    display: inline-block;
    margin: 5px 10px 5px 0;
    padding: 6px 14px;
    background: #2c7a7b;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}
.mirmyla-save-recipe:hover {
    background: #1e5a5b;
}

/* ===== Кнопка PDF ===== */
.mirmyla-pdf-btn {
    display: inline-block;
    margin: 5px 5px 5px 0;
    padding: 6px 14px;
    background: #e8f0fe;
    color: #2c7a7b;
    border: 1px solid #2c7a7b;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}
.mirmyla-pdf-btn:hover {
    background: #d0e2f0;
}

/* ===== Свойства с цветовыми зонами и полосками ===== */
.properties-block {
    margin: 10px 0;
}
.property-legend {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: #555;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.property-legend .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}
.property-legend .dot.green { background: #2ecc71; }
.property-legend .dot.yellow { background: #f1c40f; }
.property-legend .dot.red { background: #e74c3c; }

.property {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}
.property:last-child {
    border-bottom: none;
}
.prop-name {
    font-weight: 600;
    min-width: 100px;
}
.prop-value-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}
.prop-value {
    font-weight: 500;
}
.prop-range {
    color: #666;
    font-size: 0.9em;
}
.property-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.property.green .property-indicator { background: #2ecc71; }
.property.yellow .property-indicator { background: #f1c40f; }
.property.red .property-indicator { background: #e74c3c; }
.property.neutral .property-indicator { background: #95a5a6; }
.property-bar-wrapper {
    width: 80px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}
.property-bar {
    height: 100%;
    background: #2c7a7b;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.property.green .property-bar { background: #2ecc71; }
.property.yellow .property-bar { background: #f1c40f; }
.property.red .property-bar { background: #e74c3c; }
.property.neutral .property-bar { background: #95a5a6; }

/* ===== Переключатели метода варки ===== */
.mirmyla-method-selector {
    margin: 10px 0;
    padding: 8px 12px;
    background: #f5f7fa;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.mirmyla-method-selector .method-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.mirmyla-method-selector label {
    cursor: pointer;
    font-weight: 500;
}
.mirmyla-method-selector input[type="radio"] {
    margin-right: 4px;
}
.method-explanation {
    margin-top: 4px;
    font-size: 0.9em;
    color: #4a5568;
}

/* ===== Метки типа продукта и способа варки ===== */
.recipe-type-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.recipe-type-badge span {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.consistency-badge {
    background: #e3f2fd;
    color: #0d47a1;
}
.method-badge {
    background: #ffebee;
    color: #b71c1c;
}

/* ===== Блок добавок (рекомендации) ===== */
.mirmyla-additives-block {
    margin: 15px 0;
    padding: 12px 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #2c7a7b;
}
.mirmyla-additives-block h5 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #2c7a7b;
}
.additives-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.additive-item {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex: 1 1 220px;
}
.additive-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}
.additive-header strong {
    font-size: 1.1em;
}
.additive-type {
    font-size: 0.8em;
    color: #666;
    background: #f0f0f0;
    padding: 0 6px;
    border-radius: 4px;
}
.additive-form,
.additive-stage,
.additive-dosage,
.additive-enhances {
    font-size: 0.9em;
    margin: 2px 0;
}
.additive-effect {
    margin: 4px 0;
    font-style: italic;
    color: #4a5568;
}
.additive-recommendation {
    font-size: 0.9em;
    color: #555;
    margin-top: 4px;
}

/* ===== Стили для выбора добавок в Дополнительных желаниях ===== */
.additive-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}
.additive-category {
    flex: 1 1 200px;
    background: #f9fafb;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.additive-category h5 {
    margin: 0 0 8px 0;
    color: #2c7a7b;
    font-size: 1em;
}
.additive-category label {
    display: block;
    margin: 4px 0;
    font-size: 0.9em;
    cursor: pointer;
}
.additive-form {
    color: #888;
    font-size: 0.8em;
    margin-left: 4px;
}

/* ===== Индикация совместимости добавок ===== */
.additive-item.compatible {
    border-left: 4px solid #2ecc71;
}
.additive-item.incompatible {
    border-left: 4px solid #e74c3c;
}
.compat-label {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    display: inline-block;
}
.additive-item.compatible .compat-label {
    background: #d4edda;
    color: #155724;
}
.additive-item.incompatible .compat-label {
    background: #f8d7da;
    color: #721c24;
}
.additive-incompatible-reason {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 4px;
    font-style: italic;
}

/* ===== Стили для времени варки (горячий способ) ===== */
.mirmyla-cook-time {
    margin: 10px 0;
    padding: 10px 12px;
    background: #fff8e1;
    border-left: 4px solid #ffa000;
    border-radius: 4px;
}
.mirmyla-cook-time strong {
    color: #bf360c;
}
.mirmyla-cook-time p {
    margin: 4px 0;
    font-size: 0.95em;
}
.mirmyla-cook-time .explanation {
    color: #555;
    font-size: 0.9em;
}
