/* Modal */
/* Floating Window (Draggable Modal) - Modern Design */
.floating-window {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 95vw;
    height: calc(100vh - 100px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 99999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    resize: both;
    min-width: 600px;
    min-height: 600px;
}

/* Stock Card Tabs - Modern */
.stock-card-tabs {
    display: flex;
    background: #f8fafc;
    padding: 0 16px;
    overflow-x: auto;
    flex-shrink: 0;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
}

.stock-card-tab {
    padding: 12px 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: #6b7280;
    border-radius: 0;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.stock-card-tab:hover {
    background: transparent;
    color: #374151;
    border-bottom-color: #d1d5db;
}

.stock-card-tab.active {
    background: transparent;
    color: #6366f1;
    border-bottom-color: #6366f1;
    font-weight: 600;
}

/* Stock Card Content - Modern */
.stock-card-content {
    flex: 1;
    display: none;
    overflow: auto;
    padding: 16px;
    background: #f3f4f6;
    scrollbar-width: thin;
    scrollbar-color: #c7c7cc #e2e8f0;
}

.stock-card-content::-webkit-scrollbar {
    width: 10px;
    height: 14px;
}

.stock-card-content::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 7px;
}

.stock-card-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 7px;
    border: 2px solid #e2e8f0;
}

.stock-card-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.stock-card-content::-webkit-scrollbar-corner {
    background: #e2e8f0;
}

.stock-card-content.active {
    display: block;
}

/* Two Column Layout */
.stock-card-columns {
    display: flex;
    gap: 20px;
    min-height: 100%;
    min-width: 0;
}

.stock-card-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stock-card-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Orta sütun (dinamik olarak oluşturulacak) */
.stock-card-center {
    display: none;
    flex-direction: column;
    gap: 16px;
    min-width: 400px;
    max-width: 450px;
}

.stock-card-center .form-panel {
    border-color: rgba(99, 102, 241, 0.15);
}

/* Ultra Wide (2400px+) - 3 sütunlu layout */
@media (min-width: 2400px) {
    .stock-card-columns {
        gap: 16px;
    }

    .stock-card-left {
        flex: 1;
        min-width: 350px;
    }

    .stock-card-center {
        display: flex;
        flex: 1;
        min-width: 350px;
    }

    .stock-card-right {
        flex: 1;
        min-width: 350px;
    }
}

/* Normal ekranlar (2400px altı) */
@media (max-width: 2399px) {
    .stock-card-center {
        display: none !important;
    }
}

/* Form Panels - Modern Glass Effect */
.form-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: visible;
    transition: box-shadow 0.2s;
    min-width: 0;
}

.form-panel:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Panel içindeki tüm elementlerin küçülebilmesini sağla */
.form-panel div,
.form-panel .inline-form-row {
    min-width: 0;
    box-sizing: border-box;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Excel Import Modal için özel form-panel stilleri */
#excelImportModal .form-panel {
    flex-shrink: 0;
}

.form-panel-title {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    padding: 12px 16px;
    margin: 0;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    border-left: 3px solid #6366f1;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-panel-title i {
    color: #6366f1;
}

.form-panel-body {
    padding: 16px;
}

/* Form panel içinde doğrudan içerik varsa (form-panel-body kullanılmıyorsa) */
.form-panel>.inline-form-row:first-of-type,
.form-panel>div:not(.form-panel-title):first-of-type:not(.form-panel-body) {
    padding-top: 16px;
}

.form-panel>.inline-form-row,
.form-panel>div:not(.form-panel-title):not(.form-panel-body) {
    padding-left: 16px;
    padding-right: 16px;
}

.form-panel>.inline-form-row:last-child,
.form-panel>div:not(.form-panel-title):last-child:not(.form-panel-body) {
    padding-bottom: 16px;
}

