body {
    font-size: 1rem;
}

.badge {
    font-size: 70%;
}

.lh-0 {
    line-height: 0;
}

.clickable-endpoint {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}

.clickable-endpoint:hover {
    color: #0056b3;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-top: 20px;
}

/* Full Page Loading */
.full-page-loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.full-page-loading.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(85, 110, 230, 0.2);
    border-top: 3px solid #556ee6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* Dark theme support */
[data-bs-theme="dark"][data-sidebar="dark"] .full-page-loading {
    background: rgba(33, 37, 41, 0.3);
}

[data-bs-theme="dark"][data-sidebar="dark"] .loading-spinner {
    border-color: rgba(85, 110, 230, 0.2);
    border-top-color: #556ee6;
}

body.is-page-loading .full-page-loading {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Round Slider */

.rs-control .rs-range-color {
    background-color: #1f58c7 !important;
}

.rs-control .rs-path-color {
    background-color: #ffffff;
}

.rs-control .rs-handle {
    background-color: #1f58c7 !important;
}

.rs-control .rs-bg-color {
    background-color: #f8f9fa !important;
}

.rs-control .rs-border {
    border-color: #1f58c7 !important;
}

.rs-tooltip-text {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    white-space: pre-line;
    line-height: 1.2;
}

[data-bs-theme="dark"] .rs-control .rs-range-color {
    background-color: #1f58c7 !important;
}

[data-bs-theme="dark"] .rs-control .rs-path-color {
    background-color: #ffffff !important;
}

[data-bs-theme="dark"] .rs-control .rs-handle {
    background-color: #1f58c7 !important;
}

[data-bs-theme="dark"] .rs-control .rs-bg-color {
    background-color: #282c2f !important;
}

[data-bs-theme="dark"] .rs-control .rs-border {
    border-color: #1f58c7 !important;
}

[data-bs-theme="dark"] .rs-tooltip-text {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    white-space: pre-line;
    color: #ffffff !important;
    line-height: 1.2;
}

#rs-card {
    background-color: #f8f9fa !important;
    position: relative;
    overflow: visible;
}

[data-bs-theme="dark"] #rs-card {
    background-color: #282c2f !important;
}

.table-offline {
    background-image: repeating-linear-gradient(45deg,
            rgba(220, 53, 69, 0.1),
            rgba(220, 53, 69, 0.1) 10px,
            rgba(220, 53, 69, 0.2) 10px,
            rgba(220, 53, 69, 0.2) 20px) !important;
    border-left: 4px solid #dc3545 !important;
}

.table-offline td {
    position: relative;
}

.table-offline td::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(-45deg,
            transparent,
            transparent 5px,
            rgba(220, 53, 69, 0.1) 5px,
            rgba(220, 53, 69, 0.1) 10px);
    pointer-events: none;
}

/* Light Mode Start */
[data-bs-theme="light"][data-sidebar="light"] {
    --bs-box-shadow: 0px 1px 2px 0px #00000014;
    --bs-border-color: #d9d9d9;
    --bs-success-bg-subtle: #237804;
    --bs-secondary-color: #909296;
    --icon-color: #36415a;
}

[data-bs-theme="light"][data-sidebar="light"] .modal-pills-menu {
    background: #eff0f2;
    border-radius: 12px;
}

[data-bs-theme="light"][data-sidebar="light"] .btn-secondary {
    background-color: #d9d9d9;
}

/* Light Mode End */

/* Dark Mode Start */
[data-bs-theme="dark"][data-sidebar="dark"] {
    --bs-box-shadow: 0px 1px 2px 0px #404448;
    --bs-nav-pills-link-active-bg: #282c2f !important;
    --bs-border-color: #4e5155;
    --bs-success-bg-subtle: #237804;
    --icon-color: #eeeff1;
}

[data-bs-theme="dark"][data-sidebar="dark"] .modal-pills-menu {
    background: #3d434b;
}

