/* Görseldeki Orijinal Üst Bar Stilleri */
.ust-bar-icerik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 12px;
    box-sizing: border-box;
}

.ust-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

/* Filtrele Butonu ve Açılır Menü */
.filter-toggle-checkbox {
    display: none;
}

.qlist-filter-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.qlist-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.qlist-filter-button:hover,
.filter-toggle-checkbox:checked + .qlist-filter-button {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.qlist-filter-wrapper .qlist-filter-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    width: 230px;
    min-width: 230px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    padding: 6px 0;
    display: none;
    z-index: 100000;
}

.qlist-filter-wrapper .qlist-filter-menu.show,
.qlist-filter-wrapper .qlist-filter-menu.is-open,
.qlist-filter-wrapper .filter-toggle-checkbox:checked ~ .qlist-filter-menu {
    display: block;
}

.filter-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s ease;
}

.filter-menu-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.filter-menu-item.is-active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
}

/* Tour Info Butonu */
.tour-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #475569;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.tour-trigger-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Font Boyutu Kontrolleri */
.font-size-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border-radius: 8px;
}

.font-btn {
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.font-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Sınav Doğru / Yanlış Sayaç Özeti */
.sinav-ozet {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sinav-dogru {
    padding: 3px 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #166534;
    white-space: nowrap;
}

.sinav-dogru strong {
    color: #15803d;
    font-weight: 700;
}

.sinav-yanlis {
    padding: 3px 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #991b1b;
    white-space: nowrap;
}

.sinav-yanlis strong {
    color: #b91c1c;
    font-weight: 700;
}

/* Soru Listesi Filtre Barı Responsive Düzeltmesi */
.questions-filter-bar {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.questions-filter-bar::-webkit-scrollbar {
    display: none;
}

.questions-filter-bar .gd-mev-filter-group {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
}

@media (max-width: 768px) {
    .gd-page-body .ust-bar-icerik,
    .ust-bar-sticky .ust-bar-icerik {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        gap: 8px;
        overflow: visible;
    }

    .gd-page-body .ust-bar-left,
    .ust-bar-sticky .ust-bar-left {
        display: flex;
        align-items: center;
        gap: 8px;
        width: auto;
        overflow: visible;
    }

    .gd-page-body .ust-bar-right,
    .ust-bar-sticky .ust-bar-right {
        display: flex;
        align-items: center;
        gap: 8px;
        width: auto;
        flex-wrap: wrap;
    }
}

.filter-bar {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 500;
}

.filter-select-wrapper select {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

.view-toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.view-toggle-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-right: 4px;
}

.view-toggle-link {
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    color: #374151;
    background: #f3f4f6;
}

.view-toggle-link:hover {
    background: #e5e7eb;
}

.view-toggle-link.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
    font-weight: 600;
}

.favorites-empty-inline {
    background: #ffffff;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.favorites-empty-inline strong {
    color: #0f172a;
}

.cat-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.ust-bar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 990;
    background: #ffffff;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin: 0 0 16px 0;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.ust-bar-top {
    padding: 10px 15px 5px 15px;
    background: #ffffff;
}

.ust-bar-top .cat-toggle-btn {
    width: 100%;
    justify-content: space-between;
}

.ust-bar-icerik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    gap: 12px;
}

.ust-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.ust-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Filtre wrapper + butonu */
.qlist-filter-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.qlist-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: transparent;
    border: none;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 0.9rem;
    color: #111827;
}

.qlist-filter-button .filter-icon {
    font-size: 1rem;
}

/* Doğru / Yanlış metinleri */
.sinav-ozet {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    padding: 0;
    margin: 0 0 0 auto;
    font-size: 0.9rem;
}

.sinav-dogru strong {
    color: #16a34a;
    font-weight: 700;
}

.sinav-yanlis strong {
    color: #dc2626;
    font-weight: 700;
}

/* Açılır filtre menüsü */
.qlist-filter-menu {
    position: absolute;
    top: 115%;
    left: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    padding: 6px 0;
    z-index: 1000;
    display: none;
}

