/**
 * AGROSED 2026 - Ana Stil Dosyası
 * Responsive & Modern Design
 */

/* ============================================================================
   1. GENEL STILLLER & RESET
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Renkler */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Arka Plan */
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-gray: #f1f5f9;
    
    /* Yazı Renkleri */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Border */
    --border-color: #e2e8f0;
    --border-radius: 8px;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Sidebar */
    --sidebar-width: 260px;
    --navbar-height: 60px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Notification */
    --notification-badge-bg: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================================================
   1.5. MODAL STILLERI
   ============================================================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--primary-color);
}

.modal-header .close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-header .close:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

/* ============================================================================
   1.6. FORMÜL SİHİRBAZI MODAL
   ============================================================================ */

.formula-wizard-modal {
    padding: 0;
}

.formula-wizard-modal .modal-content {
    max-width: 1200px;
}

.wizard-header {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    padding: 24px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wizard-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.wizard-title-text h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.wizard-title-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

.wizard-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.wizard-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wizard-body {
    padding: 24px;
}

.wizard-info-banner {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wizard-info-text strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.wizard-info-text span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

@media (max-width: 992px) {
    .wizard-grid {
        grid-template-columns: 1fr;
    }
}

.wizard-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.wizard-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.wizard-card-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wizard-optional-badge {
    background: var(--bg-gray);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
}

.wizard-target-amount {
    background: var(--bg-gray);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.wizard-target-amount label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.wizard-amount-input {
    display: flex;
    gap: 8px;
}

.wizard-amount-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.wizard-amount-unit {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
}

.wizard-type-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.wizard-type-btn {
    padding: 10px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wizard-type-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.wizard-type-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.wizard-element-grid {
    display: grid;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.wizard-element-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-gray);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.wizard-element-item:hover {
    border-color: var(--primary-color);
    background: #e0e7ff;
}

.wizard-element-badge {
    min-width: 50px;
    height: 40px;
    padding: 0 12px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wizard-element-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.wizard-element-item:hover .wizard-element-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* ============================================================================
   HAMMADDE & AMBALAJ LİSTESİ (RECETE-EKLE, SİPARİŞ-EKLE)
   ============================================================================ */

.hammadde-row,
.ambalaj-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 60px;
    gap: 12px;
    padding: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.hammadde-row:hover,
.ambalaj-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.hammadde-row .form-group,
.ambalaj-row .form-group {
    margin: 0;
}

.hammadde-row .form-label,
.ambalaj-row .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.hammadde-row .form-control,
.hammadde-row .hammadde-select,
.hammadde-row .miktar-input,
.hammadde-row .birim-select,
.ambalaj-row .form-control,
.ambalaj-row .ambalaj-select,
.ambalaj-row .ambalaj-adet,
.ambalaj-row .ambalaj-miktar {
    height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: var(--transition);
    width: 100%;
}

.hammadde-row .form-control:focus,
.hammadde-row .hammadde-select:focus,
.hammadde-row .miktar-input:focus,
.hammadde-row .birim-select:focus,
.ambalaj-row .form-control:focus,
.ambalaj-row .ambalaj-select:focus,
.ambalaj-row .ambalaj-adet:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hammadde-row .hammadde-select,
.ambalaj-row .ambalaj-select {
    font-weight: 500;
}

.hammadde-row .miktar-input,
.ambalaj-row .ambalaj-adet,
.ambalaj-row .ambalaj-miktar {
    text-align: right;
    font-weight: 600;
}

.ambalaj-row .ambalaj-miktar {
    background: var(--bg-gray);
    color: var(--text-secondary);
}

.hammadde-row .btn-danger,
.ambalaj-row .btn-danger {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
    margin-top: auto;
}

@media (max-width: 768px) {
    .hammadde-row,
    .ambalaj-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hammadde-row .btn-danger,
    .ambalaj-row .btn-danger {
        width: 100%;
    }
}

.card-header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

/* Buton Grupları */
.card-header > div {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Özet Bilgiler */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-value.text-success {
    color: var(--success-color);
    font-size: 1.25rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 8px;
    margin-top: 20px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Card */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Form Controls */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-info {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.alert-success {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

/* Calculation Box */
.calculation-box {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.calculation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.calculation-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.calculation-total {
    padding: 16px 0;
    border-bottom: none !important;
}

.calculation-label {
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
}

.calculation-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: -0.025em;
}

.calculation-total .calculation-label {
    font-size: 1.125rem;
}

.calculation-total .calculation-value {
    font-size: 1.75rem;
    color: #1d4ed8;
}

/* Ambalaj Container */
#ambalajContainer {
    margin-bottom: 16px;
}

#ambalajContainer:empty::before,
#hammaddeContainer:empty::before {
    content: "Henüz eklenmedi. Yukarıdaki butona tıklayarak ekleyebilirsiniz.";
    display: block;
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-gray);
    border-radius: 8px;
    font-style: italic;
}

/* Icon Animations */
.btn i {
    transition: var(--transition);
}

.btn:hover i.fa-plus {
    transform: rotate(90deg);
}

.btn:hover i.fa-trash {
    transform: scale(1.1);
}

.btn:hover i.fa-magic,
.btn:hover i.fa-calculator {
    transform: scale(1.1) rotate(-5deg);
}

/* Element'e özel renkler */
.wizard-element-badge[data-element="N"] {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.wizard-element-badge[data-element="P"] {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.wizard-element-badge[data-element="K"] {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.wizard-element-badge[data-element="Ca"] {
    background: linear-gradient(135deg, #10b981, #059669);
}

.wizard-element-badge[data-element="Mg"] {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.wizard-element-badge[data-element="S"] {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.wizard-element-badge[data-element="Fe"] {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.wizard-element-badge[data-element="Mn"] {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.wizard-element-badge[data-element="Zn"] {
    background: linear-gradient(135deg, #64748b, #475569);
}

.wizard-element-badge[data-element="Cu"] {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.wizard-element-badge[data-element="B"] {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.wizard-element-badge[data-element="Mo"] {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.wizard-element-input {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.wizard-element-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wizard-element-unit {
    color: var(--text-secondary);
    font-size: 0.875rem;
    min-width: 35px;
    text-align: right;
    font-weight: 500;
}

.wizard-auto-select-info {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.wizard-auto-select-info strong {
    color: #1e3a8a;
}

.wizard-auto-select-info ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.wizard-auto-select-info li {
    margin: 4px 0;
}

.wizard-material-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.wizard-action-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wizard-action-btn:hover {
    background: var(--bg-gray);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.wizard-material-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.wizard-material-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.wizard-material-item:hover {
    background: #e0e7ff;
    border-color: var(--primary-color);
}

.wizard-material-header {
    display: flex;
    gap: 10px;
    cursor: pointer;
}

.wizard-material-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.wizard-material-amount {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.wizard-material-item.has-checkbox-checked .wizard-material-amount {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wizard-material-amount label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.wizard-material-amount input[type="number"] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
}

.wizard-material-amount select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    min-width: 60px;
}

.wizard-material-info {
    flex: 1;
}

.wizard-material-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-material-price {
    color: var(--success-color);
    font-size: 0.875rem;
}

.wizard-material-contents {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wizard-content-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.75rem;
}

.wizard-calculate-section {
    text-align: center;
    margin-bottom: 24px;
}

.wizard-calculate-btn {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wizard-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.wizard-results {
    display: none;
}

.wizard-results-header {
    background: var(--bg-gray);
    padding: 16px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-results-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wizard-results-header i {
    color: var(--primary-color);
}

.wizard-results-content {
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
}

.wizard-results-actions {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.wizard-apply-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wizard-apply-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.wizard-variation-card {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}

.wizard-variation-card:hover {
    border-color: var(--primary-color);
}

.wizard-variation-card.selected {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.wizard-variation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wizard-variation-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.wizard-variation-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

/* ============================================================================
   2. SIDEBAR
   ============================================================================ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h2 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

.sidebar-toggle-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
}

.sidebar-nav {
    padding: 15px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 2px 10px;
}

.sidebar-nav li.nav-section {
    padding: 15px 15px 8px 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.sidebar-nav li a i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.sidebar-nav li a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

.sidebar-nav li.active a {
    background: var(--primary-color);
    color: white;
}

/* ============================================================================
   3. MAIN WRAPPER
   ============================================================================ */

.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

/* ============================================================================
   4. TOP NAVBAR
   ============================================================================ */

.top-navbar {
    height: var(--navbar-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--bg-gray);
}

.navbar-center {
    flex: 1;
    padding: 0 20px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Notification Menu */
.notification-menu {
    position: relative;
}

.notification-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.notification-btn:hover {
    background: var(--border-color);
    color: var(--primary-color);
}

.notification-btn i {
    font-size: 18px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--notification-badge-bg);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-gray);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-toggle:hover {
    background: var(--border-color);
}

.user-menu-toggle i.fa-user-circle {
    font-size: 24px;
    color: var(--primary-color);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
}

.user-menu-dropdown.show {
    display: block;
}

.user-info {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.user-info strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.user-info small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.user-role {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    border-radius: 4px;
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.user-menu-dropdown a:last-child {
    border-bottom: none;
}

.user-menu-dropdown a:hover {
    background: var(--bg-gray);
}

/* ============================================================================
   5. PAGE CONTENT
   ============================================================================ */

.page-content {
    flex: 1;
    padding: 25px;
}

/* ============================================================================
   6. ALERTS & MESSAGES
   ============================================================================ */

.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
    position: relative;
}

.alert-icon {
    font-size: 20px;
    font-weight: bold;
}

.alert-message {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.alert-close:hover {
    opacity: 1;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: var(--danger-color);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left-color: var(--warning-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left-color: var(--info-color);
}

/* ============================================================================
   7. CARDS
   ============================================================================ */

.card, .dashboard-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-gray);
}

/* ============================================================================
   8. DASHBOARD
   ============================================================================ */

.dashboard {
    max-width: 1400px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-card.stat-primary .stat-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.stat-card.stat-success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-card.stat-info .stat-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.stat-card.stat-warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-content p {
    color: var(--text-muted);
    font-size: 13px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
}

/* ============================================================================
   9. TABLES
   ============================================================================ */

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--bg-gray);
}

.table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: var(--bg-gray);
}

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

/* ============================================================================
   10. BUTTONS
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

/* ============================================================================
   11. BADGES
   ============================================================================ */

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.badge-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary-color);
}

/* ============================================================================
   12. FORMS
   ============================================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ============================================================================
   13. INFO BOX
   ============================================================================ */

.info-box {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-box i {
    font-size: 24px;
}

.info-box-primary {
    background: rgba(37, 99, 235, 0.1);
    border-left: 4px solid var(--primary-color);
}

/* ============================================================================
   14. UTILITIES
   ============================================================================ */

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* ============================================================================
   15. FOOTER
   ============================================================================ */

.page-footer {
    padding: 20px 25px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.page-footer p {
    margin: 4px 0;
}

/* ============================================================================
   16. RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .sidebar-toggle-mobile {
        display: block;
    }
    
    .top-navbar {
        padding: 0 15px;
    }
    
    .navbar-center {
        padding: 0 10px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .page-content {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .user-menu-toggle span {
        display: none;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
}

/* ============================================================================
   PUBCHEM V2 - EK STILLLER
   ============================================================================ */

/* Stats Card (Dashboard'daki stat-card ile uyumlu) */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stats-icon.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-icon.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stats-icon.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stats-icon.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stats-icon.bg-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stats-icon.bg-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.stats-icon.bg-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.stats-info {
    flex: 1;
}

.stats-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stats-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Badge Renk Varyasyonları (bg- prefix ile) */
.badge.bg-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.badge.bg-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge.bg-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge.bg-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge.bg-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.badge.bg-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary-color);
}

.badge.bg-dark {
    background: rgba(30, 41, 59, 0.1);
    color: #1e293b;
}

.badge.bg-light {
    background: rgba(241, 245, 249, 1);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Alert Renk Varyasyonları (Bootstrap uyumlu) */
.alert.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

.alert.alert-light {
    background: #f8fafc;
    color: var(--text-secondary);
    border-left: 4px solid var(--border-color);
}

/* Text Color Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* Background Color Utilities */
.bg-light {
    background-color: var(--bg-gray) !important;
}

.bg-white {
    background-color: var(--bg-white) !important;
}

/* Border Utilities */
.border {
    border: 1px solid var(--border-color) !important;
}

.border-top {
    border-top: 1px solid var(--border-color) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

/* Spacing Utilities */
.mb-0 {
    margin-bottom: 0 !important;
}

.mt-2 {
    margin-top: 8px !important;
}

.mt-4 {
    margin-top: 16px !important;
}

.mb-4 {
    margin-bottom: 16px !important;
}

/* Responsive Grid for Stats Cards */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.row > [class*='col-'] {
    padding-left: 10px;
    padding-right: 10px;
}

.col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
}

/* =================================================================
   PubChem Varyant Kartları
   ================================================================= */
.variant-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.variant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.variant-common {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.variant-common:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
}

.variant-select-btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s;
}

.variant-select-btn:hover {
    transform: scale(1.02);
}

/* ============================================================================
   ORTAK MODÜL STİLLERİ (Inline style'lardan toplandı)
   ============================================================================ */

/* Dashboard & Stats Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-card.warning {
    border-left: 4px solid var(--warning-color);
}

.stat-card.danger {
    border-left: 4px solid var(--danger-color);
}

.stat-card.success {
    border-left: 4px solid var(--success-color);
}

.stat-card.info {
    border-left: 4px solid var(--info-color);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Dashboard Sections */
.dashboard-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

/* Alert Lists */
.alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert-list li {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.alert-list i {
    margin-right: 8px;
}

.alert-list li.danger {
    background: #fee2e2;
    border-left: 4px solid var(--danger-color);
}

.alert-list li.warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.quick-action-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Bildirim Sistemİ */
.bildirim-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bildirim-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.bildirim-item:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bildirim-item.okunmamis {
    background: #eff6ff;
    border-left: 4px solid var(--info-color);
}

.bildirim-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.bildirim-baslik {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.bildirim-tarih {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bildirim-mesaj {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.bildirim-actions {
    display: flex;
    gap: 10px;
}

.bildirim-tip-icon {
    margin-right: 8px;
}

.bildirim-tip-bilgi { color: var(--info-color); }
.bildirim-tip-uyari { color: var(--warning-color); }
.bildirim-tip-hata { color: var(--danger-color); }
.bildirim-tip-basari { color: var(--success-color); }

/* Rapor Kartları */
.rapor-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rapor-card h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.stat-box h4 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.stat-box p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 5px;
}

/* Table Info */
.table-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: var(--border-radius);
    display: flex;
    gap: 15px;
    justify-content: center;
}

.form-horizontal .form-group {
    margin-bottom: 20px;
}

/* Form Rows & Columns */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col-2 {
    flex: 1;
    min-width: 0;
}

.form-col-3 {
    flex: 1;
    min-width: 0;
}

.form-col-4 {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.action-btn-primary {
    background: var(--primary-color);
    color: white;
}

.action-btn-primary:hover {
    background: var(--primary-dark);
}

.action-btn-success {
    background: var(--success-color);
    color: white;
}

.action-btn-success:hover {
    background: #059669;
}

.action-btn-warning {
    background: var(--warning-color);
    color: white;
}

.action-btn-warning:hover {
    background: #d97706;
}

.action-btn-danger {
    background: var(--danger-color);
    color: white;
}

.action-btn-danger:hover {
    background: #dc2626;
}

.action-btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.action-btn-secondary:hover {
    background: #475569;
}

/* Maliyet Karşılaştırma */
.cost-comparison {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cost-item {
    padding: 15px;
    background: var(--bg-gray);
    border-radius: 8px;
}

.cost-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cost-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.cost-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
}

/* Ambalaj Cards */
.ambalaj-card {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    transition: border-color 0.2s;
}

.ambalaj-card:hover {
    border-color: var(--primary-color);
}

.ambalaj-card.selected {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.ambalaj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.ambalaj-body {
    padding-top: 10px;
}

/* Element Content Display */
.element-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.element-item {
    padding: 15px;
    background: var(--bg-gray);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.element-item h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.element-item .value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
}

.element-item .unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 5px;
}

/* Hammadde İçerik Tablosu */
.content-table {
    width: 100%;
    margin-top: 20px;
}

.content-table th {
    background: var(--bg-gray);
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.content-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
}

.content-table tr:hover {
    background: var(--bg-gray);
}

/* Fiyat Geçmişi */
.price-history-item {
    padding: 15px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 10px;
    background: var(--bg-gray);
    border-radius: 4px;
}

.price-history-item .date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.price-history-item .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--success-color);
    margin: 5px 0;
}

.price-history-item .supplier {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Stok Durumu Cards */
.stok-status-card {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.stok-status-card.yeterli {
    background: #f0fdf4;
    border-left: 4px solid var(--success-color);
}

.stok-status-card.kritik {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
}

.stok-status-card.tukendi {
    background: #fee2e2;
    border-left: 4px solid var(--danger-color);
}

/* Bildirim Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--notification-badge-bg);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Detay Sayfası Info Boxes */
.info-box {
    background: var(--bg-gray);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.info-box-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.info-box-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Timeline (Fiyat Geçmişi vb.) */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
}

/* Responsive Helpers */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .element-grid {
        grid-template-columns: 1fr;
    }
    
    .table-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cost-comparison {
        font-size: 0.9rem;
    }
    
    .cost-value {
        font-size: 1.2rem;
    }
}

/* ============================================
   HİYERARŞİK ELEMENT SİSTEMİ - AĞAÇ GÖRÜNÜMÜ
   ============================================ */

.element-tree {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.element-tree-node {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.element-tree-parent {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.element-tree-parent:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.element-tree-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.element-tree-header:hover {
    background: #e9ecef;
}

/* Tree Toggle Button */
.tree-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 8px;
    color: #6c757d;
    transition: all 0.2s ease;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tree-toggle:hover {
    background: #dee2e6;
    color: #495057;
}

.tree-toggle i {
    transition: transform 0.2s ease;
    font-size: 14px;
}

.tree-toggle-placeholder {
    width: 32px;
    display: inline-block;
}

/* Element Badge */
.element-badge {
    min-width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.element-badge-small {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
}

/* Element Info */
.element-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.element-name {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.element-name code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #495057;
}

.element-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.element-meta .badge {
    font-size: 11px;
    padding: 4px 8px;
}

/* Element Actions */
.element-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Alt Elementler */
.element-tree-children {
    background: #ffffff;
    padding: 12px 16px 12px 48px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.element-tree-child {
    box-shadow: none;
    border: 1px solid #e9ecef;
}

.element-tree-child .element-tree-header {
    padding: 12px;
    background: #ffffff;
}

.element-tree-child .element-tree-header:hover {
    background: #f8f9fa;
}

/* Tree Connector */
.tree-connector {
    width: 24px;
    height: 24px;
    border-left: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    border-radius: 0 0 0 8px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Stats Cards */
.stats-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stats-card i {
    font-size: 32px;
    opacity: 0.7;
}

.stats-card .stats-number {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 4px;
}

.stats-card .stats-label {
    font-size: 13px;
    color: #6c757d;
}

.stats-primary { border-left: 4px solid #007bff; }
.stats-primary i { color: #007bff; }

.stats-success { border-left: 4px solid #28a745; }
.stats-success i { color: #28a745; }

.stats-info { border-left: 4px solid #17a2b8; }
.stats-info i { color: #17a2b8; }

.stats-warning { border-left: 4px solid #ffc107; }
.stats-warning i { color: #ffc107; }

/* Hiyerarşik Element Girişi (Hammadde Ekle/Düzenle) */
.element-group-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    margin-top: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.element-group-header i {
    font-size: 20px;
}

.element-group-content {
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    background: #f8f9fa;
}

.element-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.element-input-row:hover {
    border-left-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.element-input-row.parent-element {
    background: #e8f4f8;
    border-left-color: #007bff;
    font-weight: 500;
}

.element-input-row.child-element {
    margin-left: 30px;
    background: #ffffff;
    border-left-color: #dee2e6;
}

.element-input-badge {
    min-width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.element-input-label {
    flex: 0 0 180px;
    font-size: 14px;
}

.element-input-label .auto-calculated {
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
    display: block;
    margin-top: 2px;
}

.element-input-field {
    flex: 0 0 120px;
}

.element-input-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    text-align: right;
}

.element-input-field input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.element-input-field input:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.element-input-unit {
    flex: 0 0 40px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

.element-input-info {
    flex: 1;
    color: #6c757d;
    font-size: 12px;
}

/* Reçete Detay - Hiyerarşik Element Analizi */
.element-analysis-tree {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.analysis-node-parent {
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.analysis-node-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-bottom: 1px solid #e9ecef;
}

.analysis-node-header.expandable {
    cursor: pointer;
}

.analysis-node-header.expandable:hover {
    background: linear-gradient(to right, #e9ecef, #f8f9fa);
}

.analysis-badge {
    min-width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.analysis-data {
    flex: 1;
}

.analysis-element-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.analysis-values {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.analysis-value-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.analysis-value-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analysis-value-number {
    font-size: 24px;
    font-weight: bold;
    color: #212529;
}

.analysis-value-unit {
    font-size: 14px;
    color: #6c757d;
    margin-left: 4px;
}

.analysis-node-children {
    padding: 16px;
    background: #f8f9fa;
}

.analysis-node-child {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #dee2e6;
}

.analysis-node-child:last-child {
    margin-bottom: 0;
}

.analysis-child-connector {
    width: 20px;
    height: 20px;
    border-left: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    border-radius: 0 0 0 6px;
}

.analysis-child-badge {
    min-width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 13px;
}

.analysis-child-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analysis-child-name {
    font-weight: 500;
    font-size: 14px;
}

.analysis-child-values {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.analysis-child-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.analysis-child-value-number {
    font-weight: bold;
    color: #495057;
}

.analysis-child-value-label {
    font-size: 11px;
    color: #6c757d;
}

/* Progress Bar (Yüzdelik Gösterim) */
.element-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.element-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .element-tree-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .element-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .element-tree-children {
        padding-left: 24px;
    }
    
    .analysis-node-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .analysis-values {
        flex-direction: column;
        gap: 12px;
    }
    
    .stats-card {
        flex-direction: column;
        text-align: center;
    }
}
