/**
 * TerfiUI v5 - Akıllı Mevzuat Okuyucu & Detay Sayfası CSS (assets/css/pages/legislation.css)
 * Kategori Seçim Sistemi, Görünüm Modları, Font Boyutlandırma, Yan Not Defteri Çekmecesi - Rule 3, 4, 7, 8, 10, 13, 20, 22, 26
 */

:root {
    --gd-leg-primary: #2563eb;
    --gd-leg-primary-hover: #1d4ed8;
    --gd-leg-primary-light: #eff6ff;
    --gd-leg-primary-border: #bfdbfe;
    
    --gd-leg-bg: #ffffff;
    --gd-leg-body-bg: #f8fafc;
    --gd-leg-text-main: #0f172a;
    --gd-leg-text-muted: #64748b;
    --gd-leg-border: #e2e8f0;
    --gd-leg-radius: 14px;
    --gd-leg-radius-inner: 10px;
}

/* ── 1. SAYFA GÖVDESİ & HİZALAMA KURALI (Rule 20) ────────────────────────── */
.gd-page-body {
    padding: 8px !important;
    gap: 8px !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

#legislation-wrapper {
    --leg-font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px !important;
    width: 100%;
}

/* ── 2. HERO KART YAPISI & KONTROLLER (Rule 7, Rule 26) ───────────────────── */
.gd-leg-hero {
    background: #ffffff;
    border: 1px solid var(--gd-leg-border);
    border-radius: var(--gd-leg-radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.gd-leg-hero-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    max-width: 100%;
}

.gd-leg-hero-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: var(--gd-leg-primary-light);
    border: 1px solid var(--gd-leg-primary-border);
    color: var(--gd-leg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-leg-hero-content {
    min-width: 0;
    flex: 1;
    max-width: 100%;
}

.gd-hero-title,
.gd-hero__title,
.gd-leg-hero-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gd-leg-text-main);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.gd-leg-hero-subtitle {
    font-size: 0.82rem;
    color: var(--gd-leg-text-muted);
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gd-leg-hero-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Görünüm Modu İkon Butonları (Sadece İkon) */
.gd-leg-view-switcher {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.gd-leg-view-btn {
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
    user-select: none;
}

.gd-leg-view-btn:hover {
    color: #0f172a;
}

.gd-leg-view-btn.active {
    background: #ffffff;
    color: #2563eb;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Font Boyutlandırma Butonları (A- / A+) */
.gd-leg-font-grp {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gd-leg-btn-font {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px 10px;
    font-weight: 800;
    font-size: 0.82rem;
    color: #333333;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.gd-leg-btn-font:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

/* Notlarım Butonu */
.gd-leg-btn-notes {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    padding: 5px 12px;
    font-weight: 800;
    font-size: 0.82rem;
    color: #d97706;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.gd-leg-btn-notes:hover {
    background: #fef3c7;
    border-color: #fde68a;
    color: #b45309;
}

/* ── 3. KATEGORİ SEÇİM BARINI UYARLAMA (/konu/ BİREBİR 1:1) ───────────────── */
.gd-cat-select-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 2px;
    margin-bottom: 2px;
    min-width: 0;
}

.gd-cat-tour-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    outline: none;
    flex-shrink: 0;
}

.gd-cat-tour-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.gd-cat-select-btn {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    outline: none;
    overflow: hidden;
}

.gd-cat-select-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.gd-cat-select-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.gd-cat-select-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2563eb;
}

.gd-cat-select-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0;
    line-height: inherit;
    min-width: 0;
    flex: 1;
}

.gd-cat-select-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
    color: #94a3b8;
}

.gd-cat-edit-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #0f172a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.15s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    flex-shrink: 0;
}

.gd-cat-edit-btn:hover {
    background: #1e293b;
}

/* ── 3.1 OVERALL PROGRESS CARD & SEGMENTED FILTER BAR (1:1 IMAGE MATCH) ───── */
.overall-progress-card.full-progress {
    width: 100%;
    display: block;
    padding: 18px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    margin-bottom: 20px;
}