.filter-menu-item {
    display: block;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.filter-menu-item:hover {
    background: #f3f4f6;
}

.filter-menu-item.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.filter-toggle-checkbox {
    display: none;
}

.filter-toggle-checkbox:checked + .qlist-filter-button + .qlist-filter-menu {
    display: block;
}

/* Yazı boyutu butonları */
.font-size-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.font-btn {
    padding: 4px 8px;
    font-size: 0.85rem;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.15s;
}

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

/* Günlük soru hakkı badge'i */
.limit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.limit-badge span strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .gd-page-body .sinav-ozet,
    .ust-bar-icerik .sinav-ozet {
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }

    .gd-page-body .sinav-dogru,
    .gd-page-body .sinav-yanlis,
    .ust-bar-icerik .sinav-dogru,
    .ust-bar-icerik .sinav-yanlis {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 0.78rem;
        white-space: nowrap;
        height: auto;
        width: auto;
        aspect-ratio: auto;
    }

    .gd-page-body .limit-badge,
    .ust-bar-icerik .limit-badge {
        display: inline-flex;
        align-items: center;
        padding: 4px 10px;
        font-size: 0.75rem;
        gap: 6px;
        white-space: nowrap;
        flex-wrap: nowrap;
        border-radius: 999px;
        background: #fef3c7;
        border: 1px solid #fde68a;
        color: #92400e;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Driver.js Tanıtım Turu Popover ve Active Spotlight Düzeltmesi */
.driver-popover {
    z-index: 1000000 !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
}

.driver-popover-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.driver-active-element {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .driver-active-element,
    .driver-active-element.font-size-controls,
    .driver-active-element .font-btn {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .font-size-controls {
        background: transparent !important;
        background-color: transparent !important;
    }

    .font-btn {
        background: #f1f5f9 !important;
        color: #334155 !important;
        border: 1px solid #e2e8f0 !important;
    }
}


/* Yeni Kategori Seçici Modalı */
.cat-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* Breadcrumb ve Kategori Metni Üç Nokta (...) Kısıtlaması */
.gd-page-body .gd-breadcrumb-bar,
.gd-page-body .gd-breadcrumb,
.gd-page-body .breadcrumb {
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.gd-page-body .gd-breadcrumb-bar::-webkit-scrollbar,
.gd-page-body .gd-breadcrumb::-webkit-scrollbar,
.gd-page-body .breadcrumb::-webkit-scrollbar {
    display: none;
}

.gd-page-body .gd-breadcrumb-item a,
.gd-page-body .gd-breadcrumb-item span,
.gd-page-body .gd-breadcrumb a,
.gd-page-body .gd-breadcrumb span,
.gd-page-body .breadcrumb a,
.gd-page-body .breadcrumb span,
.gd-page-body .breadcrumb-item,
.gd-page-body .breadcrumb-item a {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .gd-page-body .gd-breadcrumb-item a,
    .gd-page-body .gd-breadcrumb-item span,
    .gd-page-body .gd-breadcrumb a,
    .gd-page-body .gd-breadcrumb span,
    .gd-page-body .breadcrumb a,
    .gd-page-body .breadcrumb span,
    .gd-page-body .breadcrumb-item,
    .gd-page-body .breadcrumb-item a {
        max-width: 130px;
    }
}



.cat-selector-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

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

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

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

.cat-selector-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}

.cat-selector-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: 0.2s;
}

.cat-selector-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.cat-selector-grid {
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-group-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cat-group-row-3 .cat-selector-item {
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    text-align: center;
    gap: 6px;
    border-radius: 12px;
    box-sizing: border-box;
}

.cat-group-row-3 .cat-selector-icon {
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-selector-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.cat-selector-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

@media (min-width: 993px) {
    body.notes-open .gd-page-body {
        padding-right: 360px;
    }

    body.notes-open .ust-bar-sticky {
        margin: 0 0 20px 0;
        width: 100%;
        border-radius: 14px;
    }
}

.gd-page-body,
.ust-bar-sticky {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === SMART NOTES SIDEBAR === */
.notes-sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    width: 350px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 2147483647;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notes-sidebar.active {
    right: 0;
}

@media (max-width: 992px) {
    .notes-sidebar {
        right: 0;
        top: 0;
        bottom: auto;
        width: 100%;
        height: 60vh;
        transform: translateY(-105%);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .notes-sidebar.active {
        transform: translateY(0);
    }

    .notes-sidebar-header {
        padding: 8px 12px;
        border-radius: 0;
    }

    .notes-sidebar-header h2 {
        font-weight: 300;
        font-size: 0.95rem;
    }

    .notes-toggle-btn {
        height: 110px;
        width: 30px;
        top: 40%;
    }

    .notes-tab-text-btn {
        font-weight: 400;
        font-size: 0.65rem;
    }

    .save-note-btn {
        padding: 10px;
        font-size: 0.95rem;
    }
}

.notes-toggle-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #ca8a04;
    color: #fff;
    width: 36px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    z-index: 2147483646;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}

.notes-toggle-btn:hover {
    background: #a16207;
    width: 40px;
}

.notes-tab-part {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: 0.2s;
}

.notes-tab-close-btn {
    height: 24px;
    font-size: 11px;
    opacity: 0.6;
}

.notes-tab-close-btn:hover {
    opacity: 1;
    color: #fca5a5;
    transform: scale(1.1);
}

.notes-tab-text-btn {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    flex: 1;
}

.notes-tab-open-btn {
    height: 24px;
    font-size: 13px;
    animation: pulseChevron 2s infinite;
}

@keyframes pulseChevron {
    0% { transform: translateX(0); }
    50% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

.notes-sidebar-header {
    padding: 12px 15px;
    background: #ca8a04;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-sidebar-header h2,
.notes-sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.notes-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

.note-card {
    background: #fffbeb;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #fef3c7;
    border-bottom: 3px solid #fde68a;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 12px;
}

.note-card-index {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ca8a04;
    opacity: 0.5;
    min-width: 25px;
    text-align: center;
    border-right: 1px solid #fde68a;
    padding-right: 8px;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.note-card-main {
    flex: 1;
}

.note-card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #451a03;
    white-space: pre-wrap;
}

.note-card-date {
    font-size: 0.75rem;
    color: #92400e;
    margin-top: 10px;
    text-align: right;
    opacity: 0.8;
}

.note-input-area {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.02);
}

.note-textarea {
    width: 100%;
    height: 100px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.note-textarea:focus {
    border-color: #fcd34d;
}

.save-note-btn {
    width: 100%;
    border: none;
    background: #ca8a04;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    display: block;
    margin-top: 5px;
}

.save-note-btn:hover {
    background: #a16207;
}

.note-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: 0.2s;
}

.note-card:hover .note-card-actions {
    opacity: 1;
}

.note-btn-action {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.note-btn-del:hover {
    background: #ef4444;
    color: #fff;
}

.note-textarea:focus {
    border-color: #ca8a04;
}

.note-card-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: 0.2s;
}

.note-card:hover .note-card-actions {
    opacity: 1;
}

.note-btn-action {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
}

.note-btn-del:hover {
    background: #ef4444;
    color: #fff;
}

.cat-selector-item.active {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
}

.cat-selector-icon {
    margin-right: 14px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.cat-search-wrapper {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.cat-search-box-inner {
    position: relative;
    flex: 1;
}

.cat-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cat-search-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cat-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.cat-selector-close {
    background: #f1f5f9;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cat-selector-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cat-autocomplete-list {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.cat-autocomplete-list.open {
    display: block;
}

.cat-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.92rem;
    transition: background 0.15s;
}

.cat-ac-item:hover,
.cat-ac-item.focused {
    background: #eff6ff;
    color: #2563eb;
}

.cat-ac-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    flex-shrink: 0;
}

.cat-ac-badge.common {
    background: #dcfce7;
    color: #15803d;
}

.cat-ac-badge.specialized {
    background: #fef9c3;
    color: #a16207;
}

.cat-ac-empty {
    padding: 12px 14px;
    font-size: 0.88rem;
    color: #94a3b8;
    text-align: center;
}

.cat-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cat-toggle-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.cat-toggle-btn i {
    color: #2563eb;
}

.notes-backdrop {
    display: none;
}

body.notes-open .notes-backdrop {
    display: block;
    opacity: 1;
}

@media (max-width: 992px) {
    body.notes-open {
        overflow: auto;
    }

    .notes-sidebar {
        background: #fff;
        border-bottom: 2px solid #ca8a04;
    }

    .notes-toggle-btn {
        top: 35%;
    }
}

.tour-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    margin-right: 4px;
}

.tour-trigger-btn:hover {
    color: #ca8a04;
    transform: scale(1.15);
}

/* Orijinal em Birimli Sıfır-Reflow Font Değişkeni */
.soru-metin,
.secenek,
.cozum-metin {
    font-size: var(--question-font-size, 1em);
}