[data-bs-theme="dark"][data-sidebar="dark"] .rs-slider-wrapper .rs-control .rs-handle,
[data-bs-theme="dark"][data-sidebar="dark"] .rs-slider-wrapper .rs-control .rs-range-color {
    background-color: #1677ff !important;
}

[data-bs-theme="dark"][data-sidebar="dark"] .rs-control .rs-border,
.rs-slider-wrapper .rs-control .rs-border {
    border-color: #1677ff !important;
}

[data-bs-theme="dark"][data-sidebar="dark"] input[switch]:checked+label:before {
    color: #3d434b;
}

[data-bs-theme="dark"][data-sidebar="dark"] input[switch]:checked+label:after {
    background-color: #3d434b;
}

/* Dark Mode End */

button {
    font-weight: 500;
}

.shadow {
    box-shadow: var(--bs-box-shadow) !important;
}

.thermo-info h5 {
    font-size: 14px !important;
}

.thermo-info p {
    font-size: 13px !important;
}

.modal-menu {
    border-right: 2px dotted #dee2e6;
}

.card-radio-label {
    margin-bottom: 0;
}

.gr-48 {
    flex: 0 0 48px;
}

.br-dotted-2 {
    border-right: 2px dotted #dee2e6;
}

.bg-success-subtle {
    color: #fff !important;
}

.btn-secondary {
    color: #000;
    background-color: #efefef;
    border-color: transparent;
    font-weight: 500;
}

.rs-slider-wrapper .rs-control .rs-handle,
.rs-slider-wrapper .rs-control .rs-range-color {
    background-color: #1677ff !important;
}

.form-check-input:checked {
    background-color: #1677ff;
    border-color: #1677ff;
}

.form-check-input:focus {
    border-color: #1677ff;
}

.form-check-input {
    border-color: #1677ff;
}

#theme-switch+label {
    height: 28px;
    min-width: 65px;
    background: #e2e5e8;
}

#theme-switch+label:after {
    left: 5px;
    top: 4px;
}

#theme-switch+label:before {
    right: 4px;
    top: 0;
}

input[switch]:checked+label:after {
    left: 40px !important;
    background-color: #f5f6f8;
}

input[switch]:checked+label:before {
    left: -20px !important;
}

.btn-success {
    background-color: #237804;
}

.btn-primary {
    background-color: #1677ff;
}

.btn-danger {
    background-color: #df1c27;
}

.btn-warning {
    background-color: #f8da5b;
}

.text-success {
    color: #237804;
}

.card-header h6 i {
    font-size: 17px;
}

.btn-outline-info {
    --bs-btn-color: #1677ff;
    --bs-btn-border-color: #1677ff;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1677ff;
    --bs-btn-hover-border-color: #1677ff;
    --bs-btn-focus-shadow-rgb: 82, 198, 234;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1677ff;
    --bs-btn-active-border-color: #1677ff;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #1677ff;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #1677ff;
    --bs-gradient: none;
}

/* Responsive */

.modal-pills-menu {
    border-radius: 12px;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    color: var(--bs-nav-pills-link-active-color);
    background-color: #2c3032;
}

.card-avatar-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.card-avatar-icon i {
    font-size: 22px;
    line-height: 1;
}

.card-avatar-icon-title {
    flex: 1 1 auto;
    min-width: 0;
}

.card-avatar-icon-title h5 {
    margin: 0;
    font-size: 16px;
}

.card-avatar-icon-title a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#rs-wrap {
    --rs-radius: min(100px, 25vw);
    position: relative;
    margin: 0 auto;
}

#roundSlider {
    max-width: 340px;
    height: auto !important;
    aspect-ratio: 2 / 1;
    margin: 0 auto;
    position: relative !important;
    z-index: 1;
}

.rs-container.rs-half.rs-top {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 1;
}

/* Responsive kodlar başlangıç*/