/* Vehicle Category Tabs */
.vehicle-cat-tab {
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.vehicle-cat-tab:hover {
    background: #f1f5f9;
    color: #0ea5e9;
}

.vehicle-cat-tab.active {
    background: linear-gradient(90deg, #e0f2fe 0%, #f0f9ff 100%);
    color: #0284c7;
    border-left-color: #0ea5e9;
    font-weight: 600;
}

.vehicle-cat-tab i {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.vehicle-cat-content {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.vehicle-cat-content.active {
    display: flex;
}

/* Inline Form - Modern */
.inline-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    min-width: 0;
}

.inline-form-row label {
    min-width: 80px;
    flex-shrink: 0;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.inline-form-row input,
.inline-form-row select {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s;
    box-sizing: border-box;
}

.inline-form-row input::placeholder {
    color: #9ca3af;
}

.inline-form-row input:hover,
.inline-form-row select:hover {
    border-color: #9ca3af;
}

.inline-form-row input:focus,
.inline-form-row select:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.inline-form-row input[readonly] {
    background: #f9fafb;
    color: #9ca3af;
    cursor: default;
}

.inline-form-row .btn-icon {
    padding: 8px 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    transition: all 0.2s;
}

.inline-form-row .btn-icon:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

/* Teker pozisyonu butonları */
.wheel-btn {
    transition: all 0.2s ease !important;
}

.wheel-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wheel-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: #b45309 !important;
    color: white !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.wheel-btn.active span {
    color: white !important;
}

/* Filtre teker butonları */
.filter-wheel-btn {
    transition: all 0.2s ease !important;
}

.filter-wheel-btn:hover {
    transform: scale(1.1);
    border-color: #6366f1 !important;
}

.filter-wheel-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border-color: #4f46e5 !important;
    color: white !important;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

/* Kategori Tree Filter Styles */
.category-tree-filter {
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    height: 30px;
    box-sizing: border-box;
}

.category-tree-filter:hover {
    border-color: #6366f1;
    background: #f8fafc;
}

.category-filter-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.category-filter-text {
    font-size: 11px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-filter-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 11px;
    color: #374151;
    width: 100%;
    padding: 0;
    margin: 0;
    min-width: 0;
    cursor: pointer;
}

.category-filter-search-input::placeholder {
    color: #94a3b8;
}

.category-filter-search-input:focus {
    cursor: text;
}

.category-filter-search-input.has-selection {
    color: #059669;
}

/* Searchable Select Component */
.searchable-select-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.searchable-select-input {
    width: 100%;
    padding: 6px 24px 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    font-size: 11px;
    color: #374151;
    height: 30px;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.searchable-select-input:focus {
    border-color: #6366f1;
    cursor: text;
}

.searchable-select-input::placeholder {
    color: #94a3b8;
}

.searchable-select-input.has-value {
    color: #059669;
    font-weight: 500;
}

.searchable-select-chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #94a3b8;
    pointer-events: none;
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 2px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.searchable-select-dropdown.open {
    display: block;
}

.searchable-select-item {
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.1s;
    color: #374151;
}

.searchable-select-item:hover,
.searchable-select-item.highlighted {
    background: #f1f5f9;
}

.searchable-select-item.selected {
    background: #ecfdf5;
    color: #059669;
    font-weight: 500;
}

.searchable-select-item .ss-highlight {
    background: #fef08a;
    border-radius: 2px;
    padding: 0 1px;
}

.searchable-select-no-result {
    padding: 12px 10px;
    text-align: center;
    color: #94a3b8;
    font-size: 10px;
}

.category-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cat-filter-item.hidden-by-filter {
    display: none;
}

.cat-filter-highlight {
    background: #fef08a;
    border-radius: 2px;
    padding: 0 1px;
}

.cat-filter-no-result {
    text-align: center;
    padding: 15px;
    color: #94a3b8;
    font-size: 10px;
}

.category-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.category-filter-tree {
    overflow-y: auto;
    flex: 1;
    padding: 6px;
}

.cat-filter-item {
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    transition: all 0.15s;
}

.cat-filter-item:hover {
    background: #f1f5f9;
}

.cat-filter-item.selected {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #10b981;
}

.cat-filter-item.level-0 {
    color: #059669;
    font-weight: 600;
}

.cat-filter-item.level-1 {
    color: #2563eb;
    font-weight: 500;
    margin-left: 12px;
}

.cat-filter-item.level-2 {
    color: #d97706;
    margin-left: 24px;
}

.cat-filter-expand {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #94a3b8;
}

.inline-form-row .btn-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Dynamic Fields Panel */
.dynamic-fields-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.dynamic-fields-header h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dynamic-fields-header h4 i {
    color: #6366f1;
}

.dynamic-field-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dynamic-field-tab {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 500;
    background: #e9ecef;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.dynamic-field-tab:hover {
    background: #dee2e6;
}

.dynamic-field-tab.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.dynamic-field-content {
    display: none;
}

.dynamic-field-content.active {
    display: block;
}

.dynamic-field-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.dynamic-field-row label {
    min-width: 130px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    padding-top: 8px;
}

.dynamic-field-row input,
.dynamic-field-row select,
.dynamic-field-row textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #f8fafc;
    transition: all 0.2s;
}

.dynamic-field-row input:focus,
.dynamic-field-row select:focus,
.dynamic-field-row textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Checkbox List - Modern */
.checkbox-list {
    max-height: 160px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: #f8fafc;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 6px;
    transition: background 0.15s;
}

.checkbox-item:hover {
    background: #e9ecef;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

/* Checkbox Grid - Yan yana çoklu seçim */
.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.checkbox-grid-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.checkbox-grid-item:hover {
    background: #e9ecef;
    border-color: #6366f1;
}

.checkbox-grid-item:has(input:checked) {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    color: #6366f1;
}

.checkbox-grid-item input {
    width: 14px;
    height: 14px;
    accent-color: #6366f1;
}

/* Compact Fields - Boolean'lar yan yana */
.compact-fields-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
}

.compact-field-item {
    display: flex;
    align-items: center;
}

.compact-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.compact-checkbox-label:hover {
    border-color: #6366f1;
}

.compact-checkbox-label:has(input:checked) {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    color: #6366f1;
}

.compact-checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: #6366f1;
}

/* Compact Select Grid - Select'ler yan yana */
.compact-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.compact-select-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compact-select-item label {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.compact-select-item select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    background: white;
}

.compact-select-item select:focus {
    outline: none;
    border-color: #6366f1;
}

/* Success Animation Overlay */
.success-animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

.success-animation-overlay.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.success-animation-content {
    text-align: center;
    color: white;
}

.success-animation-content h2 {
    font-size: 28px;
    margin: 20px 0 10px;
    color: #22c55e;
    animation: slideUp 0.5s ease 0.5s both;
}

.success-animation-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    animation: slideUp 0.5s ease 0.7s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Checkmark Animation */
.success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.check-icon {
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 50%;
    box-sizing: border-box;
    border: 4px solid #22c55e;
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.check-icon::before,
.check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: rgba(26, 26, 46, 0.95);
    transform: rotate(-45deg);
}

.icon-line {
    height: 5px;
    background-color: #22c55e;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 52px;
    left: 18px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s ease forwards;
}

.icon-line.line-long {
    top: 42px;
    right: 12px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s ease forwards;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    box-sizing: border-box;
    border: 4px solid rgba(34, 197, 94, 0.3);
}

.icon-fix {
    top: 10px;
    width: 5px;
    left: 32px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: rgba(26, 26, 46, 0.95);
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }

    70% {
        width: 50px;
        left: -8px;
        top: 47px;
    }

    84% {
        width: 17px;
        left: 21px;
        top: 54px;
    }

    100% {
        width: 25px;
        left: 18px;
        top: 52px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }

    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }

    100% {
        width: 47px;
        right: 12px;
        top: 42px;
    }
}

@keyframes spin360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }

    5% {
        transform: rotate(-45deg);
    }

    12% {
        transform: rotate(-405deg);
    }

    100% {
        transform: rotate(-405deg);
    }
}

