/* Форма редактирования рецепта */

.recipe-form-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.recipe-form-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
}

/* Загрузка фото */
.recipe-photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 200px;
    border: 2px dashed #d8d8d8;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #ffffff;
}

.recipe-photo-upload:hover {
    border-color: #909090;
    background: #f7f7f7;
}

.recipe-photo-upload i {
    font-size: 36px;
    color: #cccccc;
}

.recipe-photo-upload span {
    font-size: 13px;
    color: #aaaaaa;
}

.recipe-photo-upload small {
    font-size: 11px;
    color: #cccccc;
}

/* Превью фото */
.recipe-photo-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.recipe-photo-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.recipe-photo-preview .recipe-photo-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.recipe-photo-preview .recipe-photo-remove:hover {
    background: rgba(255, 255, 255, 1);
}

/* Номер шага */
.recipe-step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #4a4a4a;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

/* Поля только для чтения (даты) */
.recipe-form-readonly {
    background: #efefef !important;
    color: #999999 !important;
    cursor: default;
}

/* Футер формы */
.recipe-form-footer {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

/* Компактные строки в секции «Информация» */
.recipe-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 3px 0;
}

.recipe-info-label {
    font-size: 12px;
    color: #aaaaaa;
}

.recipe-info-value {
    font-size: 12px;
    color: #4a4a4a;
}

.recipe-info-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #aaaaaa;
    cursor: pointer;
    padding: 5px 0 2px;
    margin-top: 5px;
    border-top: 1px solid #eeeeee;
    user-select: none;
    transition: color 0.2s;
}

.recipe-info-toggle:hover {
    color: #4a4a4a;
}
