/* Genel Kartlar */
.card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Kütüphane & Ekleme Ekranları İçin Sekmeler (Tabs) */
.view-tabs {
    display: flex;
    background-color: var(--bg-secondary);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: var(--accent);
    color: var(--bg-primary);
}

/* Form Elemanları (Ekleme Ekranı) */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

/* Rozetler (Badge) */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-period { background-color: rgba(56, 189, 248, 0.2); color: var(--accent); }
.badge-count { background-color: rgba(16, 185, 129, 0.2); color: var(--success); }


/* Chat Baloncuk Stilleri */
.chat-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1rem 0;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Kullanıcı Mesajı (Sağa Yatık Mavi Baloncuk) */
.user-msg {
    background-color: var(--accent-hover, #0284c7);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Yapay Zeka Mesajı (Sola Yatık Koyu Gri Baloncuk) */
.ai-msg {
    background-color: var(--bg-secondary, #1e293b);
    color: var(--text-primary, #f8fafc);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pop-up Modal Stilleri */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(31, 41, 55, 0.64);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}


.modal-card {
    background-color: var(--bg-secondary);
    border-radius: 20px;
    padding: 1.5rem;
    width: 100%;
    max-width: 750px;
    max-height: 88vh; /* Ekran yüksekliğinin en fazla %88'ini kaplasın */
    overflow-y: auto;  /* İçerik taşarsa modal içinde dikey kaydırma çubuğu çıksın 📜 */
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 70px rgba(24, 35, 45, 0.32);
    -webkit-overflow-scrolling: touch; /* Mobilde yumuşak parmak kaydırması */
}
.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: transparent;
    border: none;
    color: #617083;
    font-size: 1.7rem;
    cursor: pointer;
}

/* Not detayında içerik ve eylemleri ayrı, kolay taranabilir katmanlar halinde sunar. */
.note-modal-card {
    max-width: 860px;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #fcfcfa;
}

.note-modal-card #modal-body {
    max-height: 88vh;
    overflow-y: auto;
    padding: 28px 30px 34px;
}

.note-modal-card .modal-close {
    z-index: 4;
    top: 18px;
    right: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f3ef;
    border: 1px solid #e0e5dc;
    line-height: 28px;
    transition: background .18s ease, color .18s ease;
}

.note-modal-card .modal-close:hover { background: #e4ebe2; color: var(--accent); }

.note-detail { display: flex; flex-direction: column; gap: 20px; }

.note-detail__header {
    padding: 2px 54px 19px 0;
    border-bottom: 1px solid #e5e9e2;
    display: block;
    background: transparent;
    height: auto;
}

.note-detail__label, .note-ai-toolbar__eyebrow, .note-content-section__heading span {
    display: block;
    color: #718072;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.note-detail__header h3 {
    margin: 6px 0 12px;
    color: #27372e;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.28;
}

.note-detail__header h3::first-letter { color: var(--accent); }

.note-detail__header > div[style] { margin: 0 !important; }
.note-detail__header span[style] { background: #edf3eb !important; color: #41654e !important; border: 1px solid #dbe7d9; }

.note-ai-toolbar {
    padding: 10px 12px 12px;
    border: 1px solid #dce8db;
    border-radius: 14px;
    background: linear-gradient(115deg, #f2f7f0 0%, #fafaf6 76%);
    margin-bottom: 10px;
}
.note-ai-toolbar.is-processing { opacity: .62; pointer-events: none; }
.note-ai-toolbar__heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.note-ai-toolbar__state { padding: 2px 7px; border-radius: 999px; background: #e3efe2; color: #4a6b57; font-size: .65rem; font-weight: 700; }
.note-ai-toolbar__actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.note-ai-toolbar .ai-tool-btn {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    min-height: 34px; padding: 5px 6px; border-radius: 8px;
    border: 1px solid #d7e1d5; background: rgba(255,255,255,.85);
    color: #3a5141; font-size: .72rem; font-weight: 800; cursor: pointer;
    white-space: nowrap;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.note-ai-toolbar .ai-tool-btn:hover { transform: translateY(-1px); background: #fff; border-color: #91ac98; box-shadow: 0 2px 6px rgba(74, 107, 87, 0.08); }

.note-content-section { padding-top: 2px; }
.note-content-section__heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 12px; }
.note-content-section__heading strong { display: block; margin-top: 3px; color: #34483a; font-size: .9rem; }
.note-content-section__heading small { color: #97a19a; font-size: .7rem; }

/* 🔗 CONNECTED CARDS & TIMELINE SPINE CONTAINER */
.blocks-timeline {
    position: relative;
    padding-left: 24px;
    margin-top: 6px;
}

.blocks-timeline::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 20px;
    left: 8px;
    width: 2px;
    background: linear-gradient(180deg, #ccd8cd 0%, #dce4dc 50%, #ccd8cd 100%);
    border-radius: 2px;
    z-index: 1;
}

/* 📄 BLOCK CARD STYLING */
.note-modal-card .note-block-card {
    position: relative;
    background: #ffffff !important;
    padding: 10px 14px 12px 14px !important;
    margin-bottom: 8px !important;
    border: 1px solid #e5ece3 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 4px rgba(42, 63, 46, 0.025);
    font-size: 0.84rem;
    transition: border-color .2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .2s cubic-bezier(0.16, 1, 0.3, 1), transform .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.note-modal-card .note-block-card:hover {
    border-color: #bad0bf !important;
    box-shadow: 0 4px 14px rgba(42, 63, 46, 0.05);
}

.note-modal-card .note-block-card .markdown-content {
    font-size: 0.84rem !important;
    line-height: 1.6 !important;
}

.note-modal-card .note-block-card p {
    font-size: 0.84rem !important;
    line-height: 1.6 !important;
    margin: 0 0 5px 0;
}
.note-modal-card .note-block-card p:last-child {
    margin-bottom: 0;
}

.note-modal-card .note-block-card ul,
.note-modal-card .note-block-card ol {
    margin: 3px 0 5px 0;
    padding-left: 18px;
    font-size: 0.84rem;
}

.note-modal-card .note-block-card li {
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
    margin-bottom: 3px;
}

.note-modal-card .note-block-card h1,
.note-modal-card .note-block-card h2,
.note-modal-card .note-block-card h3,
.note-modal-card .note-block-card h4 {
    font-size: 0.94rem;
    font-weight: 750;
    margin: 5px 0 3px 0;
    line-height: 1.35;
    color: #24382c;
}

.note-modal-card .note-block-card blockquote {
    margin: 6px 0 8px 0;
    padding: 6px 12px;
    background: #f2f7f1;
    border-left: 3px solid #709775;
    border-radius: 6px;
    color: #2d4a36;
    font-size: 0.82rem;
    line-height: 1.5;
}
.note-modal-card .note-block-card blockquote p {
    margin: 0;
    font-size: 0.82rem !important;
}

.note-modal-card .note-block-card strong {
    color: #1f3325;
    font-weight: 750;
}

.image-analysis-content {
    border-left: 3px solid #709775 !important;
}

.audio-transcription-content {
    border-left: 3px solid #5b8e7d !important;
}

/* 🔘 SPINE NODE (Düğüm Noktası ve Sürükleme Tutamacı) */
.block-spine-node {
    position: absolute;
    left: -24px;
    top: 14px;
    width: 18px;
    height: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spine-dot {
    width: 14px;
    height: 14px;
    background: #ffffff;
    border: 2px solid #62826e;
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.spine-dot .dot-indicator {
    width: 4px;
    height: 4px;
    background: #4a6b57;
    border-radius: 50%;
    transition: all 0.18s ease;
}

.spine-dot:hover {
    transform: scale(1.3);
    border-color: var(--accent);
    background: #f0f7ee;
    box-shadow: 0 2px 6px rgba(74, 107, 87, 0.25);
}

.spine-dot:active {
    cursor: grabbing;
    transform: scale(1.15);
    background: var(--accent);
}
.spine-dot:active .dot-indicator {
    background: #ffffff;
}

/* 🏷️ BLOCK HEADER ROW */
.block-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    min-height: 24px;
}

.block-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #6a7c6f;
    background: rgba(74, 107, 87, 0.06);
    border: 1px solid rgba(74, 107, 87, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    user-select: none;
}

/* ⚡ HOVER QUICK ACTIONS BAR */
.block-quick-actions {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.note-block-card:hover .block-quick-actions,
.note-block-card:focus-within .block-quick-actions,
.block-quick-actions.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-ai-trigger {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, rgba(74, 107, 87, 0.12), rgba(74, 107, 87, 0.06));
    border: 1px solid rgba(74, 107, 87, 0.25);
    color: var(--accent);
    border-radius: 7px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 800;
    transition: all 0.16s ease;
}

.btn-ai-trigger:hover {
    background: rgba(74, 107, 87, 0.2);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.btn-edit-block, .btn-delete-block, .btn-move-block {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    padding: 0 !important;
    color: #6a7c6f !important;
    transition: all 0.16s ease !important;
}

.btn-move-block:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: #2563eb !important;
}

.btn-edit-block:hover {
    background: rgba(74, 107, 87, 0.1) !important;
    border-color: rgba(74, 107, 87, 0.2) !important;
    color: var(--accent) !important;
}

.btn-delete-block:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

/* 📦 Move & Merge Modal Option Cards */
.move-option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #fbfdfa;
    border: 1px solid #dbe6d9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}

.move-option-card:hover {
    background: #f4f8f3;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 107, 87, 0.08);
}

.move-option-card.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: #f9f9f9;
    border-color: #e5e5e5;
    transform: none !important;
    box-shadow: none !important;
}

.move-option-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.move-option-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
}

.move-option-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.35;
}

.move-option-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}


/* 💊 FLOATING AI PILL MENU */
.block-floating-ai-pill {
    position: absolute;
    top: -12px;
    right: 10px;
    z-index: 40;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(74, 107, 87, 0.28);
    border-radius: 30px;
    padding: 4px 6px;
    box-shadow: 0 8px 24px rgba(42, 63, 46, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 4px;
    animation: aiPillSlide 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aiPillSlide {
    from { opacity: 0; transform: translateY(-4px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-pill-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent);
    padding: 2px 6px;
    letter-spacing: 0.02em;
    user-select: none;
    border-right: 1px solid #e5ece3;
    margin-right: 2px;
}

.block-floating-ai-pill .inline-ai-action-btn,
.block-floating-ai-pill .inline-ai-split-btn {
    background: #f7faf6;
    border: 1px solid #dce6db;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #354e3d;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.14s ease;
}

.block-floating-ai-pill .inline-ai-action-btn:hover,
.block-floating-ai-pill .inline-ai-split-btn:hover {
    background: #eef6ed;
    border-color: #91ac98;
    color: #213527;
    transform: translateY(-1px);
}

.block-floating-ai-pill .close-floating-ai-btn {
    background: none;
    border: none;
    color: #8c9b8f;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.14s ease;
}

.block-floating-ai-pill .close-floating-ai-btn:hover {
    color: #333;
}

/* 🌿 DRAFT & AI PROCESSING STATUS */
.block-draft-preview {
    margin-top: 8px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.block-draft-preview .draft-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.block-draft-preview .draft-content {
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.5;
    background: #ffffff;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e0eae1;
}

.block-processing-badge {
    margin-top: 6px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #b45309;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.note-modal-card #add-block-container > div:first-child { gap: 10px !important; }
.note-modal-card #btn-show-add-block, .note-modal-card #btn-show-ai-add-block { min-height: 40px; border-radius: 11px !important; }

/* 📸 & 🎙️ MANUEL BLOK MEDYA BUTONLARI & KAYIT ÇUBUĞU */
.add-block-media-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f5ee;
    border: 1px solid #d4e0d2;
    color: #354e3d;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}
.add-block-media-btn:hover {
    background: #e5f0e3;
    border-color: #91ac98;
    color: #1f3325;
    transform: translateY(-1px);
}

.block-image-preview-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fbfdfa;
    border: 1px solid #dce8db;
    border-radius: 8px;
    padding: 4px 8px;
    margin-bottom: 8px;
}
.block-image-preview-badge img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
}
.block-image-preview-badge .btn-remove-preview {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 2px 4px;
}

.block-voice-recording-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff5f5;
    border: 1px solid #fecaca;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    animation: fadeIn 0.2s ease;
}
.block-recording-pulse {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    animation: recordPulse 1s infinite alternate;
}
@keyframes recordPulse {
    from { opacity: 0.4; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.2); }
}

@media (max-width: 620px) {
    .modal-overlay { padding: 0; align-items: end; }
    .note-modal-card { border-radius: 22px 22px 0 0; max-height: 94vh; }
    .note-modal-card #modal-body { max-height: 94vh; padding: 24px 16px 28px; }
    .note-ai-toolbar__actions { display: flex; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; gap: 6px; }
    .note-ai-toolbar__actions::-webkit-scrollbar { display: none; }
    .note-ai-toolbar .ai-tool-btn { flex: 1 0 auto; font-size: .7rem; padding: 6px 10px; }
    .note-content-section__heading small { display: none; }
    .block-quick-actions { opacity: 1 !important; transform: translateY(0) !important; pointer-events: auto !important; }
    .blocks-timeline { padding-left: 20px; }
    .block-spine-node { left: -20px; }
}
.modal-card::-webkit-scrollbar {
    width: 6px;
}

.modal-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
/* Chat İçi Mini Widget Kutusu */
.chat-widget-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-widget-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}


.chat-mini-card {
    margin-top: 10px;
    background: #fdfbf7; /* Yumuşak Fildişi / Krem Arka Plan */
    border: 1px solid #e2ded4;
    border-left: 4px solid var(--accent, #4a6b57); /* Sol Yeşil Vurgu Çizgisi 🍃 */
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-mini-card:hover {
    background: #ffffff;
    border-color: var(--accent, #4a6b57);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 107, 87, 0.15);
}

.chat-mini-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.chat-mini-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary, #2d3748); /* Koyu Füme Başlık */
    font-family: var(--font-heading, serif);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.chat-mini-card-btn-badge {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(74, 107, 87, 0.12);
    color: var(--accent, #4a6b57); /* Yaprak Yeşili Rozet */
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(74, 107, 87, 0.25);
    white-space: nowrap;
}

.chat-mini-card-sub {
    font-size: 0.82rem;
    color: var(--text-muted, #5a6b5c);
    font-weight: 500;

    /* Metnin alt satırlara geçerek tam görünmesini sağlar */
    white-space: normal;
    word-break: break-word; /* Uzun kelimelerin taşmasını önler */

    /* Artık gizlemeye ve üç noktaya gerek kalmadığı için bunları kaldırıyoruz */
    /* overflow: hidden; (Kaldırıldı veya unset yapıldı) */
    /* text-overflow: ellipsis; (Kaldırıldı) */
}

/* --- YATAY KAYDIRMA (CAROUSEL) STİLLERİ --- */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;  /* IE ve Edge için gizle */
    scrollbar-width: none;  /* Firefox için gizle */
}

/* Chrome, Safari ve Opera için kaydırma çubuğunu gizle */
.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 auto;
    width: 240px; /* Mini kartların sabit genişliği */
    scroll-snap-align: start;
    white-space: normal;
}

/* --- ZİHİN AĞI VE TREEMAP STİLLERİ --- */
.graph-tab-btn {
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.graph-tab-btn.active {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(74, 107, 87, 0.25);
}

.treemap-note-card:hover {
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 87, 0.12);
}
