/* assets/stok-duzenle.css */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.page-header h1 { margin: 0; color: #1e293b; font-size: 1.6rem; }

.header-actions { display: flex; gap: 10px; }
.btn-back, .btn-history {
    text-decoration: none; padding: 10px 15px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: 0.2s;
}
.btn-back { background: #e2e8f0; color: #475569; }
.btn-history { background: #eff6ff; color: #3b82f6; }
.btn-back:hover, .btn-history:hover { opacity: 0.9; }

/* Grid Layout */
.edit-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Sol 2 birim, Sağ 1 birim */
    gap: 25px;
}

@media (max-width: 992px) {
    .edit-grid { grid-template-columns: 1fr; }
}

/* Sol Kart (Form) */
.card-box {
    background: white; border-radius: 12px; padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card-header {
    font-size: 1.1rem; font-weight: 700; color: #334155;
    margin-bottom: 20px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px;
}

.row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #64748b; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: 0.95rem; box-sizing: border-box;
}
.input-disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }

.checkbox-wrapper label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #1e293b; font-weight: 600; }
.checkbox-wrapper input { width: 20px; height: 20px; accent-color: #10b981; }

.btn-save {
    width: 100%; background: #10b981; color: white; border: none; padding: 12px;
    border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.btn-save:hover { background: #059669; }

/* Sağ Kolon (Bilgi & Düzeltme) */
.side-column { display: flex; flex-direction: column; gap: 20px; }

.info-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white; padding: 20px; border-radius: 12px; text-align: center;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}
.info-card h3 { margin: 0 0 10px 0; font-size: 0.9rem; opacity: 0.9; }
.stock-display { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.stock-display small { font-size: 1rem; font-weight: 600; opacity: 0.8; }
.cost-display { margin-top: 15px; font-size: 0.9rem; background: rgba(255,255,255,0.1); padding: 5px; border-radius: 6px; }

/* Düzeltme Kartı */
.correction-card {
    background: #fff; border: 1px solid #fecaca; border-radius: 12px; overflow: hidden;
}
.danger-header {
    background: #fef2f2; color: #991b1b; padding: 15px; margin: 0; border-bottom: 1px solid #fecaca; font-weight: 600;
}
.correction-body { padding: 20px; }
.warning-text { font-size: 0.85rem; color: #dc2626; margin-bottom: 15px; line-height: 1.4; }

.input-correction { border-color: #fca5a5 !important; color: #991b1b; font-weight: 700; font-size: 1.2rem !important; }
.btn-danger {
    width: 100%; background: #ef4444; color: white; border: none; padding: 12px;
    border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.btn-danger:hover { background: #dc2626; }

.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.warning { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }