/* Form-control ve input-wrapper eski sisteme benzer sade stil */
.input-wrapper {
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    color: #111827;
    transition: all 0.2s ease;
    margin-bottom: 0;
    min-height: 38px;
    height: 38px;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Number input için özel stil */
.form-control[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.form-control[type="number"]::-webkit-outer-spin-button,
.form-control[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-control[type="number"]::placeholder {
    color: #9ca3af;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f9fafb;
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-wrapper {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.header-title {
    font-size: 18px;
    font-weight: 400;
    color: #111827;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.home-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.home-btn svg {
    width: 18px;
    height: 18px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: none;
    border: none;
    border-radius: 6px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-left: 16px;
}

.nav-btn:hover {
    color: #0f172a;
}

.nav-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.nav-btn:hover svg {
    transform: translateX(1px);
}

/* User Section Styles */
.user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.login-btn {
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

.login-btn:hover {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.alert {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 14px 18px;
    margin-bottom: 32px;
    color: #92400e;
    font-size: 14px;
    border-radius: 4px;
    display: none;
}

.form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 48px;
}

.form-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.form-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0px;
    margin-top: 24px;
}

.form-header p {
    font-size: 15px;
    color: #6b7280;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #374151;
    background: #f9fafb;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-btn svg {
    width: 16px;
    height: 16px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

/* Field label with asterisk support */
.field-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.required-asterisk {
    color: #9ca3af;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
}

.form-group input {
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #111827;
}

#marka_ismi_only {
    width: 100% !important;
}


.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-group.error input {
    border-color: #dc2626;
}

.form-group.error .error-message {
    display: block;
}

/* Toggle Switch Container */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    padding-left: 0;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* Toggle Switch - Minimal Size */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(18px);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.4);
}

.toggle-switch input:focus+.toggle-slider {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Toggle Label - Compact */
.toggle-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-title {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
}

.toggle-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.2;
}

/* Active state styling */
.toggle-switch input:checked~.toggle-label .toggle-title {
    color: #3b82f6;
}

.submit-btn {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    background: #3b82f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #2563eb;
}

.submit-btn:active {
    background: #1d4ed8;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.form-footer p {
    font-size: 13px;
    color: #6b7280;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 20px;
    }

    .header-title {
        font-size: 16px;
    }

    .logo-wrapper {
        width: 40px;
        height: 40px;
    }

    .home-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 13px;
    }

    .form-card {
        padding: 32px 24px;
    }

    .form-header h1 {
        font-size: 24px;
    }
}

/* Results Section Styling */
.results-section {
    margin-top: 32px;
    padding: 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    margin-bottom: 24px;
    text-align: center;
}

.results-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.results-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Variations Container */
.variations-container {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px;
    background: white;
    max-height: 300px;
    overflow-y: auto;
}

.variation-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    margin-bottom: 6px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: white !important;
}

.variation-item:hover {
    background-color: #f8fafc !important;
    border-color: #3b82f6 !important;
}

.variation-item:last-child {
    margin-bottom: 0 !important;
}

/* Final Button Styling */
.final-btn {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    background: #3b82f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.final-btn:hover {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    background: #3b82f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.final-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .results-section {
        padding: 24px 20px;
        margin-top: 24px;
    }

    .results-header h3 {
        font-size: 18px;
    }

    .variation-item {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 12px 16px;
    }

    .header-title {
        display: none;
    }

    .container {
        padding: 0 16px;
        margin: 20px auto;
    }

    .form-card {
        padding: 24px 20px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .home-btn span {
        display: none;
    }
}

/* Reports Page Styles */
.reports-page {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: #f9fafb;
    position: relative;
    z-index: 1;
    border-radius: 12px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Filters Section */
.filters-section {
    display: flex;
    gap: 16px;
    align-items: end;
    margin-bottom: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Reports Grid */
.reports-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
}

.empty-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.empty-action-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Report Cards */
.report-card {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 24px;
}

.report-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.card-menu-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0;
}

.report-card:hover .card-menu-btn {
    opacity: 1;
}

.card-menu-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.card-menu-btn:active {
    background: #e5e7eb;
}

.report-card-content {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    right: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
    min-width: 180px;
    overflow: hidden;
    animation: menuFadeIn 0.15s ease-out;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: #f9fafb;
}

.dropdown-item.delete-item {
    color: #dc2626;
}

.dropdown-item.delete-item:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.dropdown-item svg {
    flex-shrink: 0;
}

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

/* Delete Confirmation Modal */
.delete-confirm-modal {
    max-width: 450px;
}

.delete-warning {
    text-align: center;
    padding: 20px 0;
}

.delete-warning svg {
    color: #f59e0b;
    margin-bottom: 16px;
}

.delete-warning p {
    font-size: 16px;
    color: #111827;
    margin-bottom: 8px;
    font-weight: 500;
}

.delete-note {
    font-size: 14px !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
}

.delete-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.cancel-btn {
    flex: 1;
    padding: 10px 16px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: #e5e7eb;
}

.confirm-delete-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-delete-btn:hover {
    background: #b91c1c;
}

.confirm-delete-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.report-card-content {
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.report-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

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

.report-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.variations-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.variation-tag-small {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

.variation-tag-more {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}

.report-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.report-date svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.report-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    border: none;
    margin: 0;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-error {
    background: #fee2e2;
    color: #dc2626;
}

.status-warning {
    background: #fef3c7;
    color: #d97706;
}

.status-info {
    background: #dbeafe;
    color: #2563eb;
}

.report-content {
    flex: 1;
    min-width: 0;
}

.report-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.stat-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.report-actions {
    display: flex;
    justify-content: flex-end;
    min-width: 140px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.view-btn:hover {
    background: #2563eb;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 1600px;
    width: 98%;
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-large {
    max-width: 1800px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.detail-info {
    background: #f9fafb;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

/* Compact Info Bar */
.detail-info-compact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.info-item svg {
    flex-shrink: 0;
}

.info-divider {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #374151;
}

.info-value {
    color: #111827;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.variations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variation-tag {
    background: #dbeafe;
    color: #2563eb;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-item {
    color: #3b82f6;
    text-decoration: none;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.link-item:hover {
    background: #e2e8f0;
    border-color: #3b82f6;
}

.results-table {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.table-header {
    background: #f9fafb;
    display: grid;
    grid-template-columns: 120px 2fr 1.5fr 100px 80px;
    gap: 1px;
    border-bottom: 1px solid #e5e7eb;
}

.table-row {
    gap: 1px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background: #f8fafc;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 14px;
    font-size: 14px;
    background: white;
    display: flex;
    align-items: center;
}

.table-header .table-cell {
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
}

.product-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
}

.product-link:hover {
    text-decoration: underline;
}

.seller-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}

.seller-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.price-text {
    font-weight: 600;
    color: #059669;
}

.description-container {
    width: 100%;
}

.description-text {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.description-text.clickable {
    cursor: pointer;
    transition: color 0.2s ease;
}

.description-text.clickable:hover {
    color: #3b82f6;
}

.description-text.expanded {
    white-space: pre-wrap;
}

.dots {
    color: #3b82f6;
    font-weight: 600;
}

.collapse-link {
    color: #3b82f6;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    margin-left: 4px;
}

.collapse-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: #6b7280;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-link:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.copy-btn:hover {
    background: #fef3c7;
    color: #d97706;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #059669;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Analysis Completed Toast */
.analysis-completed-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    transform: translateX(120%) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    max-width: 420px;
    min-width: 360px;
    overflow: hidden;
    position: relative;
}

.analysis-completed-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #059669 100%);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.analysis-completed-toast.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.analysis-completed-toast:hover {
    transform: translateX(0) scale(1.02) translateY(-4px);
    box-shadow: 0 25px 70px rgba(5, 150, 105, 0.35),
        0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: rgba(5, 150, 105, 0.3);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    position: relative;
}

.toast-icon {
    color: #059669;
    flex-shrink: 0;
    margin-top: 2px;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.toast-icon svg {
    filter: drop-shadow(0 2px 4px rgba(5, 150, 105, 0.3));
}

.toast-text {
    flex: 1;
}

.toast-text h4 {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.toast-text p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.toast-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
    transform: rotate(90deg);
}

.keyword-tag {
    background: #fef3c7;
    color: #d97706;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

/* Pagination Styles */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    font-size: 14px;
    color: #6b7280;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-number:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.page-number.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-dots {
    padding: 0 8px;
    color: #9ca3af;
    font-size: 14px;
}

/* Accordion Styles */
.accordion-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.accordion-item:hover {
    border-color: #3b82f6;
}

.accordion-item.active {
    border-color: #3b82f6;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background-color: #f9fafb;
}

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

.accordion-icon {
    color: #6b7280;
    transition: transform 0.2s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(90deg);
}

.variation-badge {
    background: #dbeafe;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.link-badge {
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.products-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
}

.products-count svg {
    color: #9ca3af;
}

.accordion-content {
    padding: 0 24px 24px;
    display: none;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* Product Image */
.product-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 4px;
    transition: transform 0.2s ease;
}

.product-image:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Reviews Button */
.reviews-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reviews-btn:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.no-reviews {
    color: #9ca3af;
    font-size: 13px;
}

/* Reviews Modal */
.reviews-modal {
    max-width: 800px;
}

/* Image Modal */
.image-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

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

.review-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-rating {
    font-size: 14px;
}

.review-date {
    font-size: 13px;
    color: #6b7280;
}

.review-comment {
    color: #111827;
    line-height: 1.6;
    margin-bottom: 8px;
}

.review-seller {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* Update table grid for new columns */
.table-header {
    background: #f9fafb;
    display: grid;
    grid-template-columns: 110px 130px 2.5fr 1.5fr 110px 140px 90px;
    gap: 1px;
    border-bottom: 1px solid #e5e7eb;
}

.table-row {
    gap: 1px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

/* Mobile Responsive for Reports */
@media (max-width: 768px) {
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-grid {
        gap: 8px;
    }

    .report-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }

    .report-card:hover {
        transform: none;
    }

    .report-card-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .report-header {
        min-width: auto;
    }

    .report-stats {
        gap: 16px;
        flex-wrap: wrap;
    }

    .report-footer {
        order: -1;
    }

    .report-actions {
        min-width: auto;
        width: 100%;
    }

    .view-btn {
        width: 100%;
        justify-content: center;
    }

    .accordion-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .link-badge {
        max-width: 200px;
    }

    .accordion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .products-count {
        align-self: flex-end;
    }

    .card-menu-btn {
        opacity: 1;
    }

    .dropdown-menu {
        right: 8px;
        left: auto;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .modal-content {
        margin: 5px;
        max-height: 98vh;
        width: calc(100% - 10px);
    }

    .modal-large {
        max-width: none;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .table-cell {
        border-bottom: 1px solid #f3f4f6;
        padding: 8px 12px;
    }

    .table-cell:before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        display: block;
        margin-bottom: 4px;
        font-size: 12px;
        text-transform: uppercase;
    }

    .table-header {
        display: none;
    }

    .toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }

    .toast.show {
        transform: translateY(0);
    }

    .analysis-completed-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        transform: translateY(-100%);
    }

    .analysis-completed-toast.show {
        transform: translateY(0);
    }

    .analysis-completed-toast:hover {
        transform: translateY(0);
    }

    .toast-content {
        padding: 12px;
    }

    .toast-text h4 {
        font-size: 15px;
    }

    .toast-text p {
        font-size: 13px;
    }

    .report-stats {
        justify-content: space-between;
    }

    .pagination-container {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    .pagination-numbers {
        order: -1;
        justify-content: center;
        margin: 0;
    }

    .pagination-info {
        text-align: center;
    }
}

/* Detail Page Styles */
.page-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}

.detail-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.header-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
    background: #2563eb;
}

/* Filters Container */
.filters-container {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.filter-input,
.filter-select {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #111827;
    background: white;
    transition: all 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-inputs input {
    flex: 1;
    min-width: 0;
}

.price-separator {
    color: #6b7280;
    font-weight: 500;
    font-size: 13px;
}

.filter-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.apply-filters-btn,
.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apply-filters-btn {
    background: #059669;
    color: white;
}

.apply-filters-btn:hover {
    background: #047857;
}

.clear-filters-btn {
    background: #ffffff;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.clear-filters-btn:hover {
    background: #f9fafb;
    color: #374151;
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.error-state svg {
    color: #ef4444;
    margin-bottom: 16px;
}

.error-state h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.error-state p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}

.retry-btn {
    padding: 10px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: #2563eb;
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 16px;
    }

    .header-left {
        gap: 12px;
    }

    .page-title {
        font-size: 18px;
    }

    .detail-container {
        padding: 16px;
    }

    .detail-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .detail-info-compact {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .info-divider {
        display: none;
    }

    .info-item {
        font-size: 13px;
    }

    .header-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .filter-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .filters-container {
        padding: 16px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .apply-filters-btn,
    .clear-filters-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PAGINATION STYLES
   ============================================ */

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pagination-info {
    color: #6b7280;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-number {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-number:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

.page-number.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.page-dots {
    padding: 0 8px;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 16px;
    }

    .pagination-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ============================================
   TOM-SELECT DROPDOWN PADDING
   ============================================ */

.ts-dropdown .ts-dropdown-content {
    padding: 8px !important;
}

.ts-dropdown .option {
    padding: 10px 12px !important;
}

.ts-dropdown .optgroup-header {
    padding: 10px 12px !important;
}

/* ============================================
   SMART TABLE STYLES
   ============================================ */

/* Smart Table Controls */
.smart-table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.table-search {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.table-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.table-search-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #fff;
    color: #111827;
    transition: all 0.2s ease;
}

.table-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.table-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.table-filter-select {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #fff;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.table-filter-select:hover {
    border-color: #3b82f6;
}

.table-filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Smart Table Container */
.smart-table-container {
    background: #ffffff;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

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

.smart-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.smart-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    white-space: nowrap;
    vertical-align: middle;
}

/* Kolon genişlikleri */
.smart-table th:nth-child(1) {
    width: 10%;
}

/* Analiz ID */
.smart-table th:nth-child(2) {
    width: 10%;
}

/* Durum */
.smart-table th:nth-child(3) {
    width: 12%;
}

/* Varyasyonlar */
.smart-table th:nth-child(4) {
    width: 12%;
}

/* Varyasyon Sayısı */
.smart-table th:nth-child(5) {
    width: 10%;
}

/* Link Sayısı */
.smart-table th:nth-child(6) {
    width: 12%;
}

/* Oluşturulma */
.smart-table th:nth-child(7) {
    width: 10%;
}

/* İşlemler */

.smart-table td:nth-child(1) {
    width: 10%;
}

.smart-table td:nth-child(2) {
    width: 10%;
}

.smart-table td:nth-child(3) {
    width: 12%;
}

.smart-table td:nth-child(4) {
    width: 12%;
}

.smart-table td:nth-child(5) {
    width: 10%;
}

.smart-table td:nth-child(6) {
    width: 12%;
}

.smart-table td:nth-child(7) {
    width: 10%;
}

.smart-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.smart-table th.sortable:hover {
    background: #f3f4f6;
}

.smart-table th .th-content {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.smart-table th .sort-icon {
    display: inline-flex;
    opacity: 0.3;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.smart-table th.sortable:hover .sort-icon {
    opacity: 0.6;
}

.smart-table th.sort-asc .sort-icon {
    opacity: 1;
    color: #3b82f6;
}

.smart-table th.sort-desc .sort-icon {
    opacity: 1;
    color: #3b82f6;
    transform: rotate(180deg);
}

.smart-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.smart-table tbody tr:hover {
    background: #f9fafb;
}

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

.smart-table td {
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Table Cell Styles */
.id-cell {
    font-family: 'Courier New', monospace;
    color: #3b82f6;
}

.id-cell strong {
    font-weight: 600;
}

.number-cell {
    text-align: center;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    padding: 0 10px;
    background: #f3f4f6;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-right: 20px;
}

.date-cell {
    font-size: 13px;
    color: #6b7280;
    padding: 10px 18px !important;
}

.date-wrapper,
.time-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-wrapper svg,
.time-wrapper svg {
    flex-shrink: 0;
}

.time-wrapper {
    margin-top: 4px;
}

.actions-column {
    text-align: center;
    width: 13%;
}

.actions-cell {

    overflow: visible !important;

    .btn-wrapper {
        display: flex;
        gap: 8px;
        justify-content: start;
        align-items: center;
    }
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.action-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.delete-btn-small:hover {
    border-color: #ef4444;
    background: #fef2f2;
    color: #ef4444;
}

/* Variations Cell */
.variations-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding-left: 6px;
}

.variation-tag-table {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.variation-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.no-data {
    color: #9ca3af;
    font-style: italic;
}

/* Loading & Empty States */
.loading-row,
.empty-row {
    background: #ffffff !important;
}

.loading-cell,
.empty-cell {
    padding: 60px 20px !important;
    text-align: center;
}

.empty-cell .empty-icon {
    margin: 0 auto 20px;
    color: #d1d5db;
}

.empty-cell h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.empty-cell p {
    font-size: 14px;
    color: #6b7280;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.table-info {
    font-size: 14px;
    color: #6b7280;
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {

    .smart-table th,
    .smart-table td {
        padding: 14px 12px;
        font-size: 13px;
    }

    .smart-table {
        table-layout: auto;
        min-width: 900px;
    }

    .smart-table th:nth-child(1),
    .smart-table th:nth-child(2),
    .smart-table th:nth-child(3),
    .smart-table th:nth-child(4),
    .smart-table th:nth-child(5),
    .smart-table th:nth-child(6),
    .smart-table th:nth-child(7),
    .smart-table td:nth-child(1),
    .smart-table td:nth-child(2),
    .smart-table td:nth-child(3),
    .smart-table td:nth-child(4),
    .smart-table td:nth-child(5),
    .smart-table td:nth-child(6),
    .smart-table td:nth-child(7) {
        width: auto;
    }
}

@media (max-width: 992px) {
    .smart-table-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .table-search {
        max-width: 100%;
    }

    .table-filters {
        width: 100%;
        justify-content: flex-start;
    }

    .table-filter-select {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .smart-table-container {
        overflow-x: auto;
    }

    .smart-table {
        min-width: 900px;
    }

    .table-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .table-pagination {
        justify-content: center;
        flex-wrap: wrap;
    }

    .table-info {
        text-align: center;
    }
}

/* Hide old reports grid */
.reports-grid {
    display: none !important;
}

/* Pagination adjustments for table */
.pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-number {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

.page-number.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.page-dots {
    padding: 0 8px;
    color: #9ca3af;
    font-size: 14px;
}

/* ============================================
   MODERN ANALYSIS STATUS MODALS
   ============================================ */

.analysis-status-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.analysis-status-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay-custom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content-custom {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    animation: modalSlideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    overflow: hidden;
}

@keyframes modalSlideUp {
    to {
        transform: scale(1) translateY(0);
    }
}

.modal-content-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #3b82f6 100%);
    background-size: 200% 100%;
}

.modal-success::before {
    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #059669 100%);
    animation: shimmer 2s linear infinite;
}

.modal-error::before {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
    animation: shimmer 2s linear infinite;
}

.modal-icon-wrapper {
    margin-bottom: 24px;
}

.modal-icon-circle {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: iconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s backwards;
}

@keyframes iconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-circle {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.3),
        inset 0 -4px 12px rgba(5, 150, 105, 0.2);
}

.success-circle svg {
    animation: checkmarkDraw 0.6s ease 0.4s backwards;
}

@keyframes checkmarkDraw {
    0% {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }

    100% {
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
    }
}

.error-circle {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3),
        inset 0 -4px 12px rgba(220, 38, 38, 0.2);
}

.error-circle svg {
    animation: errorShake 0.5s ease 0.4s backwards;
}

@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.5s ease 0.3s backwards;
}

.modal-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 32px 0;
    animation: fadeInUp 0.5s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    animation: fadeInUp 0.5s ease 0.5s backwards;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-btn:hover::before {
    width: 300px;
    height: 300px;
}

.modal-btn svg {
    position: relative;
    z-index: 1;
}

.modal-btn span,
.modal-btn:not(:has(svg)) {
    position: relative;
    z-index: 1;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.modal-btn-primary:active {
    transform: translateY(0);
}

.modal-success .modal-btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
}

.modal-success .modal-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.5);
}

.modal-error .modal-btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

.modal-error .modal-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
}

/* Warning Modal Styles */
.modal-warning::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    animation: shimmer 2s linear infinite;
}

.modal-warning .modal-btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.modal-warning .modal-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}

/* Info Modal Styles (Blue Theme) */
.modal-info::before {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
    animation: shimmer 2s linear infinite;
}

.modal-info .modal-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.modal-info .modal-btn-primary:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.info-circle {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3),
        inset 0 -4px 12px rgba(37, 99, 235, 0.2);
}

.info-circle svg {
    animation: infoPulse 2s ease-in-out infinite;
}

@keyframes infoPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.warning-circle {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.3),
        inset 0 -4px 12px rgba(217, 119, 6, 0.2);
}

.warning-circle svg {
    animation: warningPulse 1.5s ease-in-out infinite;
}

@keyframes warningPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.modal-warning-list {
    text-align: left;
    margin: 24px 0;
    padding: 20px;
    background: #fef3c7;
    border-radius: 12px;
    border: 1px solid #fde68a;
}

.warning-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #92400e;
    font-size: 14px;
}

.warning-item:last-child {
    margin-bottom: 0;
}

.warning-item svg {
    flex-shrink: 0;
    color: #d97706;
}

.modal-warning-note {
    font-size: 14px;
    font-weight: 600;
    color: #d97706;
    background: #fffbeb;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #fde68a;
    margin: 16px 0 24px 0;
}

/* Field Highlight Box for Validation Modal */
.modal-field-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fde68a;
    border-radius: 12px;
    margin: 24px 0;
    animation: fadeInUp 0.5s ease 0.5s backwards;
}

.modal-field-highlight svg {
    flex-shrink: 0;
    color: #d97706;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.modal-field-highlight span {
    font-size: 15px;
    color: #92400e;
    line-height: 1.5;
}

.modal-field-highlight strong {
    color: #d97706;
    font-weight: 700;
}

/* Missing Fields List */
.missing-fields-list {
    text-align: left;
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-radius: 12px;
    animation: fadeInUp 0.5s ease 0.5s backwards;
}

.missing-field-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #1e40af;
    font-size: 15px;
    font-weight: 500;
}

.missing-field-item:not(:last-child) {
    border-bottom: 1px solid #bfdbfe;
}

.missing-field-item svg {
    flex-shrink: 0;
    color: #2563eb;
}

.missing-field-item span {
    flex: 1;
}

.modal-btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

.modal-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
}

.modal-btn-danger:active {
    transform: translateY(0);
}

.modal-btn-secondary {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modal-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-btn-secondary:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .modal-content-custom {
        padding: 36px 24px;
        max-width: 90%;
    }

    .modal-icon-circle {
        width: 80px;
        height: 80px;
    }

    .modal-icon-circle svg {
        width: 40px;
        height: 40px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-description {
        font-size: 15px;
    }

    .modal-actions {
        flex-direction: column;
        width: 100%;
    }

    .modal-btn {
        width: 100%;
        justify-content: center;
    }
}