@media (max-width: 1200px) {
    .modal-xl {
        --bs-modal-width: 95%;
        /* veya sabit px: 900px */
    }
}

@media (max-width: 576px) {
    #roundSlider {
        max-width: 280px;
    }

    span.rs-tooltip.rs-tooltip-text {
        line-height: 1;
    }

    span.rs-tooltip.rs-tooltip-text span {
        font-size: 14px !important;
    }

    #rs-inc,
    #rs-desc {
        bottom: -6px !important;
        width: 30px !important;
        height: 30px !important;
    }
}

@media (max-width: 400px) {
    #roundSlider {
        max-width: 240px;
    }
}

@media (min-width: 768px) {
    #roundSlider {
        max-width: 360px;
    }

    .modal-pills-menu {
        background: transparent !important;
    }
}

@media (min-width: 1200px) {
    #roundSlider {
        max-width: 340px;
    }
}

/* cihan yeni */

.modal-pills-menu .nav-link {
    font-size: 14px;
}

.modal-pills-menu .nav-link {
    font-size: 14px;
    padding-left: 10px;
    padding-right: 10px;
}

.back-to-report {
    position: absolute;
    left: 25px;
    z-index: 99;
    top: 15px;
    border: 1px solid #4f5155;
    border-radius: 8px;
}

.back-to-report i {
    color: var(--icon-color);
}

.solid-div-off .solid-off-div {
    width: 100%;
    height: 2px;
    background: var(--icon-color);
    position: absolute;
    left: 0;
    transform: rotate(45deg);
}

.dot-badge {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    border-radius: 99px;
}

.grid-search {
    max-width: 300px;
    margin-left: auto;
}

.grid-card-col {
    transition: none;
}

.search-result-alert {
    border-radius: 8px;
    border-left: 4px solid;
    animation: slideDown 0.3s ease-out;
}

.alert-info {
    border-left-color: #0dcaf0;
}

.alert-warning {
    border-left-color: #ffc107;
}

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

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

.grid-counter {
    font-size: 0.875rem;
    text-align: right;
    margin-top: 8px;
}

.grid-search .input-group {
    flex-wrap: nowrap;
}

.grid-search .btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
    transition: all 0.2s ease;
}

.grid-search .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
    transform: scale(1.05);
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.profile-page .nav-link {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.profile-page .nav-link:hover,
.nav-link.active {
    background-color: #2c3032;
    color: #fff;
}

.profile-page .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.profile-page .profile-header {
    display: flex;
    align-items: center;
}

.profile-page .profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    margin-right: 20px;
}

.profile-page .profile-info {
    margin-bottom: 0;
}

.profile-page .profile-info p {
    color: #6c757d;
    margin-bottom: 0;
}

.profile-page .info-item {
    margin-bottom: 15px;
}

.profile-page .sidebar {
    padding: 15px;
}

.profile-page .tab-content-profile {
    display: none;
}

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

.toggle-password {
    position: absolute;
    right: 12px;
    top: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #6c757d;
}

.was-validated .form-control:invalid,
.form-control.is-invalid,
.was-validated .form-control:valid,
.form-control.is-valid {
    background-image: none;
}

.form-label {
    font-size: 14px;
}

@media (max-width: 768px) {
    .gridjs-search input {
        width: 100% !important;
    }
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
}

/* eser table css */

:root {
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --border-row: #d1d5db;
    --header-bg: #f5f5f5;
    --header-text: #4b5563;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --gray: #6b7280;
    --select-col-width: 32px;
    --actions-col-width: 28px;
    --pagination-bg: #f9fafb;
    --pagination-text: #111827;
    --pagination-text-active: #fff;
    --pagination-border: #d1d5db;
    --pagination-border-active: #d1d5db;
    --pagination-hover: #f3f4f6;
    --pagination-active: #111827;
    --pagination-disabled: #6b7280;
}

