/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #212529;
    line-height: 1.5;
    font-weight: 400;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовок */
.header {
    background: #ffffff;
    padding: 24px 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 32px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
}

.user-info .user-role {
    color: #666;
    font-size: 12px;
}

.user-info .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.header h1 {
    color: #212529;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.header h1 i {
    color: #6c757d;
    margin-right: 8px;
}

/* Кнопки */
.btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background: #ffffff;
    color: #495057;
}

.btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}

.btn-primary {
    background: #495057;
    color: #ffffff;
    border-color: #495057;
}

.btn-primary:hover {
    background: #343a40;
    border-color: #343a40;
    color: #ffffff;
}

.btn-secondary {
    background: #6c757d;
    color: #ffffff;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    color: #ffffff;
}

.btn-danger {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-danger:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.btn-sm {
    padding: 6px 8px;
    font-size: 11px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Фильтры */
.filters {
    background: #ffffff;
    padding: 16px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}



.filter-input, .filter-select {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    min-width: 140px;
    min-height: 36px;
    transition: border-color 0.15s;
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: #495057;
}



/* Сетка рецептов */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.recipe-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.15s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recipe-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.recipe-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    flex-direction: column;
}

.recipe-image-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #adb5bd;
}

.recipe-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recipe-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #212529;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    flex: 1;
}

.recipe-meta span {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}



.recipe-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.recipe-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 11px;
    min-height: 32px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.recipe-actions .btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057 !important;
}

.recipe-actions .btn.btn-danger:hover {
    background: #333333 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

.recipe-actions .btn.btn-secondary:hover {
    background: #5a6268 !important;
    color: #ffffff !important;
    border-color: #5a6268 !important;
}

.recipe-actions .btn i {
    font-size: 12px;
    margin-right: 4px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #495057;
}

.pagination button:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
    color: #212529;
}

.pagination button.active {
    background: #495057;
    color: #ffffff;
    border-color: #495057;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 0;
    border-radius: 6px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-large {
    max-width: 1200px;
    width: 95%;
    max-height: 96vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h2 {
    color: #212529;
    font-size: 1.25rem;
    font-weight: 600;
}

.close {
    color: #666666;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #000000;
}

.modal-body {
    padding: 24px 28px;
}

.modal-footer {
    display:flex;
    gap:10px;
    justify-content:flex-start;
    padding: 12px 20px 20px 20px;
    border-top: 1px solid #dee2e6;
}

/* Формы */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-row-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #000000;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.15s ease;
    background: #ffffff;
    color: #212529;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #495057;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    color: #000000;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-description {
    color: #666666;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Ингредиенты */
.ingredients-list {
    margin-bottom: 16px;
}

.ingredient-item {
    display: grid;
    grid-template-columns: 2fr 0.8fr 1.2fr 0.8fr 1.2fr 40px;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.ingredient-name,
.ingredient-amount,
.ingredient-amount-imp,
.ingredient-unit,
.ingredient-unit-imp {
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    color: #000000;
}

.ingredient-name:focus,
.ingredient-amount:focus,
.ingredient-amount-imp:focus,
.ingredient-unit:focus,
.ingredient-unit-imp:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}



/* Кнопка удаления ингредиента */
.ingredient-item .btn-danger {
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    align-self: center;
}

/* Шаги */
.steps-list {
    margin-bottom: 16px;
}

.step-item {
    display: grid;
    grid-template-columns: auto 1fr 40px;
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.step-number {
    background: #000000;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-description {
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    background: #ffffff;
    color: #000000;
}

.step-description:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Кнопка удаления шага */
.step-item .btn-danger {
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    align-self: start;
    margin-top: 12px;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

/* Просмотр рецепта */
.recipe-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.recipe-view-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.recipe-view-info h3 {
    color: #000000;
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 600;
}

.recipe-view-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    color: #666666;
    font-size: 14px;
}

.recipe-view-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.recipe-view-section {
    margin-bottom: 28px;
}

.recipe-view-section h4 {
    color: #000000;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 8px;
}

.ingredients-list {
    list-style: none;
}

.ingredients-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.steps-list {
    list-style: none;
    counter-reset: step-counter;
}

.steps-list li {
    counter-increment: step-counter;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    padding-left: 60px;
}

.steps-list li:last-child {
    border-bottom: none;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 16px;
    background: #000000;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.nutrition-item {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.nutrition-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
}

.nutrition-label {
    font-size: 12px;
    color: #666666;
    margin-top: 4px;
}

/* Таблица ингредиентов */
.ingredients-table {
    margin-top: 16px;
    overflow-x: auto;
}

.ingredients-table table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ingredients-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
}

.ingredients-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    color: #212529;
    font-size: 14px;
    vertical-align: middle;
}

.ingredients-table tbody tr:hover {
    background: #f8f9fa;
}

.ingredients-table tbody tr:last-child td {
    border-bottom: none;
}

.ingredients-table th:first-child,
.ingredients-table td:first-child {
    font-weight: 500;
}

.ingredients-table th:nth-child(2),
.ingredients-table td:nth-child(2) {
    width: 25%;
    color: #212529;
    font-weight: 500;
}

.ingredients-table th:nth-child(3),
.ingredients-table td:nth-child(3) {
    width: 25%;
    color: #212529;
    font-weight: 500;
}

/* Адаптивность для таблицы */
@media (max-width: 768px) {
    .ingredients-table {
        font-size: 12px;
    }
    
    .ingredients-table th,
    .ingredients-table td {
        padding: 8px 12px;
    }
    
    .ingredients-table th:first-child,
    .ingredients-table td:first-child {
        max-width: 120px;
        word-wrap: break-word;
    }
}

/* Сообщения */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.no-data i {
    font-size: 3rem;
    color: #e5e5e5;
    margin-bottom: 20px;
}

.no-data h3 {
    color: #000000;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-input, .filter-select {
        min-width: 100%;
    }
    
    .ingredient-filter {
        min-width: 100%;
        max-width: none;
    }
    
    .selected-ingredients-tags {
        max-height: 80px;
    }
    
    .ingredient-tag {
        max-width: 120px;
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .ingredient-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto auto;
        gap: 8px;
        padding: 8px;
    }
    
    .step-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px;
        padding: 8px;
    }
    
    .recipe-view {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recipe-card {
    animation: fadeIn 0.3s ease-out;
}

/* Загрузка */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #666666;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #e5e5e5;
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

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

/* Фильтр по ингредиентам в стиле тегов */
.ingredient-filter {
    position: relative;
    min-width: 300px;
    flex: 1;
    max-width: 500px;
}

.ingredient-input-container {
    position: relative;
}

.ingredient-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s;
    min-height: 38px;
}