.overall-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.overall-progress-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.overall-progress-title .title-label {
    color: #0f172a;
    font-weight: 900;
    font-size: 15px;
}

.gd-leg-est-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    margin-left: 16px;
}

.gd-leg-est-time strong {
    color: #0f172a;
    font-weight: 900;
}

.overall-progress-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Segmented Capsule Filters (Rule 23) */
.gd-mev-filter-group {
    display: inline-flex;
    align-items: center;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 12px;
    gap: 2px;
}

.gd-mev-filter-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    border: none;
    background: transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gd-mev-filter-btn:hover {
    color: #0f172a;
}

.gd-mev-filter-btn.active {
    background: #ffffff !important;
    color: #1e40af !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    font-weight: 800 !important;
}

.overall-progress-pct {
    font-size: 16px;
    font-weight: 900;
    color: #2563eb;
    letter-spacing: -0.2px;
}

.overall-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 12px;
}

.overall-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 50%, #10b981 100%);
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.overall-progress-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

/* ── 4. SÜRE VE ZAMAN VURGULAMA STİLLERİ (Maddelerde Vurgu İçin) ──────────── */
.leg-duration-highlight {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.88em;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 2px;
    cursor: help;
    transition: transform 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.leg-duration-highlight:hover {
    transform: translateY(-1px);
}

/* 🟡 Günlük Süreler: Sıcak Amber / Altın */
.leg-duration-highlight.duration-day,
.leg-duration-highlight:not([class*="duration-"]) {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* 🟢 Aylık ve Haftalık Süreler: Zümrüt Yeşili */
.leg-duration-highlight.duration-month {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* 🔵 Yıllık ve Saatlik Süreler: İndigo Mavi */
.leg-duration-highlight.duration-year {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

/* 🔴 Acil / Kritik Zaman İfadeleri: Gül Kırmızı */
.leg-duration-highlight.duration-urgent {
    background: #ffe4e6;
    color: #9f1239;
    border: 1px solid #fecdd3;
    font-weight: 900;
}

/* 🟣 Takvim Ayları: Mor */
.leg-duration-highlight.duration-cal {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

/* ── 5. MEVZUAT MADDELERİ LİSTESİ & KARTLARI ─────────────────────────────── */
.leg-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 4px;
}

.leg-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leg-group-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gd-leg-text-main);
    border-bottom: none !important;
    padding-bottom: 2px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leg-item-card {
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

/* 🎨 GÖRÜNÜM MODU 1: 2 KOLONLU KART GÖRÜNÜMÜ */
#legislation-wrapper.view-style-cards .leg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

#legislation-wrapper.view-style-cards .leg-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#legislation-wrapper.view-style-cards .leg-item-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

#legislation-wrapper.view-style-cards .leg-title {
    font-size: calc(var(--leg-font-size, 1rem) * 1.02);
    font-weight: 800;
    color: #1e40af;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.4;
}

#legislation-wrapper.view-style-cards .leg-text {
    font-size: var(--leg-font-size, 0.94rem) !important;
    color: #334155;
    line-height: 1.65;
    margin-bottom: 16px;
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1;
}

#legislation-wrapper.view-style-cards .leg-footer-meta {
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* 🎨 GÖRÜNÜM MODU 2: TEK KOLONLU KOMPAKT LİSTE */
#legislation-wrapper.view-style-compact .leg-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#legislation-wrapper.view-style-compact .leg-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    width: 100%;
    box-sizing: border-box;
}

#legislation-wrapper.view-style-compact .leg-item-card:hover {
    border-color: #bfdbfe;
    background: #f8fafc;
}

#legislation-wrapper.view-style-compact .leg-title {
    font-size: calc(var(--leg-font-size, 1rem) * 0.92);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.35;
}

#legislation-wrapper.view-style-compact .leg-text {
    font-size: var(--leg-font-size, 0.88rem) !important;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

#legislation-wrapper.view-style-compact .leg-footer-meta {
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Okundu İşaretleme Vurgusu (Tüm Kart Zemin Rengi Değişimi) */
.leg-item-card.is-read {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.06) !important;
}

