/* Ürün Ekleme Sayfası Özel Stilleri */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Kurumsal Form Stilleri */
.form-section {
    position: relative;
    margin-bottom: 2rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}

.form-section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
}

.section-icon {
    width: 48px;
    height: 48px;
    background: #ffffff;
    color: #3b82f6;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.section-icon:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Kurumsal Form Grupları */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
}

.required-field::after {
    content: '*';
    color: #ef4444;
    font-weight: 600;
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1f2937;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Minimalist Kategori Seçimi */
.quick-category {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.category-tag {
    background: #ffffff;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #e5e7eb;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.category-tag:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.category-tag.selected {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Minimalist Görsel Önizleme */
.image-preview {
    margin-top: 1.5rem;
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.image-preview.has-image {
    border-color: #10b981;
    background: #f0fdf4;
    border-style: solid;
}

.image-preview img {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.image-preview img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.image-upload-area {
    padding: 3rem 2rem;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    text-align: center;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload-area:hover {
    border-color: #3b82f6;
    background: #f8faff;
}

.image-upload-area.drag-over {
    border-color: #10b981;
    background: #f0fdf4;
    transform: scale(1.01);
}

.upload-icon {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.upload-hint {
    font-size: 0.85rem;
    color: #6b7280;
    font-family: 'Montserrat', sans-serif;
}

/* Kurumsal Modül Sistemi */
.module-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.module-section.active {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.module-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.module-toggle:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.module-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.module-label {
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    flex: 1;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.module-help {
    font-size: 0.85rem;
    color: #6b7280;
    font-family: 'Montserrat', sans-serif;
}

.modules-container {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.modules-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.module-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border-left: 4px solid #3b82f6;
}

.module-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.module-title {
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.module-number {
    background: #3b82f6;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.remove-module-btn {
    background: #ef4444;
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.remove-module-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.add-module-btn {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    font-family: 'Montserrat', sans-serif;
}

.add-module-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

/* Kurumsal Tedarik Seçimi */
.tedarik-select {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.tedarik-select label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.tedarik-select select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tedarik-select select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auto-fill-btn {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    font-family: 'Montserrat', sans-serif;
}

.auto-fill-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Kurumsal Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #6b7280;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

/* Minimalist Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-section:nth-child(1) {
    animation: fadeInUp 0.5s ease;
}

.form-section:nth-child(2) {
    animation: fadeInUp 0.5s ease 0.1s both;
}

.form-section:nth-child(3) {
    animation: fadeInUp 0.5s ease 0.2s both;
}

.form-section:nth-child(4) {
    animation: fadeInUp 0.5s ease 0.3s both;
}

.form-section:nth-child(5) {
    animation: fadeInUp 0.5s ease 0.4s both;
}

.module-item {
    animation: fadeInUp 0.4s ease;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Form Validation States */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.success-message {
    color: #10b981;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

/* Progress Indicator */
.form-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f3f4f6;
    z-index: 1000;
}

.form-progress-bar {
    height: 100%;
    background: #3b82f6;
    width: 0%;
    transition: width 0.3s ease;
}

/* Help Text */
.form-help-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    font-family: 'Montserrat', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.125rem;
    }
    
    .module-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .quick-category {
        justify-content: center;
    }
    
    .category-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .module-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tedarik-select > div {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .module-section {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .module-item {
        padding: 1rem;
    }
    
    .form-actions {
        position: sticky;
        bottom: 0;
        background: #ffffff;
        padding: 1rem;
        margin: 0 -1rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e5e7eb;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .form-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #d1d5db;
    }
    
    .module-section {
        break-inside: avoid;
    }
    
    .form-actions,
    .remove-module-btn,
    .add-module-btn {
        display: none;
    }
}

/* Focus Management */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Selection Styles */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #1f2937;
}

/* Enhanced Typography */
body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #374151;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #1f2937;
}

/* Utility Classes */
.text-muted {
    color: #6b7280;
}

.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

.bg-light {
    background-color: #f9fafb;
}

.border-light {
    border-color: #e5e7eb;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shadow-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}