.ingredient-input:focus {
    outline: none;
    border-color: #000000;
}

.ingredient-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.ingredient-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.ingredient-suggestion-item:hover {
    background: #f9f9f9;
}

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

.selected-ingredients-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    min-height: 20px;
    max-height: 120px;
    overflow-y: auto;
    padding: 2px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.selected-ingredients-tags::-webkit-scrollbar {
    width: 6px;
}

.selected-ingredients-tags::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.selected-ingredients-tags::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.selected-ingredients-tags::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.ingredient-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: default;
    transition: all 0.15s;
    animation: tagAppear 0.2s ease-out;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ingredient-tag:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.ingredient-tag span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ingredient-tag .remove-tag {
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.ingredient-tag .remove-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ingredient-tag-more {
    background: #666666 !important;
    cursor: help;
    font-style: italic;
}

.ingredient-tag-more:hover {
    background: #888888 !important;
}

.all-ingredients-list {
    max-height: 300px;
    overflow-y: auto;
}

.ingredient-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.ingredient-list-item:hover {
    background: #f9f9f9;
}

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

.ingredient-list-item span {
    font-size: 14px;
    color: #000000;
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} 

/* Уведомления */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: notificationSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #000000;
}

.notification.success::before {
    background: #10b981;
}

.notification.error::before {
    background: #ef4444;
}

.notification.warning::before {
    background: #f59e0b;
}

.notification.info::before {
    background: #3b82f6;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.warning .notification-icon {
    color: #f59e0b;
}

.notification.info .notification-icon {
    color: #3b82f6;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #000000;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f5f5f5;
    color: #666666;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.removing {
    animation: notificationSlideOut 0.3s ease-in forwards;
} 

/* Переключатели прав (WCUD) */
.perm-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.perm-toggle input { display: none; }
.perm-toggle .badge {
    display: inline-block;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    background: #e9ecef;
    color: #495057;
    letter-spacing:0.02em;
}
.perm-toggle.active {
    border-color: #495057;
    background: #eef1f4;
}
.perm-toggle.active .badge {
    background: #495057;
    color: #fff;
}
.perm-toggle:hover { border-color:#adb5bd; background:#f3f4f6; }
.perm-toggle.perm-static { cursor: default; background:#f1f3f5; border-color:#ced4da; }
.perm-toggle.perm-static .badge { background:#6c757d; color:#fff; }

/* Подтверждение удаления */
.confirm-modal .modal-content { max-width: 420px; }
.confirm-modal .modal-body { color:#444; }

/* Индикаторы активности рецептов */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.recipe-card.inactive-recipe {
    opacity: 0.7;
    border: 1px solid #f5c6cb;
}

.recipe-card.inactive-recipe:hover {
    opacity: 0.85;
} 