:root {
    --bg-color: #f4f5f7;
    --dot-color: #d1d5db;
    --toolbar-bg: rgba(255, 255, 255, 0.9);
    --text-color: #1f2937;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --danger: #ef4444;
    --logo-color: rgba(148, 163, 184, 0.7);
    --scrollbar-size: 8px;
    --scrollbar-thumb: rgba(148, 163, 184, 0.55);
    --scrollbar-thumb-hover: rgba(100, 116, 139, 0.65);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

*::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    overflow: hidden;
    /* Dış pencere kaydırmasını kapatıyoruz */
    background-color: var(--bg-color);
    color: var(--text-color);
}

#lc-logo {
    position: fixed;
    top: 0px;
    right: 30px;
    width: 100px;
    aspect-ratio: 5 / 4;
    background-color: var(--logo-color);
    -webkit-mask-image: url('LC-logo.svg?v=2');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url('LC-logo.svg?v=2');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    transform: translateY(-6px);
    z-index: 1001;
    pointer-events: none;
    user-select: none;
}

/* Çalışma Alanı (Viewport) */
#workspace {
    width: 100vw;
    height: 100vh;
    overflow: auto;
    /* Tuvali kaydırmak için */
    position: relative;
    cursor: default;
    scrollbar-gutter: stable both-edges;
}

/* Ana Tuval (Canvas) - Çok geniş bir alan */
#canvas {
    width: 10000px;
    height: 10000px;
    background-color: var(--bg-color);
    background-image: radial-gradient(var(--dot-color) 1.5px, transparent 1.5px);
    background-size: 25px 25px;
    /* Noktalı grid yapısı */
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    transition: transform 0.1s ease-out;
}

#scroll-spacer {
    width: 10000px;
    height: 10000px;
    pointer-events: none;
    visibility: hidden;
}

/* Araç Çubuğu (Toolbar) */
#toolbar {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 70px;
    max-height: calc(100vh - 100px);
    background: var(--toolbar-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: visible;
    transition: height 0.18s ease, padding 0.18s ease;
}

.toolbar-toggle-btn {
    margin-bottom: 10px;
}

#toolbar.collapsed {
    height: 46px;
    padding: 8px 0;
    overflow: hidden;
}

#toolbar.collapsed .tool-btn:not(#toolbar-toggle),
#toolbar.collapsed .tool-divider,
#toolbar.collapsed .hidden-input {
    display: none;
}

#toolbar.collapsed #toolbar-toggle svg {
    transform: rotate(180deg);
}

.tool-btn {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4b5563;
    transition: all 0.2s;
    position: relative;
}

.tool-btn:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.tool-btn svg {
    width: 22px;
    height: 22px;
}

.tool-divider {
    width: 40px;
    height: 1px;
    background: #e5e7eb;
    margin: 5px 0 15px 0;
}

/* Tuval Üzerindeki Objeler */
.canvas-item {
    position: absolute;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.canvas-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.canvas-item.selected {
    box-shadow: 0 0 0 2px #4f46e5, 0 8px 22px rgba(79, 70, 229, 0.18);
}

#selection-marquee {
    position: absolute;
    border: 1px dashed #4f46e5;
    background: rgba(79, 70, 229, 0.14);
    pointer-events: none;
    z-index: 2000;
}