.art-note-badge {
    display: inline-flex;
    align-items: center;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 2px 6px;
    border-radius: 6px;
    color: #d97706;
}

/* ── 5.1 MADDE AKSİYON BUTONLARI GRUBU & HİZALAMA ──────────────────────── */
.leg-actions-grp {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.leg-actions-grp .gd-btn-xs {
    min-height: auto !important;
    min-width: auto !important;
    height: auto !important;
    padding: 5px 11px !important;
    font-size: 0.73rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.leg-actions-grp .gd-btn-xs svg {
    width: 13px !important;
    height: 13px !important;
}

.leg-actions-grp .gd-btn-xs:hover {
    transform: translateY(-1px) !important;
}

.leg-actions-grp .gd-btn-xs:active {
    transform: translateY(0) !important;
}

/* 1) Not Ekle (Warning XS) */
.leg-actions-grp .gd-btn-xs-warning {
    background: #f59e0b !important;
    border: 1px solid #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2) !important;
}

.leg-actions-grp .gd-btn-xs-warning:hover {
    background: #d97706 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
}

/* 2) Okundu / Okundu İşaretle (Success XS) */
.leg-actions-grp .gd-btn-xs-success {
    background: #10b981 !important;
    border: 1px solid #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.2) !important;
}

.leg-actions-grp .gd-btn-xs-success:hover {
    background: #059669 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
}

.leg-actions-grp .gd-btn-xs-success.active {
    background: #047857 !important;
    border: 1px solid #065f46 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(4, 120, 87, 0.25) !important;
}

.leg-actions-grp .gd-btn-xs-success.active:hover {
    background: #065f46 !important;
    border-color: #064e3b !important;
    color: #ffffff !important;
}

/* 3) (X) Soruyu Çöz (Primary XS) */
.leg-actions-grp .gd-btn-xs-primary {
    background: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2) !important;
}

.leg-actions-grp .gd-btn-xs-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
}

.leg-actions-grp .gd-btn-danger:hover {
    background: #dc2626 !important;
}

/* Satır İçi Editör (Admin) */
.edit-trigger-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
}