/* Image Section - Modern */
.image-section {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.image-box {
    width: 100px;
    height: 100px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.image-box:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.image-box i {
    color: #94a3b8;
}

.image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Stok Kartı Görsel Kutuları */
.stock-image-box:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.02);
}

.stock-image-box.has-image {
    border-style: solid;
    border-color: #10b981;
}

.stock-image-box.has-image:hover {
    border-color: #059669;
}

/* Fatura Kartı Toolbar Stilleri - Modern Minimal */
.inv-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.inv-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    transform: translateY(-1px);
}

.inv-toolbar-btn:active {
    transform: translateY(0);
}

.inv-toolbar-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.inv-toolbar-btn i {
    font-size: 12px;
    opacity: 0.85;
}

.inv-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.inv-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.inv-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.inv-btn-danger:hover {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.inv-btn-warning {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.inv-btn-warning:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fcd34d;
}

.inv-btn-info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.inv-btn-info:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.inv-btn-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.inv-btn-success:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.inv-btn-teal {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.2);
    color: #2dd4bf;
}

.inv-btn-teal:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.3);
    color: #5eead4;
}

.inv-btn-purple {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.inv-btn-purple:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

/* Footer Toolbar - Modern */
.stock-card-toolbar {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.15s;
}

.toolbar-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.toolbar-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.toolbar-btn i {
    font-size: 14px;
}

.toolbar-btn.primary {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.toolbar-btn.primary:hover {
    background: #059669;
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.toolbar-btn.danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.toolbar-btn.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Custom Field Definition Styles */
.field-def-container {
    display: flex;
    gap: 20px;
    height: 100%;
}

.field-def-left {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field-def-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.field-group-list {
    flex: 1;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.field-group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.field-group-item:hover {
    background: #f1f5f9;
}

.field-group-item.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.field-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.field-list-table th {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-list-table th:first-child {
    border-radius: 10px 0 0 0;
}

.field-list-table th:last-child {
    border-radius: 0 10px 0 0;
}

.field-list-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: white;
    transition: all 0.15s ease;
}

.field-list-table tbody tr {
    cursor: pointer;
}

.field-list-table tbody tr:hover td {
    background: #f8fafc;
}

.field-list-table tbody tr.selected td {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-left: 3px solid #6366f1;
}

.field-list-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}

.field-list-table tbody tr:last-child td:last-child {
    border-radius: 0 0 10px 0;
}

/* Custom Field Butonları - Modern Tasarım */
.custom-field-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-field-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.custom-field-btn:active {
    transform: translateY(0);
}

.custom-field-btn.new-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.custom-field-btn.new-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.custom-field-btn.save-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.custom-field-btn.save-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.custom-field-btn.delete-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.custom-field-btn.delete-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.custom-field-btn.category-delete-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 6px 12px;
    font-size: 11px;
}

.custom-field-btn.category-delete-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.custom-field-btn i {
    font-size: 14px;
}

/* Uygulama İçi Onay Modalı */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.confirm-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.25s ease;
}

.confirm-modal-overlay.show .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-modal-header {
    padding: 20px 24px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.confirm-modal-header.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.confirm-modal-header.danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.confirm-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.confirm-modal-header.warning .confirm-modal-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.confirm-modal-header.danger .confirm-modal-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.confirm-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.confirm-modal-body {
    padding: 20px 24px;
}

.confirm-modal-message {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.confirm-modal-data-warning {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 10px;
    border-left: 4px solid #ef4444;
}

.confirm-modal-data-warning p {
    margin: 0;
    font-size: 13px;
    color: #991b1b;
    font-weight: 600;
}

.confirm-modal-data-warning span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #b91c1c;
    font-weight: 400;
}

.confirm-modal-footer {
    padding: 16px 24px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-modal-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-modal-btn.cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.confirm-modal-btn.cancel:hover {
    background: #e5e7eb;
}

.confirm-modal-btn.confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.confirm-modal-btn.confirm:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.data-type-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.data-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.data-type-option:hover {
    background: #f1f5f9;
}

.data-type-option.selected {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.floating-window.show {
    display: flex !important;
    flex-direction: column;
}

.floating-window.dragging {
    transition: none !important;
    user-select: none;
}

.floating-window.dragging .floating-header {
    cursor: grabbing;
}

.floating-window.snapped {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Snap Group Tab */
.tab.snap-group-tab {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    gap: 4px;
}

.tab.snap-group-tab .snap-group-icons {
    display: flex;
    align-items: center;
    gap: 2px;
}

.tab.snap-group-tab .snap-group-icons i {
    font-size: 11px;
    opacity: 0.8;
}

.tab.snap-group-tab.floating-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
}

.tab.snap-group-tab.floating-active::after {
    background: #6366f1 !important;
}

.tab.snap-group-tab .snap-group-badge {
    background: #6366f1;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 2px;
}

/* ==================== SNAP LAYOUT SYSTEM (Windows 11 Style) ==================== */
.snap-layout-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 999999;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.snap-layout-overlay.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.snap-layout-title {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-align: center;
}

.snap-layouts-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.snap-layout-option {
    width: 52px;
    height: 36px;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #f9fafb;
    position: relative;
    overflow: hidden;
}

.snap-layout-option:hover {
    border-color: #6366f1;
    background: #eef2ff;
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.snap-layout-option .snap-zone-preview {
    background: #d1d5db;
    border-radius: 2px;
    transition: background 0.15s ease;
    box-sizing: border-box;
}

.snap-layout-option:hover .snap-zone-preview {
    background: #a5b4fc;
}

.snap-layout-option .snap-zone-preview:hover {
    background: #6366f1 !important;
}

/* Snap Preview (shows where window will go on screen) */
.snap-preview {
    position: fixed;
    z-index: 999998;
    background: rgba(99, 102, 241, 0.08);
    border: 2px dashed rgba(99, 102, 241, 0.4);
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.snap-preview.show {
    opacity: 1;
}

/* Snap edge indicator (top glow when dragging near top) */
.snap-edge-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.6), transparent);
    z-index: 999997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.snap-edge-indicator.show {
    opacity: 1;
}

/* Snap resize handle between snapped windows */
.snap-resize-handle {
    position: fixed;
    z-index: 999996;
    background: transparent;
    transition: background 0.15s;
}

.snap-resize-handle.vertical {
    width: 8px;
    cursor: col-resize;
    margin-left: -4px;
}

.snap-resize-handle.horizontal {
    height: 8px;
    cursor: row-resize;
    margin-top: -4px;
}

.snap-resize-handle:hover,
.snap-resize-handle.active {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

.snap-resize-handle::after {
    content: '';
    position: absolute;
    border-radius: 2px;
    background: rgba(99, 102, 241, 0);
    transition: background 0.15s;
}

.snap-resize-handle.vertical::after {
    width: 3px;
    height: 32px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.snap-resize-handle.horizontal::after {
    height: 3px;
    width: 32px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.snap-resize-handle:hover::after,
.snap-resize-handle.active::after {
    background: rgba(99, 102, 241, 0.8);
}

/* Dark mode overrides */
body.dark-mode .snap-layout-overlay {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dark-mode .snap-layout-title {
    color: #94a3b8;
}

body.dark-mode .snap-layout-option {
    border-color: #334155;
    background: #1e293b;
}

body.dark-mode .snap-layout-option:hover {
    border-color: #818cf8;
    background: #312e81;
}

body.dark-mode .snap-layout-option .snap-zone-preview {
    background: #475569;
}

body.dark-mode .snap-layout-option:hover .snap-zone-preview {
    background: #6366f1;
}

body.dark-mode .snap-layout-option .snap-zone-preview:hover {
    background: #818cf8 !important;
}

body.dark-mode .snap-preview {
    background: rgba(129, 140, 248, 0.08);
    border-color: rgba(129, 140, 248, 0.4);
}

body.dark-mode .snap-edge-indicator {
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.6), transparent);
}