/* Sürükleme Çubuğu */
.drag-handle {
    height: 24px;
    background: rgba(0, 0, 0, 0.05);
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.canvas-item:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.delete-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.delete-btn:hover {
    color: var(--danger);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.postit-color-wrap {
    position: relative;
    display: inline-flex;
}

.postit-color-menu {
    position: absolute;
    top: 22px;
    right: 0;
    display: none;
    grid-template-columns: repeat(3, 16px);
    gap: 4px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    z-index: 2100;
}

.postit-color-menu.open {
    display: grid;
}

.postit-swatch {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(55, 65, 81, 0.25);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
}

.item-action-btn {
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    color: #6b7280;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.item-action-btn svg {
    width: 12px;
    height: 12px;
    display: block;
}

.item-action-btn:hover {
    border-color: #9ca3af;
    color: #374151;
}

.item-color-btn {
    color: #6b7280;
}

.item-text-size-btn {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.item-text-size-select {
    width: 58px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    color: #4b5563;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 0 2px;
    outline: none;
    cursor: pointer;
}

.item-text-size-select:focus {
    border-color: #9ca3af;
}


/* Post-it Stili */
.postit {
    min-width: 200px;
    min-height: 200px;
    resize: both;
    overflow: hidden;
    background: #fef08a;
    /* Varsayılan Sarı */
}

/* Metin Stili (Arka plansız) */
.text-node {
    min-width: 150px;
    min-height: 50px;
    background: transparent;
    box-shadow: none;
    resize: both;
    overflow: hidden;
}

.text-node:hover {
    box-shadow: 0 0 0 1px #cbd5e1;
}

/* Resim Stili */
.image-node {
    min-width: 100px;
    min-height: 100px;
    resize: both;
    overflow: hidden;
    background: transparent;
}

.image-node img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    /* Sürüklemeyi engellememesi için */
}

.arrow-node {
    min-width: 60px;
    min-height: 40px;
    resize: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.arrow-node:hover,
.arrow-node.selected {
    box-shadow: none !important;
}

.arrow-node .drag-handle {
    height: 18px;
    background: transparent;
    border-radius: 0;
    padding: 0 4px;
}

.arrow-node .drag-handle>span {
    display: none;
}

.arrow-body {
    position: relative;
    width: 100%;
    height: 100%;
}

.arrow-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.arrow-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #4338ca;
    background: #ffffff;
    transform: translate(-50%, -50%);
    cursor: crosshair;
    padding: 0;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.arrow-node:hover .arrow-handle,
.arrow-node.selected .arrow-handle {
    opacity: 1;
}

.item-arrow-color {
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0;
    background: #ffffff;
    cursor: pointer;
}

.item-arrow-color::-webkit-color-swatch-wrapper {
    padding: 0;
}

.item-arrow-color::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

.item-action-btn.active {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #eef2ff;
}

/* Log Frame */
.a4-frame {
    width: 620px;
    height: 877px;
    min-width: 620px;
    min-height: 877px;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    resize: none;
}

.a4-paper {
    flex: 1;
    min-height: 0;
    margin: 10px;
    border-radius: 3px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
    pointer-events: auto;
    display: flex;
    padding: 10px;
}

.a4-grid {
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 58px 86px minmax(180px, 1fr) 112px 112px;
    gap: 6px;
}

.a4-cell {
    border: 1px solid #e7e9ee;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    background: #fbfbfc;
}

.a4-label {
    font-size: 10pt;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #4b5563;
    padding: 6px 8px 5px 8px;
    border-bottom: 1px solid #e7e9ee;
    background: #f6f7f9;
    flex: 0 0 auto;
}

.a4-label-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.a4-label-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 1 1 auto;
}

.a4-input .a4-label-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
}

.a4-add-image-btn {
    border: none;
    background: #eef1f5;
    color: #4b5563;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 7.5pt;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.14s ease;
}

.a4-add-image-btn:hover {
    background: #e5eaf1;
    color: #374151;
}

.a4-paste-btn {
    border: none;
    background: #eef1f5;
    color: #4b5563;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 7.5pt;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.14s ease;
}

.a4-paste-btn:hover {
    background: #e5eaf1;
    color: #374151;
}

.a4-paste-btn.hidden {
    display: none;
}

.a4-input-split {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(130px, 1fr) minmax(145px, 1fr);
    gap: 6px;
    padding: 6px;
}

.a4-subcell {
    border: 1px solid #e7e9ee;
    border-radius: 4px;
    background: #ffffff;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.a4-prompt-panel {
    min-height: 110px;
}

.a4-attachment-panel {
    min-height: 140px;
    outline: none;
}

.a4-attachment-panel:focus-within,
.a4-attachment-panel:focus {
    border-color: #bfd4ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.a4-sublabel {
    font-size: 8pt;
    font-weight: 700;
    color: #4b5563;
    border-bottom: 1px solid #e7e9ee;
    background: #f8fafc;
    padding: 3px 6px;
    flex: 0 0 auto;
}

.a4-sublabel-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.a4-attach-btn {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 7.5pt;
    cursor: pointer;
}

.a4-attach-btn:hover {
    background: #f3f4f6;
}

.a4-attachment-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.a4-attachment-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px;
    background: #f9fafb;
    font-size: 8pt;
}

.a4-attachment-item.is-image {
    background: #ffffff;
}