.uzman-table-results .table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    border-radius: 5px;
    font-size: .925rem;
    font-weight: normal;
}

.uzman-table-results table {
    border-collapse: collapse;
    border-spacing: 0;
    min-width: 900px;
    width: 100%;
    table-layout: auto;
}

.uzman-table-results thead {
    background: var(--header-bg);
}

.uzman-table-results th,
.uzman-table-results td {
    padding: 0 12px;
    height: 44px;
    white-space: nowrap;
    text-align: left;
    vertical-align: middle;
    border: 1px solid var(--border-row);
    position: relative;
    /* pseudo-çizgiler için gerekli */
}

.uzman-table-results th {
    font-size: .820rem;
    color: var(--header-text);
    letter-spacing: 0.5px;
}

.uzman-table-results tbody tr {
    background: #ffffff;
    transition: background 0.15s;
}

.uzman-table-results tbody tr:nth-child(even) {
    background: var(--header-bg);
}

.uzman-table-results tbody tr:hover {
    background: var(--header-bg);
}

/* Sticky kolonlar - ortak ayarlar */
.uzman-table-results .col-select,
.uzman-table-results .col-actions {
    position: sticky;
    z-index: 2;
    background: inherit;
}

/* Seçim kolonu */
.uzman-table-results th.col-select,
.uzman-table-results td.col-select {
    left: 0;
    width: var(--select-col-width);
    min-width: var(--select-col-width);
    border-left: 0;
    border-right: 0;
    z-index: 3;
}

/* Aksiyon kolonu */
.uzman-table-results th.col-actions,
.uzman-table-results td.col-actions {
    left: var(--select-col-width);
    width: var(--actions-col-width);
    min-width: var(--actions-col-width);
    border-left: 0;
    border-right: 0;
    z-index: 3;
}

/* Kaydırma sırasında shadow göster */
.uzman-table-results .table-wrapper.scrolled .col-select,
.uzman-table-results .table-wrapper.scrolled .col-actions {
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

/* Header sticky kolonları */
.uzman-table-results thead .col-select {
    background: var(--header-bg);
    z-index: 4;
}

.uzman-table-results thead .col-actions {
    background: var(--header-bg);
    z-index: 4;
}

/* Body sticky kolonları - zebra pattern ile uyumlu */
.uzman-table-results tbody tr:nth-child(odd) .col-select,
.uzman-table-results tbody tr:nth-child(odd) .col-actions {
    background: #ffffff;
}

.uzman-table-results tbody tr:nth-child(even) .col-select,
.uzman-table-results tbody tr:nth-child(even) .col-actions {
    background: var(--header-bg);
}

.uzman-table-results tbody tr:hover .col-select,
.uzman-table-results tbody tr:hover .col-actions {
    background: var(--header-bg);
}

/* SABİT DİKEY ÇİZGİLER */
/* 1. kolonun (select) sağ çizgisi */
.uzman-table-results th.col-select::after,
.uzman-table-results td.col-select::after {
    content: "";
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;
    width: 2px;
    background: var(--border-row);
    z-index: 5;
}

/* 2. kolonun (actions) sol çizgisi */
.uzman-table-results th.col-actions::before,
.uzman-table-results td.col-actions::before {
    content: "";
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;
    width: 1px;
    background: var(--border-row);
    z-index: 5;
}

.uzman-table-results th.col-actions::after,
.uzman-table-results td.col-actions::after {
    content: "";
    position: absolute;
    top: -1px;
    bottom: -1px;
    right: -1px;
    width: 1px;
    background: var(--border-row);
    z-index: 5;
}

.uzman-table-results .col-select input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Tag pill */
.uzman-table-results .tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
}

.uzman-table-results .tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.uzman-table-results .tag-done {
    color: #16a34a;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.uzman-table-results .tag-done .tag-dot {
    background: #16a34a;
}

.uzman-table-results .tag-error {
    color: var(--danger);
    border-color: #fecaca;
    background: #fef2f2;
}

