/* ============================================ */
/* RECIPES.CSS - ÜRÜN REÇETELERİ STİLLERİ */
/* ============================================ */

/* Kategori Klasörleri */
.category-folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-folder {
    background: white;
    border: 3px solid #e5e7eb;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-folder:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.folder-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    color: white;
}

.folder-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.3;
}

.folder-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-weight: bold;
    font-size: 18px;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
}

.folder-total {
    font-size: 12px;
    color: #9ca3af;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
}

/* Kategori Reçete Modalı */
.category-recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    border-radius: 12px;
}

.category-stats-row {
    display: flex;
    gap: 20px;
}

.stat-box {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    min-width: 80px;
}

.stat-box .stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #374151;
}

.stat-box .stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Ürün Reçete Kartları */
.products-recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px;
}

.product-recipe-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.product-recipe-card.has-recipe {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.product-recipe-card.no-recipe {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.product-recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-info {
    margin-bottom: 12px;
}
.product-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    font-size: 10px;
}

.product-code {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 5px;
}

.product-price {
    color: #059669;
    font-weight: 600;
    font-size: 14px;
}


.recipe-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.recipe-badge.success {
    background: #d1fae5;
    color: #059669;
}

.recipe-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.recipe-info {
    font-size: 13px;
    color: #6b7280;
}

.recipe-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.recipe-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 2px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.btn-icon.view { background: #3b82f6; }
.btn-icon.edit { background: #10b981; }
.btn-icon.delete { background: #ef4444; }
.btn-icon.add { background: #f59e0b; }

.btn-icon:hover {
    transform: scale(1.1);
}

/* Yeni Reçete Modal Stilleri */
.recipe-form-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #e5e7eb;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #3b82f6;
}

/* Stok Kategorileri */
.stock-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stock-category-folder {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stock-category-folder:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.folder-visual {
    flex: 1;
}

.folder-visual .folder-icon {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px;
    color: white;
}

.folder-label {
    font-weight: 500;
    color: #374151;
    font-size: 13px;
    line-height: 1.2;
}

.folder-count {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 8px;
}

.folder-selected {
    margin-top: 8px;
    color: #10b981;
    font-size: 11px;
    font-weight: 500;
}

/* Seçilen Hammaddeler Önizleme */
.selected-materials-preview {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    min-height: 80px;
}

.no-selection-message {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
}

.selected-materials-list {
    max-height: 200px;
    overflow-y: auto;
}

.category-group {
    margin-bottom: 15px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.category-header .count {
    color: #9ca3af;
    font-weight: normal;
}

.materials-in-category {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 25px;
}

.selected-material-tag {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    border-radius: 20px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.material-name {
    font-weight: 500;
    color: #1e40af;
}

.material-quantity {
    color: #374151;
    font-size: 11px;
}

.remove-material {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
}

.remove-material:hover {
    background: #dc2626;
}

/* Stok Kategori Modal */
.quick-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.selection-count {
    margin-left: auto;
    font-weight: 500;
    color: #374151;
}

.raw-materials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.raw-material-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 15px;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.raw-material-item:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.raw-material-item.selected {
    border-color: #10b981;
    background: #f0fdf4;
}

.material-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.material-info {
    flex: 1;
}

.material-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 3px;
}

.material-code {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 5px;
}

.material-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 8px;
}

.quantity-selector label {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}

.quantity-input {
    width: 70px;
    padding: 5px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
}

.unit-label {
    font-size: 12px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .category-folders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-folder {
        min-height: 140px;
        padding: 15px;
    }
    
    .folder-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .products-recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .stock-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .raw-material-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .quantity-selector {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .category-folders-grid {
        grid-template-columns: 1fr;
    }
    
    .stock-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* recipe-main-stats için CSS */
.recipe-main-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.recipe-stat-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
}

.recipe-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recipe-stat-icon {
    font-size: 24px;
    color: #6b7280;
    margin-bottom: 8px;
}

.recipe-stat-number {
    
    color: #1f2937;
   
}

.recipe-stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}
/* Reçete Detay Modalı için ek CSS */
.recipe-detail-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.recipe-detail-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-detail-section h4 i {
    color: #3b82f6;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
}

.detail-item span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.materials-list {
    display: grid;
    gap: 10px;
}

.material-detail-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.material-detail-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.material-detail-card .material-name {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.material-detail-card .material-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.material-detail-card .material-code {
    color: #6b7280;
    font-size: 12px;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
}

.material-detail-card .material-quantity {
    color: #059669;
    font-weight: 600;
    font-size: 13px;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.badge.success {
    background: #d1fae5;
    color: #059669;
}

.badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .recipe-main-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .recipe-stat-card {
        padding: 15px;
    }
    
    .recipe-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .recipe-stat-number {
        font-size: 24px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}