.a4-attachment-main {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.a4-attachment-preview {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #eef2f7;
    flex: 0 0 auto;
}

.a4-attachment-filetile {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid #cfd7e3;
    background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8pt;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex: 0 0 auto;
}

.a4-attachment-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
}

.a4-attachment-submeta {
    color: #6b7280;
    font-size: 7.5pt;
}

.a4-attachment-item a {
    color: #2563eb;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.a4-attachment-item a:hover {
    text-decoration: underline;
}

.a4-attachment-remove {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.a4-attachment-remove:hover {
    color: #ef4444;
}

.a4-editable {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 8px;
    outline: none;
    font-size: 9pt;
    line-height: 1.35;
    color: #111827;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 100%;
    overscroll-behavior: contain;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: anywhere;
    hyphens: auto;
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

.a4-embedded-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 6px 0;
    border-radius: 4px;
}

.a4-editable table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 4px 0;
    background: #ffffff;
}

.a4-editable th,
.a4-editable td {
    border: 1px solid #d8dde6;
    padding: 4px 6px;
    vertical-align: top;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.a4-editable th {
    background: #f4f6fa;
    font-weight: 700;
}

.a4-single {
    white-space: pre-wrap;
    overflow-x: hidden;
    overflow-y: hidden;
}

.a4-stages {
    grid-column: 1 / span 2;
    grid-row: 2;
}

.a4-stages>.a4-editable {
    flex: 0 0 auto;
    min-height: 24px;
    max-height: 24px;
    overflow-x: hidden;
    overflow-y: hidden;
}

.a4-stage-presets {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 4px 8px 4px 8px;
    border-top: 1px solid #e7e9ee;
    background: #fcfcfd;
    scrollbar-width: thin;
}

.a4-stage-chip {
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 7.5pt;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.a4-stage-chip:hover {
    opacity: 0.8;
}

.a4-stage-chip.active {
    opacity: 1;
    border-color: rgba(55, 65, 81, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.a4-stage-chip.tone-empathize {
    background: rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

.a4-stage-chip.tone-define {
    background: rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.a4-stage-chip.tone-ideate {
    background: rgba(245, 158, 11, 0.22);
    color: #92400e;
}

.a4-stage-chip.tone-prototype {
    background: rgba(168, 85, 247, 0.2);
    color: #6d28d9;
}

.a4-stage-chip.tone-test {
    background: rgba(239, 68, 68, 0.18);
    color: #991b1b;
}

.a4-stage-chip.tone-communicate {
    background: rgba(20, 184, 166, 0.2);
    color: #115e59;
}

.a4-stages.has-selection .a4-stage-presets {
    display: none;
}

.a4-input {
    grid-column: 1;
    grid-row: 3;
    align-self: stretch;
    min-height: 0;
    max-height: 100%;
}

.a4-output {
    grid-column: 2;
    grid-row: 3;
    align-self: stretch;
    min-height: 0;
    max-height: 100%;
}

.a4-reflection {
    grid-column: 1 / span 2;
    grid-row: 4;
    min-height: 0;
    max-height: 100%;
}

.a4-decision {
    grid-column: 1 / span 2;
    grid-row: 5;
    min-height: 0;
    max-height: 100%;
}

.a4-manual {
    grid-column: 1 / span 2;
    grid-row: 3;
    display: none;
    min-height: 0;
    max-height: 100%;
}

.a4-grid.manual-mode .a4-manual {
    display: flex;
}

.a4-grid.manual-mode .a4-input,
.a4-grid.manual-mode .a4-output {
    display: none;
}

.a4-manual-content {
    flex: 1 1 0;
    min-height: 0;
    max-height: 100%;
    margin: 6px;
    border: 1px solid #e7e9ee;
    border-radius: 4px;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.a4-model-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    justify-content: flex-end;
}

.a4-model-label {
    font-size: 8pt;
    font-weight: 700;
    color: #6b7280;
}

.a4-model-edit {
    min-width: 78px;
    max-width: 100px;
    width: min(150px, 100%);
    height: 20px;
    padding: 2px 6px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    font-size: 8.5pt;
    line-height: 1.2;
    overflow: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.a4-add-file-btn {
    border: none;
    background: #eef1f5;
    color: #4b5563;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 7.5pt;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: all 0.14s ease;
}

.a4-add-file-btn:hover {
    background: #e5eaf1;
    color: #374151;
}

.a4-inline-attachment {
    color: #2563eb;
    text-decoration: underline;
    word-break: break-all;
}

.ai-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.ai-mode-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ai-mode-slider {
    width: 32px;
    height: 18px;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    transition: background 0.15s ease;
}

.ai-mode-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
    transition: transform 0.15s ease;
}

.ai-mode-input:checked+.ai-mode-slider {
    background: #2563eb;
}

.ai-mode-input:checked+.ai-mode-slider::before {
    transform: translateX(14px);
}

.ai-mode-text {
    font-size: 8pt;
    font-weight: 700;
    color: #4b5563;
}

/* İçerik Düzenlenebilir Alan */
.content-editable {
    flex-grow: 1;
    padding: 12px;
    outline: none;
    overflow-y: auto;
    word-wrap: break-word;
    font-size: 15px;
    line-height: 1.5;
}

/* Zoom Kontrolleri */
#zoom-controls {
    position: fixed;
    bottom: 170px;
    right: 20px;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    background: var(--toolbar-bg);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    z-index: 1000;
    transition: bottom 0.2s ease;
}

.zoom-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #4b5563;
}

.zoom-btn:hover {
    color: var(--primary);
}

#zoom-level {
    font-size: 14px;
    font-weight: 600;
    min-width: 45px;
    text-align: center;
}

#zoom-input {
    width: 38px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #515355;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 3px 2px;
    outline: none;
}

#zoom-input:focus {
    border-color: var(--primary);
}

.zoom-quick-btn {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    width: 20px;
    height: 20px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zoom-quick-btn svg {
    width: 12px;
    height: 12px;
}

#zoom-controls .zoom-btn {
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Map */
#minimap-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 140px;
    height: 140px;
    display: grid;
    grid-template-rows: 28px 1fr;
    row-gap: 8px;
    background: var(--toolbar-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 1000;
    transition: width 0.2s ease, height 0.2s ease, padding 0.2s ease;
    overflow: hidden;
}

#minimap-toggle {
    width: 100%;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: #e5e7eb;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    margin-bottom: 0;
}

#minimap-toggle:hover {
    background: #dbe1e8;
}