.uzman-table-results .tag-error .tag-dot {
    background: var(--danger);
}

.uzman-table-results .tag-warning {
    color: var(--warning);
    border-color: #fed7aa;
    background: #fffbeb;
}

.uzman-table-results .tag-warning .tag-dot {
    background: var(--warning);
}

.uzman-table-results .actions-btn {
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.uzman-table-results .actions-btn-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.uzman-table-results .actions-btn-dots span {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #6b7280;
    /* gri */
    transition: background 0.2s;
}

/* Global dropdown menu */
.uzman-table-results .row-actions-menu {
    position: absolute;
    min-width: 150px;
    background: var(--bg-card);
    border-radius: 5px;
    box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.2);
    padding: 4px 0;
    z-index: 9999;
    display: none;
}

.uzman-table-results .row-actions-menu.open {
    display: block;
}

.uzman-table-results .row-actions-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uzman-table-results .row-actions-menu-icon {
    width: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    flex-shrink: 0;
}

.uzman-table-results .row-actions-menu-label {
    flex: 1;
}

.uzman-table-results .row-actions-menu-item:hover {
    padding: 8px 12px;
    background: var(--header-bg);
}

.uzman-table-results .table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    gap: 12px;
}

.uzman-table-results .pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.uzman-table-results .pagination a {
    min-width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--pagination-border);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    background: var(--pagination-bg);
    color: var(--pagination-text);
}

.uzman-table-results .pagination a:hover:not(.active) {
    background: var(--pagination-hover);
    border-color: var(--pagination-border);
}

.uzman-table-results .pagination a.active {
    background: var(--pagination-active);
    color: var(--pagination-text-active);
    border-color: var(--pagination-border-active);
}

.uzman-table-results .pagination a:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.uzman-table-results .page-size {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 8px;
}

/* Checkbox kolonunu kaldırdığımız mod */
.uzman-table-results table.no-select-col th.col-select,
.uzman-table-results table.no-select-col td.col-select {
    display: none;
    /* kolon tamamen yok */
}

/* Actions kolonu sola yapışsın */
.uzman-table-results table.no-select-col th.col-actions,
.uzman-table-results table.no-select-col td.col-actions {
    left: 0;
    /* select olmadığı için 0’dan başla */
}

/* Sol dikey çizgi artık actions kolonuna ait olacak */
.uzman-table-results table.no-select-col th.col-actions::before,
.uzman-table-results table.no-select-col td.col-actions::before {
    left: 0;
    /* sol kenara tam otur */
}

/* Checkbox kolonunu kaldırdığımız mod */
.uzman-table-results table.no-select-col th.col-select,
.uzman-table-results table.no-select-col td.col-select {
    display: none;
}

/* Select yoksa actions sola yapışsın */
.uzman-table-results table.no-select-col th.col-actions,
.uzman-table-results table.no-select-col td.col-actions {
    left: 0;
}

/* Select yoksa actions'ın sol çizgisi sol kenara gelsin */
.uzman-table-results table.no-select-col th.col-actions::before,
.uzman-table-results table.no-select-col td.col-actions::before {
    left: 0;
}

/* Actions kolonunu kaldırdığımız mod */
.uzman-table-results table.no-actions-col th.col-actions,
.uzman-table-results table.no-actions-col td.col-actions {
    display: none;
}

/* Actions yoksa ve select varsa: select yine 0’da kalır (zaten öyle) */
.uzman-table-results table.no-actions-col th.col-select,
.uzman-table-results table.no-actions-col td.col-select {
    left: 0;
}

/* İkisi de yoksa sticky davranış fiilen devre dışı kalır ama HTML aynı kalır */
.uzman-table-results table.no-select-col.no-actions-col .col-select,
.uzman-table-results table.no-select-col.no-actions-col .col-actions {
    position: static;
    box-shadow: none;
}