.inline-edit-area {
    display: none;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.edit-input-title {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.edit-input-content {
    width: 100%;
    height: 120px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-family: inherit;
}

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

.btn-edit-cancel {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.btn-edit-save {
    padding: 6px 14px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

/* ── 6. YAN NOT DEFTERİ ÇEKMECESİ (SLIDE-OVER SIDEBAR) ───────────────────── */
#notebook-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 390px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.2);
    z-index: 100005;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    display: flex;
    flex-direction: column;
}

body.notebook-open #notebook-sidebar {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

#notebook-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100004;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.notebook-open #notebook-overlay {
    display: block;
    opacity: 1;
}

.notebook-header {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(180, 83, 9, 0.2);
}

.notebook-title-grp {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.notebook-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.notebook-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

.notebook-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notebook-target-label {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #b45309;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notebook-textarea {
    width: 100%;
    min-height: 95px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.notebook-textarea:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3.5px rgba(217, 119, 6, 0.15);
    background: #ffffff;
}

.notebook-btn-save {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: none;
    padding: 9px 22px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notebook-btn-save:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
    transform: translateY(-1px);
}

/* 🎨 Misafir Üye Bilgilendirme Kutusu (Auth Box) */
.gd-notebook-auth-box {
    background: #ffffff;
    border: 1.5px solid #fef3c7;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.gd-notebook-auth-icon {
    font-size: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fffbeb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.gd-notebook-auth-title {
    font-size: 16px;
    font-weight: 800;
    color: #92400e;
    margin: 0;
}

.gd-notebook-auth-desc {
    font-size: 13.5px;
    color: #b45309;
    line-height: 1.5;
    margin: 0;
    max-width: 300px;
}

.gd-notebook-auth-btn {
    margin-top: 8px;
    padding: 10px 22px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.gd-notebook-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4) !important;
}

/* 🎨 Not Kartları */
.notebook-note-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.notebook-note-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.note-card-meta {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gd-notebook-tag-madde {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.note-card-content {
    font-size: 14px;
    color: #0f172a;
    line-height: 1.6;
    white-space: pre-wrap;
}

.note-card-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

/* Category Modal Items */
.gd-leg-modal-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--gd-leg-radius-inner);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.gd-leg-modal-cat-item:hover {
    background: var(--gd-leg-primary-light);
    color: var(--gd-leg-primary);
}

.gd-leg-modal-cat-item.active {
    background: var(--gd-leg-primary-light);
    color: var(--gd-leg-primary);
    border: 1px solid var(--gd-leg-primary-border);
}

/* ── MODAL OVERLAY & CARD STİLLERİ ────────────────────────────────────────── */
.gd-tf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gd-tf-modal-overlay.active {
    opacity: 1;
}

.gd-tf-modal-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gd-tf-modal-overlay.active .gd-tf-modal-card {
    transform: scale(1);
}

.gd-leg-modal-card-sm {
    max-width: 480px !important;
}

.gd-leg-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.gd-leg-modal-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-leg-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.gd-leg-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.gd-leg-modal-search-wrapper {
    padding: 14px 22px 10px;
    background: #ffffff;
}

.gd-leg-modal-body {
    padding: 10px 22px 22px;
    max-height: 55vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ffffff;
}

.gd-leg-modal-cat-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-leg-modal-badge {
    font-size: 0.78rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    padding: 3px 9px;
    border-radius: 99px;
    transition: all 0.15s ease;
}

.gd-leg-modal-cat-item.active .gd-leg-modal-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.gd-mev-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.gd-mev-search-icon {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: var(--gd-leg-text-muted);
}

.gd-mev-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--gd-leg-border);
    border-radius: var(--gd-leg-radius-inner);
    font-size: 0.88rem;
    color: var(--gd-leg-text-main);
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gd-mev-search-input:focus {
    border-color: var(--gd-leg-primary-border);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ── RESPONSIVE KIRILMALAR (Rule 4) ──────────────────────────────────────── */
@media (max-width: 991px) {
    .gd-leg-hero {
        padding: 10px 12px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .gd-leg-hero-subtitle {
        display: none !important;
    }

    .gd-hero-title,
    .gd-hero__title,
    .gd-leg-hero-title {
        font-size: 0.98rem !important;
        margin: 0 !important;
    }

    .gd-leg-hero-controls {
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }

    #notebook-sidebar {
        width: 88vw;
        max-width: 360px;
        height: 100vh;
        top: 0;
        right: 0;
        left: auto;
        border-bottom: none;
        border-left: 2px solid #d97706;
    }
    body.notebook-open #notebook-sidebar {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    #legislation-wrapper.view-style-cards .leg-grid {
        grid-template-columns: 1fr !important;
    }

    .gd-cat-select-btn {
        padding: 10px 12px !important;
    }

    .gd-cat-select-left {
        gap: 8px !important;
    }

    .gd-cat-select-title {
        font-size: 13px !important;
    }

    .leg-actions-grp {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .gd-leg-hero {
        padding: 8px 10px !important;
    }

    .gd-leg-hero-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    .gd-cat-tour-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .gd-cat-edit-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
}

/* Modern Zippi Custom Responsive Modal */
.gd-notes-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.gd-notes-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.gd-notes-modal {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--gd-border, #e2e8f0);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.gd-notes-modal-overlay.active .gd-notes-modal {
    transform: scale(1);
}

.gd-notes-modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gd-border, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.gd-notes-modal-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.gd-notes-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
}

.gd-notes-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.gd-notes-modal-body {
    padding: 18px;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
}

.gd-notes-modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--gd-border, #e2e8f0);
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Not Defteri Sayfa Sonu Ayırıcı (Liste Sonu & Tüm Notlarım Linki) */
.gd-notebook-end-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px 28px 12px;
    margin-top: 14px;
    border-top: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.gd-notebook-end-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.gd-notebook-all-notes-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.gd-notebook-all-notes-link:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

/* ── 9. MOBİL RESPONSİVE %100 TAM SAYFA AKIŞ KURALLARI (Rule 4, Rule 20 Uyumlu) ───────────── */
@media (max-width: 991px) {
    .gd-page-body {
        padding: 8px 4px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #legislation-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .gd-leg-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
    }

    .gd-leg-hero-main {
        width: 100% !important;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
    }

    .gd-leg-hero-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 10px !important;
        margin-top: 2px;
    }

    .gd-leg-hero-content {
        min-width: 0;
        flex: 1;
        width: 100%;
    }

    .gd-hero-title, .gd-hero__title, .gd-leg-hero-title {
        font-size: 0.98rem !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        margin-bottom: 2px !important;
    }

    .gd-leg-hero-subtitle {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .gd-page-header-actions {
        width: 100% !important;
        display: flex;
        margin-top: 2px;
    }

    .gd-page-header-actions .gd-btn {
        width: 100% !important;
        justify-content: center;
        height: 38px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }

    .overall-progress-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 14px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .gd-mev-controls {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .gd-mev-search-box {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .leg-list-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .gd-page-body {
        padding: 6px 2px !important;
    }

    .overall-progress-card {
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }

    .gd-mev-search-input {
        font-size: 13px !important;
        padding-left: 38px !important;
    }
}

/* 🔍 Arama Eşleşmesi Sarı Fosforlu Vurgu Stili */
mark.gd-search-highlight {
    background: #fef08a !important;
    color: #854d0e !important;
    font-weight: 800 !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(234, 179, 8, 0.3) !important;
    display: inline !important;
}

/* Mobil (<= 768px) Üst Bar Akış Hizalaması */
@media (max-width: 768px) {
    .ust-bar-sticky .ust-bar-icerik {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .ust-bar-sticky .ust-bar-left {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    .ust-bar-sticky .gd-mev-filter-group {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: #e2e8f0 !important;
        padding: 3px !important;
        border-radius: 12px !important;
    }

    .ust-bar-sticky .gd-mev-filter-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 6px 4px !important;
        font-size: 12px !important;
        justify-content: center !important;
    }

    .ust-bar-sticky #topLegProgressPct {
        margin-left: 6px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        flex-shrink: 0 !important;
    }

    .ust-bar-sticky .ust-bar-right {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    .ust-bar-sticky .gd-cat-notes-btn {
        flex: 1 !important;
        justify-content: center !important;
    }

    /* Mobil Ekranlar İçin XS Stilli Buton Koleksiyonu (messages_inbox Uyumlu) */
    .leg-actions-grp {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

    .leg-actions-grp .gd-btn-xs {
        min-height: auto !important;
        min-width: auto !important;
        height: auto !important;
        font-size: 0.72rem !important;
        padding: 5px 10px !important;
        border-radius: 6px !important;
        line-height: 1.2 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        flex: 1 1 auto !important;
    }

    .leg-actions-grp .gd-btn-xs svg {
        width: 13px !important;
        height: 13px !important;
    }
}

/* ── 7. MODÜLER BİLEŞEN VE SAYFA ELEMANI SINIFLARI (Rule 1 & Rule 22) ────── */
.leg-top-sticky-bar {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 10;
}

.leg-top-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.leg-tour-btn-span {
    display: inline-flex;
}

.leg-cat-toggle-btn {
    flex: 1;
    min-width: 0;
}

.leg-cat-toggle-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.leg-cat-toggle-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    flex: 1;
}

.leg-top-bar-content {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.leg-top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-leg-top-progress-pct {
    font-size: 15px;
    font-weight: 800;
    color: #1e40af;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
}

.leg-top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gd-cat-notes-btn {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    height: 32px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #d97706 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
}

.gd-cat-notes-btn:hover {
    background: #fff7ed !important;
    border-color: #f59e0b !important;
    color: #b45309 !important;
}

.gd-leg-view-switcher {
    display: flex !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 2px !important;
    gap: 2px !important;
}

.gd-leg-view-btn {
    height: 28px !important;
    width: 30px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    background: transparent;
    color: #64748b;
    transition: all 0.15s ease;
}

.gd-leg-view-btn.active {
    background: #ffffff !important;
    color: #2563eb !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.gd-leg-font-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.gd-leg-font-btn:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.gd-leg-search-wrapper {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.gd-leg-search-box {
    width: 100%;
    position: relative;
}

.gd-leg-search-icon {
    left: 14px;
    color: #64748b;
}

.gd-leg-search-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    padding-left: 42px !important;
    padding-right: 38px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
}

.gd-leg-search-clear-btn {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.gd-leg-search-clear-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.leg-group-header-block {
    margin-bottom: 16px;
}

.leg-group-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 4px !important;
}

.gd-leg-reading-stats-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #fffbeb !important;
    border: 1px solid #fef3c7 !important;
    border-radius: 20px !important;
    padding: 5px 14px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #b45309 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.08) !important;
}

.gd-leg-reading-stats-badge .dot {
    color: #f59e0b !important;
}

.leg-group-subtitle {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.gd-mevzuat-paywall-card {
    background: #fffbeb !important;
    border: 1.5px solid #fef3c7 !important;
    border-radius: 14px !important;
    padding: 24px 20px !important;
    text-align: center !important;
    margin: 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gd-mevzuat-paywall-card .paywall-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #fef3c7 !important;
    color: #d97706 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    margin: 0 auto 12px auto !important;
}

.gd-mevzuat-paywall-card h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #92400e !important;
    margin: 0 0 8px 0 !important;
}

.gd-mevzuat-paywall-card p {
    font-size: 14px !important;
    color: #b45309 !important;
    max-width: 560px !important;
    margin: 0 auto 20px auto !important;
    line-height: 1.5 !important;
}

.gd-mevzuat-paywall-card .paywall-actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.leg-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.leg-card-header .leg-title {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.leg-admin-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-left: auto !important;
}

.leg-admin-actions .gd-btn-xs {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.leg-admin-actions .gd-btn-xs.ai-info-btn {
    background: #f0f7ff !important;
    border-color: #dbeafe !important;
}

.leg-admin-actions .gd-btn-xs.ai-question-btn {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

.leg-admin-actions .gd-btn-xs.gd-btn-xs-danger {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

.leg-admin-actions .gd-btn-xs:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.gd-leg-quick-facts-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 16px 0 14px 0 !important;
}

.gd-leg-quick-fact-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
}

.gd-leg-quick-fact-header {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #d97706 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.gd-leg-quick-fact-body {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
}

.leg-search-empty-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 20px 24px !important;
    text-align: left !important;
    margin: 20px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
}

.leg-search-empty-box h3 {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.leg-search-empty-box .empty-icon {
    font-size: 20px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.leg-search-empty-box p {
    font-size: 13.5px !important;
    color: #64748b !important;
    margin: 0 0 0 46px !important;
    font-weight: 500 !important;
}

.inline-edit-area .edit-header {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
}

.gd-mev-pagination-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    margin-top: 24px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
}

.gd-mev-pagination-bar .pagination-info {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.gd-mev-pagination-bar .pagination-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.gd-mev-pagination-bar .page-nav-btn {
    height: 36px !important;
    padding: 0 12px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.gd-mev-pagination-bar .page-nav-btn-next {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.gd-mev-pagination-bar .page-num-btn {
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 10px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
}

.gd-mev-pagination-bar .page-num-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.gd-mev-pagination-bar .page-dots {
    color: #94a3b8 !important;
    font-weight: 700 !important;
    padding: 0 4px !important;
}

.gd-leg-locked-card {
    filter: blur(4px) !important;
    opacity: 0.55 !important;
    user-select: none !important;
    cursor: pointer !important;
}

.gd-btn-xs-voice {
    background: #7c3aed !important;
    color: #ffffff !important;
    border-color: #7c3aed !important;
}

.gd-btn-xs-voice:hover {
    background: #6d28d9 !important;
}