/* assets/uretim.css */

/* ... (Önceki stiller aynen duruyor, sadece filtre kısmı güncellendi) ... */

.page-header-flex {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px;
}
.page-title { margin: 0; font-size: 1.6rem; color: #1e293b; }
.page-subtitle { margin: 5px 0 0 0; color: #64748b; font-size: 0.95rem; }

/* Grid Düzeni */
.dashboard-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}

@media (max-width: 992px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* Üretim Kartı */
.prod-card {
    background: white; border-radius: 12px; padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 5px solid #8b5cf6; /* Mor */
    transition: border-color 0.3s;
}

.card-header { margin-bottom: 25px; border-bottom: 1px dashed #e2e8f0; padding-bottom: 10px; }
.card-header h3 { margin: 0; color: #8b5cf6; font-size: 1.2rem; }

/* Ürün Seçici (Radio Butonlar) */
.product-selector {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px;
}
.product-selector input { display: none; }

.prod-box {
    border: 2px solid #e2e8f0; border-radius: 12px; padding: 20px;
    text-align: center; cursor: pointer; transition: all 0.2s; color: #64748b;
    background: #f8fafc;
}
.prod-box:hover { transform: translateY(-3px); }

.p-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.prod-box span { font-weight: 800; font-size: 1rem; }

/* Seçili Durumlar */
input[value="Arpa Flake"]:checked + .box-arpa {
    border-color: #f59e0b; background: #fffbeb; color: #d97706;
}
input[value="Misir Flake"]:checked + .box-misir {
    border-color: #fbbf24; background: #fffbeb; color: #d97706; 
}

/* Form Elemanları */
.form-grid-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: #475569; margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; box-sizing: border-box; font-family: 'Inter'; font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.input-big { font-size: 1.4rem !important; font-weight: 700; color: #1e293b; border-color: #8b5cf6 !important; background: #f5f3ff; }

.btn-save {
    width: 100%; background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); color: white; border: none; padding: 15px; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.2s; margin-top: 10px;
}
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 5px 15px -3px rgba(109, 40, 217, 0.4); }

.btn-cancel {
    width: 100%; background: #f1f5f9; color: #64748b; border: none; padding: 15px; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; margin-top: 10px; display: none;
}


/* SAĞ KOLON */
.stats-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px;
}
.stat-card {
    background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); text-align: center;
}
.stat-card .label { display: block; font-size: 0.75rem; font-weight: 700; color: #94a3b8; margin-bottom: 5px; }
.stat-card .value { display: block; font-size: 1.4rem; font-weight: 800; }
.stat-card small { font-size: 0.8rem; font-weight: 600; opacity: 0.8; }

.stat-arpa { border-top: 4px solid #f59e0b; }
.stat-arpa .value { color: #d97706; }
.stat-misir { border-top: 4px solid #fbbf24; }
.stat-misir .value { color: #d97706; }

/* FİLTRE VE LİSTE GÜNCELLEMESİ */
.filter-box { margin-bottom: 15px; background: #f8fafc; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; }
.filter-form { display: flex; flex-direction: column; gap: 10px; }
.filter-row { display: flex; gap: 10px; align-items: center; }

.input-date-small { padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.9rem; flex: 1; }
.select-small { padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.9rem; flex: 2; }

.btn-filter-small { background: #1e293b; color: white; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; }

.history-list {
    background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.list-header { border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 10px; }
.list-header h4 { margin: 0; color: #334155; font-size: 1rem; }

.history-list ul { list-style: none; padding: 0; margin: 0; }
.history-item {
    display: flex; align-items: center; padding: 12px 0; border-bottom: 1px dashed #e2e8f0;
}
.history-item:last-child { border-bottom: none; }

.item-icon {
    width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-right: 15px;
}
.item-arpa .item-icon { background: #fffbeb; color: #f59e0b; }
.item-misir .item-icon { background: #fffbeb; color: #fbbf24; } 

.item-info { flex: 1; }
.item-info .desc { display: block; font-weight: 600; color: #1e293b; font-size: 0.95rem; }
.item-info .date { display: block; font-size: 0.8rem; color: #94a3b8; }

.item-amount { font-weight: 700; color: #1e293b; font-size: 1rem; display: block; }
.action-btns { display: flex; gap: 5px; justify-content: flex-end; margin-top: 4px; }

.btn-edit-row { background: #eff6ff; color: #3b82f6; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; }
.btn-delete-row { background: #fef2f2; color: #ef4444; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; }

.badge-firma { background: #f1f5f9; color: #475569; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.badge-cari { background: #e0e7ff; color: #4338ca; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.no-data { text-align: center; padding: 20px; color: #94a3b8; font-style: italic; }

.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.alert.success { background:#dcfce7; color:#166534; border: 1px solid #bbf7d0; }
.alert.error { background:#fee2e2; color:#991b1b; border: 1px solid #fecaca; }