#minimap {
    position: relative;
    width: 100%;
    height: 100%;
    justify-self: center;
    align-self: center;
    border-radius: 8px;
    background-color: #eef0f3;
    background-image: radial-gradient(rgba(107, 114, 128, 0.45) 1px, transparent 1px);
    background-size: 10px 10px;
    overflow: hidden;
    cursor: pointer;
}

.minimap-item {
    position: absolute;
    border-radius: 2px;
    opacity: 0.8;
    min-width: 0;
    min-height: 0;
    resize: none;
    box-shadow: none;
}

.minimap-item.postit {
    background: #fef08a;
}

.minimap-item.text {
    background: rgba(79, 70, 229, 0.5);
}

.minimap-item.image {
    background: rgba(16, 185, 129, 0.55);
}

.minimap-item.a4frame {
    background: rgba(148, 163, 184, 0.7);
}

.minimap-item.arrow {
    background: rgba(79, 70, 229, 0.65);
}

#minimap-viewport {
    position: absolute;
    border: 2px solid var(--primary);
    background: rgba(79, 70, 229, 0.12);
    pointer-events: none;
    box-sizing: border-box;
}

#minimap-container.collapsed {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    height: 44px;
    padding: 8px;
}

#minimap-container.collapsed #minimap-toggle {
    margin-bottom: 0;
}

#minimap-container.collapsed #minimap {
    display: none;
}

#info-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1001;
}

#info-toggle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #cfd5df;
    background: #ffffff;
    color: #6b7280;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#info-toggle:hover {
    background: #f8fafc;
    color: #4b5563;
}

#info-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}

#info-panel {
    position: absolute;
    left: 0;
    bottom: 36px;
    width: min(520px, calc(100vw - 32px));
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #6b7280;
    font-size: 12px;
    line-height: 1.45;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    display: none;
}

#info-widget.open #info-panel {
    display: block;
}

#info-panel p {
    margin: 0 0 8px 0;
}

#info-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

#info-panel-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

#info-panel-logo {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    background-color: #4f46e5;
    -webkit-mask-image: url('LC-logo.svg?v=2');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url('LC-logo.svg?v=2');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

#info-panel-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

#info-panel-meta strong {
    font-size: 13px;
    color: #0f172a;
}

#info-version-label {
    font-size: 11px;
    color: #64748b;
    font-family: "Roboto Mono", monospace;
}