/* İstersen gölge de sadece actions’a uygulansın */
.uzman-table-results .table-wrapper.scrolled table.no-select-col .col-actions {
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.uzman-table-results .text-muted {
    color: var(--text-muted);
    font-size: 14px;
}

/* Dark mode */

/*****************************************************
  DARK MODE for UBIT TABLE RESULTS
  Aktif olma koşulu:
  [data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results
*****************************************************/

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results {

    /* Light'taki variable karşılıklarının DARK eşleri */
    --bg-body: #1a1c1e;
    --bg-card: #1f2327;
    --border-row: #2d3238;
    --header-bg: #2a2e34;
    --header-text: #cfd3da;
    --text-main: #b0b6bc;
    --text-muted: #9ca3af;

    --accent: #22c55e;
    /* aynı yeşilin dark'ta daha canlı tonu */
    --danger: #ef4444;
    --warning: #fbbf24;
    --info: #38bdf8;
    --gray: #9ca3af;
    --pagination-bg: #2a2e34;
    --pagination-text: #cfd3da;
    --pagination-text-active: #fff;
    --pagination-border: #2d3238;
    --pagination-border-active: #fff;
    --pagination-hover: #2e3237;
    --pagination-active: #2d3238;
    --pagination-disabled: #6b7280;
}

/* ----------------------------------------------------
   TABLE WRAPPER
---------------------------------------------------- */
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .table-wrapper {
    background: var(--bg-card);
    border-color: var(--border-row);
}

/* ----------------------------------------------------
   TABLE
---------------------------------------------------- */
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results table {
    color: var(--text-main);
    background: var(--bg-card);
    border-color: var(--border-row);
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results thead {
    background: var(--header-bg);
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results th {
    color: var(--header-main);
    border-color: var(--border-row);
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results td {
    color: var(--text-main);
    border-color: var(--border-row);
}

/* ----------------------------------------------------
   ROW BACKGROUNDS (zebra)
---------------------------------------------------- */
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results tbody tr {
    background: var(--bg-card);
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results tbody tr:nth-child(even) {
    background: #24282c;
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results tbody tr:hover {
    background: #30363d;
}

/* ----------------------------------------------------
   STICKY COLUMNS
---------------------------------------------------- */
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results tbody tr:nth-child(odd) .col-select,
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results tbody tr:nth-child(odd) .col-actions {
    background: var(--bg-card);
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results tbody tr:nth-child(even) .col-select,
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results tbody tr:nth-child(even) .col-actions {
    background: #24282c;
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results tbody tr:hover .col-select,
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results tbody tr:hover .col-actions {
    background: #30363d;
}

/* çizgiler */
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .col-select::after,
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .col-actions::before,
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .col-actions::after {
    background: var(--border-row);
}

/* ----------------------------------------------------
   CHECKBOX
---------------------------------------------------- */
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .col-select input[type="checkbox"] {
    accent-color: var(--accent);
}

/* ----------------------------------------------------
   ACTION BUTTON
---------------------------------------------------- */
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .actions-btn {
    background: transparent;
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .actions-btn-dots span {
    background: var(--gray);
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .actions-btn:hover .actions-btn-dots span {
    background: var(--text-main);
}

/* ----------------------------------------------------
   DROPDOWN MENU
---------------------------------------------------- */
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .row-actions-menu {
    background: #2b3036 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .row-actions-menu-item {
    clear: both;
    color: #cfd3da;
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .row-actions-menu-item:hover {
    background: #3b4148;
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .row-actions-menu-icon i {
    color: #cfd3da;
}

/* ----------------------------------------------------
   TAG PILL COLORS
---------------------------------------------------- */
[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .tag-done {
    color: var(--accent);
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .tag-done .tag-dot {
    background: var(--accent);
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .tag-error {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .tag-error .tag-dot {
    background: var(--danger);
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .tag-warning {
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
}

[data-bs-theme="dark"][data-sidebar="dark"] .uzman-table-results .tag-warning .tag-dot {
    background: var(--warning);
}

/* =========================================================
   SORTABLE TH – INLINE ICONS
========================================================= */
.uzman-table-results th.tbl-sortable {
    cursor: pointer;
    user-select: none;
}

.uzman-table-results th .th-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 0;
    /* metin – ikon arası */
}

/* ikon grubu */
.uzman-table-results .tbl-sort-icons {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    line-height: 0;
    gap: 3px;
    transform: translateY(-1px);
}

/* oklar */
.uzman-table-results .tbl-sort-icons i {
    width: 0;
    height: 0;
    opacity: .35;
    color: var(--text-main);
    display: block;
}

/* yukarı */
.uzman-table-results .tbl-sort-icons .sort-up {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid var(--text-main);
}

/* aşağı */
.uzman-table-results .tbl-sort-icons .sort-down {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid var(--text-main);
}

/* aktif */
.uzman-table-results th.sort-asc .sort-up {
    opacity: 1;
    border-bottom-color: var(--text-main);
}

.uzman-table-results th.sort-desc .sort-down {
    opacity: 1;
    border-top-color: var(--text-main);
}

/* =========================================================
   MOBILE – daha kompakt
========================================================= */
@media (max-width: 768px) {
    .uzman-table-results .tbl-sort-icons {
        gap: 1px;
    }

    .uzman-table-results .tbl-sort-icons .sort-up {
        border-left-width: 3px;
        border-right-width: 3px;
        border-bottom-width: 5px;
    }

    .uzman-table-results .tbl-sort-icons .sort-down {
        border-left-width: 3px;
        border-right-width: 3px;
        border-top-width: 5px;
    }
}

/* eser table sonu */

/* map css */
#turkey-map {
    width: 100%;
    height: 600px;
}

.nav-tabs-custom .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .nav-tabs-custom .nav-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }

    .nav-tabs-custom .nav-link i {
        font-size: 1rem;
    }
}

.nav-tabs-custom .nav-link.active {
    font-weight: 600;
}

/* Modern Toggle Switch */
.form-switch-lg .form-check-input {
    background-color: #6c757d;
    border: 2px solid #495057;
    transition: all 0.3s ease;
}

.form-switch-lg .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch-lg .form-check-input:focus {
    border-color: #198754;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.form-switch-lg .form-check-input:not(:checked):focus {
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}

.form-switch-lg .form-check-input:hover {
    transform: scale(1.05);
}

.form-switch-lg .form-check-input:not(:checked):hover {
    background-color: #5a6268;
    border-color: #495057;
}

/* Dark Mode Support */
[data-bs-theme="dark"] .form-switch-lg .form-check-input:not(:checked) {
    background-color: #495057;
    border-color: #6c757d;
}

[data-bs-theme="dark"] .form-switch-lg .form-check-input:not(:checked):hover {
    background-color: #5a6268;
    border-color: #6c757d;
}

[data-bs-theme="dark"] .anomaly-toggle-container {
    background-color: #212529 !important;
    border-color: #495057 !important;
}

[data-bs-theme="dark"] .anomaly-toggle-container:hover {
    background-color: #2c3034 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Anomaly Detection Container */
.anomaly-toggle-container {
    transition: all 0.3s ease;
}

.anomaly-toggle-container:hover {
    background-color: #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-preview {
    min-width: 200px;
    max-width: 250px;
}

.config-preview .card {
    transition: all 0.2s ease;
    border-radius: 6px;
    font-size: 0.8rem;
    overflow: hidden;
}

.config-preview .card:hover {
    transform: translateY(-1px);
}

.config-preview .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.config-preview i {
    font-size: 0.75rem;
}

.config-preview small {
    font-size: 0.75rem;
}

.config-preview .border-3 {
    border-width: 3px !important;
}

.config-preview .shadow-lg {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
