﻿:root {
            --bs-primary: #3E97FF;
            --bs-primary-rgb: 62,151,255;
            --bg-body: #F5F8FA;
            --card-radius: 0.75rem;
        }

        body {
            background-color: var(--bg-body);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            color: #181C32;
        }

        /* === NAVBAR (Metronic style) === */
        .navbar-metronic {
            background: #ffffff;
            border-bottom: 1px solid #E4E6EF;
            padding: 0.75rem 0;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        }
        .navbar-metronic .navbar-brand {
            font-weight: 700;
            font-size: 1.1rem;
            color: #181C32;
            letter-spacing: -0.3px;
        }
        .navbar-metronic .navbar-brand i {
            color: var(--bs-primary);
            font-size: 1.35rem;
        }

        /* === PAGE HEADER === */
        .page-header {
            padding: 2rem 0 1.5rem;
        }
        .page-header h1 {
            font-weight: 700;
            font-size: 1.55rem;
            color: #181C32;
            margin-bottom: 0.3rem;
            letter-spacing: -0.3px;
        }
        .page-header .breadcrumb {
            margin: 0;
            padding: 0;
            font-size: 0.85rem;
        }
        .page-header .breadcrumb .breadcrumb-item a {
            color: var(--bs-primary);
            text-decoration: none;
        }

        /* === METRONIC CARD === */
        .card-metronic {
            border: 1px solid #E4E6EF;
            border-radius: var(--card-radius);
            box-shadow: 0 2px 6px rgba(0,0,0,0.04);
            background: #ffffff;
            margin-bottom: 1.5rem;
        }
        .card-metronic .card-header {
            background: #ffffff;
            border-bottom: 1px solid #E4E6EF;
            padding: 1rem 1.5rem;
            border-radius: var(--card-radius) var(--card-radius) 0 0;
            display: flex;
            align-items: center;
            gap: 0.65rem;
        }
        .card-metronic .card-header .category-badge {
            background: var(--bs-primary);
            color: #fff;
            font-weight: 700;
            font-size: 0.8rem;
            padding: 0.25rem 0.6rem;
            border-radius: 0.375rem;
            flex-shrink: 0;
        }
        .card-metronic .card-header .card-title {
            font-weight: 700;
            font-size: 0.95rem;
            color: #181C32;
            margin: 0;
            letter-spacing: -0.2px;
            line-height: 1.3;
        }
        .card-metronic .card-body {
            padding: 0;
        }

        /* === SORU TABLOSU === */
        .anket-table {
            width: 100%;
            margin: 0;
        }
        .anket-table thead th {
            background: #F9FAFB;
            font-weight: 600;
            font-size: 0.78rem;
            color: #5E6278;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #E4E6EF;
        }
        .anket-table thead th.kodu-col {
            width: 8%;
            text-align: center;
        }
        .anket-table thead th.metni-col {
            width: 40%;
            text-align: left;
        }
        .anket-table thead th.yonerge-col {
            width: 27%;
            text-align: left;
        }
        .anket-table thead th.radio-col {
            width: 25%;
            text-align: center;
        }
        .anket-table tbody td {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #F1F3F7;
            vertical-align: middle;
        }
        .anket-table tbody td.kodu-col {
            text-align: center;
        }
        .anket-table tbody tr:last-child td {
            border-bottom: none;
        }
        .anket-table tbody tr {
            transition: background-color 0.25s ease;
        }
        .anket-table tbody tr.row-selected {
            background-color: #EEF6FF;
        }
        .anket-table tbody tr.row-highlight {
            background-color: #FFF8E1;
        }
        .anket-table .soru-kodu {
            font-weight: 700;
            font-size: 0.8rem;
            color: var(--bs-primary);
        }
        .anket-table .soru-metni {
            font-weight: 600;
            font-size: 0.89rem;
            color: #181C32;
            line-height: 1.4;
        }
        .anket-table .soru-yonerge {
            font-size: 0.78rem;
            color: #181C32;
            font-style: italic;
            line-height: 1.35;
        }

        /* === RADIO ROW (3 radios in one cell) === */
        .radio-row {
            display: flex;
            gap: 0.5rem;
            justify-content: center;
            flex-wrap: nowrap;
        }
        .radio-label-wrap {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            cursor: pointer;
            padding: 0.45rem 0.7rem;
            border-radius: 0.375rem;
            border: 1px solid transparent;
            transition: background-color 0.15s ease;
            font-size: 0.82rem;
            font-weight: 500;
            color: #5E6278;
            white-space: nowrap;
            user-select: none;
        }
        .radio-label-wrap:hover {
            background-color: #F5F8FA;
            border-color: #E4E6EF;
        }
        .radio-label-wrap:has(input:checked) {
            font-weight: 600;
        }
        /* Evet seçili */
        .radio-label-wrap:has(input[value="Evet"]:checked) {
            color: #15703C;
        }
        /* Kısmen seçili */
        .radio-label-wrap:has(input[value="Kısmen"]:checked) {
            color: #946E00;
        }
        /* Hayır seçili */
        .radio-label-wrap:has(input[value="Hayır"]:checked) {
            color: #981B31;
        }

        /* === NATIVE RADIO BUTTON === */
        .form-radio {
            width: 1.15rem;
            height: 1.15rem;
            cursor: pointer;
            accent-color: var(--bs-primary);
            flex-shrink: 0;
        }

        /* === FORM CONTROLS (Metronic style) === */
        .form-control-metronic {
            border: 1px solid #E4E6EF;
            border-radius: 0.475rem;
            padding: 0.6rem 0.9rem;
            font-size: 0.9rem;
            color: #181C32;
            background: #ffffff;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .form-control-metronic:focus {
            border-color: var(--bs-primary);
            box-shadow: 0 0 0 3px rgba(62,151,255,0.15);
            outline: none;
        }
        .form-control-metronic.is-invalid {
            border-color: #F1416C;
            box-shadow: 0 0 0 3px rgba(241,65,108,0.12);
        }
        .form-select-metronic {
            border: 1px solid #E4E6EF;
            border-radius: 0.475rem;
            padding: 0.6rem 2.5rem 0.6rem 0.9rem;
            font-size: 0.9rem;
            color: #181C32;
            background: #ffffff;
            transition: border-color 0.2s, box-shadow 0.2s;
            cursor: pointer;
        }
        .form-select-metronic:focus {
            border-color: var(--bs-primary);
            box-shadow: 0 0 0 3px rgba(62,151,255,0.15);
            outline: none;
        }
        .form-label-metronic {
            font-weight: 600;
            font-size: 0.85rem;
            color: #5E6278;
            margin-bottom: 0.4rem;
        }
        .required-star {
            color: #F1416C;
        }

        /* === BUTTON === */
        .btn-metronic-primary {
            background: var(--bs-primary);
            border: none;
            border-radius: 0.475rem;
            padding: 0.7rem 2rem;
            font-weight: 600;
            font-size: 0.9rem;
            color: #ffffff;
            transition: all 0.2s ease;
            letter-spacing: -0.2px;
        }
        .btn-metronic-primary:hover {
            background: #2E86F0;
            box-shadow: 0 4px 12px rgba(62,151,255,0.35);
        }
        .btn-metronic-primary:disabled {
            background: #B3D4FF;
            cursor: not-allowed;
            box-shadow: none;
        }
        .btn-metronic-primary .spinner-border {
            width: 1.1rem;
            height: 1.1rem;
            margin-right: 0.4rem;
        }

        /* === FOOTER === */
        .anket-footer {
            background: #ffffff;
            border-top: 1px solid #E4E6EF;
            padding: 1.25rem 1.5rem;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
            border-radius: 0 0 var(--card-radius) var(--card-radius);
        }
        .anket-footer .progress {
            flex-shrink: 0;
        }

        /* === ALERT (Metronic style) === */
        .alert-metronic {
            border-radius: 0.475rem;
            border: none;
            font-weight: 500;
            font-size: 0.85rem;
        }

        /* === RESPONSIVE === */
        @media (max-width: 768px) {
            .anket-table thead th {
                font-size: 0.68rem;
                padding: 0.5rem 0.4rem;
            }
            .anket-table tbody td {
                padding: 0.65rem 0.4rem;
            }
            .anket-table .soru-kodu {
                font-size: 0.7rem;
            }
            .anket-table .soru-metni {
                font-size: 0.78rem;
            }
            .radio-row {
                gap: 0.25rem;
                flex-wrap: wrap;
            }
            .radio-label-wrap {
                padding: 0.35rem 0.45rem;
                font-size: 0.72rem;
                gap: 0.2rem;
            }
        }

        /* === SUCCESS MODAL / STATE === */
        .success-icon {
            font-size: 4rem;
            color: #2EC272;
        }

        /* === CUSTOM SEARCHABLE DROPDOWN === */
        .custom-search-dropdown {
            position: relative;
            user-select: none;
        }
        .custom-search-dropdown .dropdown-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }
        .custom-search-dropdown .dropdown-search-input {
            width: 100%;
            padding-right: 3.5rem;
            cursor: pointer;
            background: #ffffff;
        }
        .custom-search-dropdown .dropdown-search-input:focus {
            border-color: var(--bs-primary);
            box-shadow: 0 0 0 3px rgba(62,151,255,0.15);
            outline: none;
        }
        .custom-search-dropdown .dropdown-search-input.is-invalid {
            border-color: #F1416C;
            box-shadow: 0 0 0 3px rgba(241,65,108,0.12);
        }
        .custom-search-dropdown .dropdown-arrow {
            position: absolute;
            right: 2.2rem;
            color: #A1A5B7;
            font-size: 0.75rem;
            pointer-events: none;
            transition: transform 0.2s ease;
        }
        .custom-search-dropdown.open .dropdown-arrow {
            transform: rotate(180deg);
        }
        .custom-search-dropdown .dropdown-clear-btn {
            position: absolute;
            right: 0.5rem;
            background: none;
            border: none;
            color: #A1A5B7;
            cursor: pointer;
            font-size: 0.65rem;
            padding: 0.25rem;
            border-radius: 50%;
            display: none;
            line-height: 1;
            transition: color 0.15s;
        }
        .custom-search-dropdown .dropdown-clear-btn:hover {
            color: #F1416C;
        }
        .custom-search-dropdown .dropdown-clear-btn.visible {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .dropdown-options-list {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            z-index: 1050;
            background: #ffffff;
            border: 1px solid #E4E6EF;
            border-radius: 0.475rem;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            margin-top: 4px;
            max-height: 320px;
            overflow-y: auto;
            display: none;
        }
        .custom-search-dropdown.open .dropdown-options-list {
            display: block;
        }
        .dropdown-option {
            padding: 0.55rem 1rem;
            cursor: pointer;
            font-size: 0.85rem;
            color: #181C32;
            transition: background-color 0.12s ease;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .dropdown-option:hover {
            background-color: #F5F8FA;
        }
        .dropdown-option.active {
            background-color: #EEF6FF;
            color: var(--bs-primary);
            font-weight: 600;
        }
        .dropdown-option.no-results {
            color: #A1A5B7;
            cursor: default;
            text-align: center;
            font-style: italic;
        }
        .dropdown-option.no-results:hover {
            background-color: transparent;
        }
        .dropdown-option .level-indicator {
            color: #B0B5C6;
            margin-right: 0.25rem;
            font-weight: 400;
        }

        /* Scrollbar styling */
        .dropdown-options-list::-webkit-scrollbar {
            width: 5px;
        }
        .dropdown-options-list::-webkit-scrollbar-track {
            background: transparent;
        }
        .dropdown-options-list::-webkit-scrollbar-thumb {
            background: #D1D5DB;
            border-radius: 10px;
        }