#info-version-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

#info-version-btn:hover {
    background: #eef2ff;
    border-color: #a5b4fc;
    color: #3730a3;
}

#info-intro {
    color: #475569;
}

#info-mail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
}

#info-mail:hover {
    text-decoration: underline;
}

#info-mail svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

body.version-history-open {
    overflow: hidden;
}

#version-history-modal {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#version-history-modal.open {
    display: flex;
}

#version-history-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(148, 163, 184, 0.18), transparent 42%),
        rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

#version-history-dialog {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    max-height: min(82vh, 920px);
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.28);
    color: #0f172a;
}

#version-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.96);
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.96), rgba(255, 255, 255, 0.78));
}

#version-history-brand {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

#version-history-copy {
    min-width: 0;
}

#version-history-eyebrow {
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #74849a;
}

#version-history-title {
    margin: 0;
    font-family: "Poppins";
    font-size: clamp(28px, 4.3vw, 44px);
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--logo-color);
    text-wrap: balance;
}

#version-history-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(203, 213, 225, 0.96);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

#version-history-close:hover {
    background: #ffffff;
    color: #0f172a;
}

#version-history-close svg {
    width: 18px;
    height: 18px;
}

#version-history-body {
    padding: 18px 22px 22px;
    overflow: auto;
    max-height: calc(min(82vh, 920px) - 104px);
    display: grid;
    gap: 12px;
}

.version-history-current {
    margin: 0 0 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #f8fafc;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.version-history-entry {
    padding: 16px 16px 14px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.version-history-version {
    margin: 0 0 10px;
    font-family: "Roboto Mono", monospace;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.version-history-notes {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.version-history-notes li+li {
    margin-top: 6px;
}

#delete-prompt {
    position: fixed;
    z-index: 2500;
    min-width: 180px;
    max-width: 260px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
    display: none;
}

#delete-prompt.open {
    display: block;
}

.delete-prompt-text {
    font-size: 12px;
    color: #374151;
    margin-bottom: 8px;
}

.delete-prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.delete-prompt-btn {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 11px;
    padding: 4px 8px;
    cursor: pointer;
}

.delete-prompt-btn.muted:hover {
    background: #f3f4f6;
}

.delete-prompt-btn.danger {
    border-color: #ef4444;
    color: #ef4444;
}

.delete-prompt-btn.danger:hover {
    background: #fef2f2;
}

/* İpucu (Tooltip) */
.tooltip {
    position: absolute;
    left: 60px;
    background: #1f2937;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.tool-btn:hover .tooltip {
    opacity: 1;
}

@media (max-width: 900px) {
    #toolbar {
        top: 10px;
        left: 10px;
        width: 60px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 10px 0;
        border-radius: 14px;
    }

    #toolbar.collapsed {
        height: 42px;
    }

    .tool-btn {
        width: 38px;
        height: 38px;
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .tool-btn svg {
        width: 19px;
        height: 19px;
    }

    .tool-divider {
        width: 30px;
        margin: 4px 0 10px 0;
    }
}

@media (max-width: 640px) {
    #lc-logo {
        right: 12px;
        width: 78px;
    }

    #toolbar {
        top: 10px;
        left: 10px;
        right: auto;
        bottom: auto;
        transform: none;
        width: 56px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 8px 0;
        border-radius: 14px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    #toolbar.collapsed {
        height: 40px;
        padding: 6px 0;
    }

    #toolbar::-webkit-scrollbar {
        width: 4px;
    }

    #toolbar::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.55);
        border-radius: 999px;
    }

    .tool-btn {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    .tool-divider {
        width: 28px;
        height: 1px;
        margin: 4px 0 8px 0;
        background: #e5e7eb;
    }

    .tooltip {
        display: none;
    }

    #version-history-modal {
        padding: 12px;
    }

    #version-history-dialog {
        width: min(100vw - 24px, 760px);
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    #version-history-header {
        align-items: flex-start;
        gap: 14px;
        padding: 18px 18px 12px;
    }

    #version-history-brand {
        display: block;
    }

    #version-history-body {
        padding: 14px 18px 18px;
        max-height: calc(100vh - 124px);
    }
}

/* Renk Seçici (Post-it için) */
.color-picker {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-dot.active {
    border-color: #1f2937;
}

/* Yükleme Ekranı (Gizli Inputs) */
.hidden-input {
    display: none;
}
