/* Şema modülü — BoschKatalog'tan port edildi.
   SemaUrun + YedekParcaDetay sayfaları kullanır.
   Hover popup interaktif: pointer-events:auto + mouse bridge ile sticky. */

/* Şema yüklenme spinner'ı */
.sema-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 16px;
}
.sema-spinner {
    width: 56px; height: 56px;
    border: 4px solid #e0e7ff;
    border-top-color: #1a237e;
    border-right-color: #3f51b5;
    border-radius: 50%;
    animation: sema-spin 0.9s linear infinite;
}
@keyframes sema-spin {
    to { transform: rotate(360deg); }
}
.sema-loading-text {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    animation: sema-pulse 1.4s ease-in-out infinite;
}
@keyframes sema-pulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

/* Geri butonu */
.sema-back-btn {
    background: #fff;
    color: #1a237e;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 150ms ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.sema-back-btn:hover {
    background: #f1f5f9;
    border-color: #1a237e;
    transform: translateX(-2px);
}

/* Üst başlık kartı */
.sema-urun-header {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sema-urun-header h1 {
    margin: 0 0 .35rem;
    color: #1a237e;
    font-size: 1.6rem;
    line-height: 1.2;
}
.sema-urun-header .ypn {
    display: inline-block;
    font-family: 'SF Mono', 'Menlo', monospace;
    background: #f1f5f9;
    color: #1a237e;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: .95rem;
    font-weight: 600;
    margin-left: .35rem;
}
.sema-urun-header .badge {
    display: inline-block;
    background: #e0e7ff;
    color: #1e3a8a;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .8rem;
    margin-right: .35rem;
}

/* Şema viewer (Bosch port) */
.sema-viewer {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    margin: 0 auto 16px;
    max-width: 1100px;
    overflow: hidden;
}
.sema-toolbar {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
}
.sema-toolbar .spacer { flex: 1; }
.sema-toolbar-info { margin-left: 10px; font-size: 13px; opacity: .9; }
.sema-toolbar .rz-button {
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    box-shadow: none !important;
    transition: background 150ms ease, transform 100ms ease;
}
.sema-toolbar .rz-button:hover {
    background: rgba(255,255,255,0.32) !important;
    border-color: rgba(255,255,255,0.5) !important;
    transform: translateY(-1px);
}
.sema-toolbar .rz-button .rz-button-icon-left,
.sema-toolbar .rz-button .rz-button-icon-only,
.sema-toolbar .rz-button .material-icons { color: #fff !important; }

.sema-image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: var(--ar, 4 / 3);
    background: #fff;
}
.sema-stage {
    position: absolute; inset: 0;
    transform-origin: 0 0;
    transition: transform 0.12s ease-out;
}
.sema-stage img {
    display: block;
    width: 100%; height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.poz-overlay {
    position: absolute;
    border: 1.5px dashed rgba(220, 38, 38, 0.45);
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    background: rgba(220, 38, 38, 0.04);
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.poz-overlay:hover {
    border: 2px solid #d32f2f;
    background: rgba(220, 38, 38, 0.22);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
    z-index: 5;
}

.sema-pager {
    display: flex; justify-content: center; align-items: center; gap: 4px;
    padding: 8px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}
.sema-pager .sayfa-btn {
    padding: 4px 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    color: #475569;
}
.sema-pager .sayfa-btn.aktif {
    background: #1a237e;
    color: #fff;
    border-color: #1a237e;
}

/* Statik tooltip overlay içinde (JS body'ye taşır) — her zaman gizli */
.poz-tooltip { display: none; }

/* Page-fullscreen */
.sema-viewer.sema-fullscreen-page {
    position: fixed;
    inset: 0;
    z-index: 9000;
    max-width: none;
    margin: 0;
    border-radius: 0;
    border: none;
    background: #fff;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
}
.sema-viewer.sema-fullscreen-page .sema-image-wrap {
    aspect-ratio: var(--ar, 4 / 3);
    height: 100%;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    align-self: center;
    justify-self: center;
}

/* Floating tooltip — sema-viewer.js body'ye ekler.
   pointer-events: auto → buton tıklanabilir (mouse bridge JS tarafında) */
.poz-tooltip-floating {
    display: none;
    position: fixed;
    z-index: 10000;
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 290px;
    max-width: 380px;
    font-size: 12px;
    line-height: 1.5;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    pointer-events: auto;
    animation: poz-tooltip-in 140ms cubic-bezier(.2,.8,.2,1);
}
@keyframes poz-tooltip-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.poz-tooltip-floating .poz-tooltip-row {
    display: flex; gap: 12px; align-items: flex-start;
}
.poz-tooltip-floating .poz-thumb {
    width: 90px; height: 90px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    flex-shrink: 0;
}
.poz-tooltip-floating .poz-tooltip-meta {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;   /* alt elemanlar (aciklama/stok-info/actions) düz alt alta gelsin */
}
.poz-tooltip-floating .poz-aciklama,
.poz-tooltip-floating .poz-stok-info { display: block; }
.poz-tooltip-floating .poz-tooltip-header {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.poz-tooltip-floating .poz-badge {
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.poz-tooltip-floating .poz-title {
    font-size: 14px;
    color: #1a237e;
    font-weight: 700;
    line-height: 1.3;
}
.poz-tooltip-floating .poz-ypn {
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 12.5px;
    font-weight: 600;
    color: #1a237e;
    background: #f1f5f9;
    padding: 5px 8px;
    border-radius: 5px;
    margin: 6px 0;
    word-break: break-all;
    border: 1px solid #e2e8f0;
}
.poz-tooltip-floating .poz-tooltip-rows {
    display: flex; flex-direction: column; gap: 3px;
    margin-top: 4px;
}
.poz-tooltip-floating .poz-tooltip-meta-row {
    display: flex; gap: 8px; align-items: baseline;
    font-size: 11px;
}
.poz-tooltip-floating .poz-tooltip-meta-row > span {
    color: #9ca3af;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    min-width: 38px;
    font-weight: 600;
}
.poz-tooltip-floating .poz-tooltip-meta-row > b {
    color: #1f2937;
    font-weight: 600;
}
.poz-tooltip-floating .poz-aciklama {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: #475569;
    font-style: italic;
}

/* B2B özel: stok + buton bloğu (popup alt kısmı) */
.poz-tooltip-floating .poz-stok-info {
    margin-top: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.poz-tooltip-floating .poz-stok-info .poz-fiyat {
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    display: block;
    margin-bottom: 2px;
}
.poz-tooltip-floating .poz-stok-info .poz-bakiye {
    font-size: 11px;
    color: #475569;
}
.poz-tooltip-floating .poz-stok-info .poz-no-stok {
    font-size: 11px;
    color: #dc2626;
    font-weight: 600;
}
.poz-tooltip-floating .poz-actions {
    display: flex; gap: 6px; margin-top: 8px;
}
.poz-tooltip-floating .poz-btn {
    flex: 1;
    padding: 7px 10px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 120ms ease, transform 100ms ease;
    color: #fff;
}
.poz-tooltip-floating .poz-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.poz-tooltip-floating .poz-btn.poz-btn-sepet { background: #1a237e; }
.poz-tooltip-floating .poz-btn.poz-btn-talep { background: #dc2626; }

/* Yedek parça tablosu — BoschKatalog data-table */
.sema-data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    margin-top: .5rem;
}
.sema-data-table th, .sema-data-table td {
    padding: .55rem .8rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 12.5px;
}
.sema-data-table th {
    background: #1a237e;
    color: #fff;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: .02em;
}
.sema-data-table tr:hover td { background: #f9fafb; }
.sema-data-table tr:target td { background: #fff59d; transition: background .5s; }
.sema-data-table .muted { color: #94a3b8; }
.sema-data-table .ypn-cell {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-weight: 600;
    color: #1a237e;
}
.sema-data-table .kullanim-link {
    display: inline-flex; align-items: center; gap: 4px;
    background: #eef2ff;
    color: #1a237e;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 5px;
    border: 1px solid #c7d2fe;
    transition: all 120ms ease;
}
.sema-data-table .kullanim-link:hover {
    background: #1a237e;
    color: #fff;
    border-color: #1a237e;
    transform: translateY(-1px);
}
.sema-data-table .kullanim-link:hover .material-icons { color: #fff; }

/* Tabloda Sepete Ekle / Talep butonu */
.yp-btn {
    width: 32px; height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: filter 120ms ease, transform 100ms ease;
    color: #fff;
    line-height: 1;
}
.yp-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.yp-btn-sepet { background: #1a237e; }
.yp-btn-talep { background: #dc2626; }

/* Poz no filter input */
.poz-search { margin: .6rem 0 .4rem; }
.poz-search input {
    padding: .55rem .75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 320px;
    font-size: 13px;
    max-width: 100%;
}
.poz-search input:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.12);
}

/* Şemalar arama grid butonları (Sepet / Talep / Şema) — modern tooltip ile uyumlu */
.sema-grid-btn {
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    transition: filter 120ms ease, transform 100ms ease;
    min-width: 36px;
}
.sema-grid-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.sema-grid-btn-sepet { background: #1a237e; }
.sema-grid-btn-talep { background: #dc2626; }
.sema-grid-btn-sema  { background: #1a237e; padding: 6px 14px; }

/* "Şemayı Aç" buton (YedekParcaDetay tablosu) */
.btn-sema-ac {
    display: inline-flex; align-items: center; gap: 4px;
    background: #1a237e;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: filter 120ms ease, transform 100ms ease;
}
.btn-sema-ac:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }


/* ───── Şema Tasarım Modu ───── */
.designer-mode { user-select: none; }
.designer-mode.mode-draw .sema-stage { cursor: crosshair; }
.designer-mode.mode-select .sema-stage { cursor: default; }

.designer-mode .poz-overlay {
    cursor: move;
    background: rgba(59, 130, 246, 0.10);
    border: 1.5px solid rgba(59, 130, 246, 0.55);
}
.designer-mode .poz-overlay:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: #2563eb;
}
.designer-mode .poz-overlay.selected {
    background: rgba(34, 197, 94, 0.18);
    border: 2px solid #16a34a;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    z-index: 10;
}

.designer-mode .designer-handle {
    position: absolute;
    width: 10px; height: 10px;
    background: #fff;
    border: 2px solid #16a34a;
    border-radius: 2px;
    z-index: 11;
}
.designer-mode .dh-nw { top: -6px; left: -6px; cursor: nwse-resize; }
.designer-mode .dh-n  { top: -6px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.designer-mode .dh-ne { top: -6px; right: -6px; cursor: nesw-resize; }
.designer-mode .dh-e  { top: 50%; right: -6px; transform: translateY(-50%); cursor: ew-resize; }
.designer-mode .dh-se { bottom: -6px; right: -6px; cursor: nwse-resize; }
.designer-mode .dh-s  { bottom: -6px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.designer-mode .dh-sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.designer-mode .dh-w  { top: 50%; left: -6px; transform: translateY(-50%); cursor: ew-resize; }

.designer-ghost {
    position: absolute;
    border: 2px dashed #ee0979;
    background: rgba(238, 9, 121, 0.12);
    pointer-events: none;
    z-index: 12;
}

.poz-label-mini {
    position: absolute;
    top: 2px; left: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #1e3a8a;
    background: rgba(255, 255, 255, 0.85);
    padding: 0 4px;
    border-radius: 3px;
    pointer-events: none;
    line-height: 14px;
}
.designer-mode .poz-overlay.selected .poz-label-mini { color: #14532d; }

/* Tasarım sayfası düzeni */
.tasarim-page { display: flex; flex-direction: column; height: calc(100vh - 60px); }
.tasarim-toolbar {
    display: flex; gap: 10px; align-items: center;
    padding: 8px 14px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.tasarim-toolbar .crumb { color: #475569; font-size: 13px; }
.tasarim-toolbar .crumb strong { color: #0f172a; }
.tasarim-toolbar .spacer { flex: 1; }

.tasarim-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    flex: 1; min-height: 0;
}
.tasarim-pages, .tasarim-props {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    padding: 12px;
}
.tasarim-props { border-right: 0; border-left: 1px solid #e2e8f0; }
.tasarim-canvas {
    background: #f1f5f9;
    overflow: auto;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 20px;
}
.tasarim-canvas .sema-image-wrap { max-width: min(100%, 1200px); background: #fff; border: 1px solid #cbd5e1; }

.sayfa-card {
    display: flex; gap: 8px; align-items: center;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 120ms ease;
}
.sayfa-card:hover { border-color: #94a3b8; }
.sayfa-card.aktif { border-color: #1a237e; box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.18); }
.sayfa-card img { width: 60px; height: 60px; object-fit: contain; background: #f1f5f9; border-radius: 4px; }
.sayfa-card .meta { flex: 1; font-size: 12px; color: #475569; }
.sayfa-card .meta strong { display: block; color: #0f172a; font-size: 13px; }

.tasarim-props .ppanel-empty {
    color: #94a3b8; font-size: 13px;
    background: #fff; border: 1px dashed #cbd5e1;
    border-radius: 6px; padding: 16px; text-align: center;
}
.tasarim-props .ppanel-section {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 6px; padding: 12px; margin-bottom: 10px;
}
.tasarim-props .ppanel-label {
    font-size: 11px; font-weight: 700; color: #475569;
    text-transform: uppercase; letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.dirty-badge {
    display: inline-block; padding: 2px 8px;
    background: #fef3c7; color: #78572b;
    border: 1px solid #fde68a; border-radius: 10px;
    font-size: 11px; font-weight: 700;
}

/* Native InputFile yerine güzel Radzen-stili label */
.btn-dosya-sec {
    display: inline-flex; align-items: center; gap: 6px;
    background: #1a237e;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 120ms ease, transform 100ms ease;
    border: none;
    line-height: 1.3;
}
.btn-dosya-sec:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-dosya-sec:active { transform: translateY(0); }
.btn-dosya-sec.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-dosya-sec input[type=file] {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.btn-dosya-sec .material-icons { font-size: 16px; color: #fff; }

/* Alet kodu rozet — tasarım toolbar başlığında */
.alet-rozet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    color: #fff;
    border-radius: 14px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.4px;
    box-shadow: 0 1px 3px rgba(26, 35, 126, 0.25);
}
.alet-rozet::before {
    content: "🔧";
    font-size: 12px;
    filter: grayscale(0.2);
}
.tasarim-toolbar .crumb-unvan {
    color: #0f172a;
    font-weight: 600;
    font-size: 13px;
}

/* Tasarım sayfasındaki yedek parça listesi */
.tasarim-yp-list {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.tasarim-yp-list .yp-list-header {
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    display: flex; justify-content: space-between; align-items: center;
}
.tasarim-yp-list .yp-list-header .count-badge {
    background: #1a237e; color: #fff;
    padding: 2px 10px; border-radius: 10px;
    font-size: 11px; font-weight: 700;
}
.tasarim-yp-list .yp-row {
    display: grid;
    grid-template-columns: 60px 60px 100px 1fr 100px 70px;
    gap: 10px;
    align-items: center;
    padding: 8px 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 12.5px;
    cursor: pointer;
    transition: background 100ms ease;
}
.tasarim-yp-list .yp-row:hover { background: #f8fafc; }
.tasarim-yp-list .yp-row.selected {
    background: rgba(34, 197, 94, 0.08);
    border-left: 3px solid #16a34a;
    padding-left: 11px;
}
.tasarim-yp-list .yp-row.unassigned {
    background: rgba(220, 38, 38, 0.04);
    border-left: 3px solid #dc2626;
    padding-left: 11px;
}
.tasarim-yp-list .yp-row .poz-mini {
    background: #1a237e; color: #fff;
    padding: 2px 8px; border-radius: 4px;
    font-family: 'SF Mono', Menlo, monospace;
    font-weight: 700; font-size: 11.5px;
    text-align: center;
}
.tasarim-yp-list .yp-row .yp-thumb {
    width: 48px; height: 48px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}
.tasarim-yp-list .yp-row .yp-thumb-empty {
    width: 48px; height: 48px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8;
    font-size: 18px;
}
.tasarim-yp-list .yp-row .yp-no {
    font-family: 'SF Mono', Menlo, monospace;
    font-weight: 600;
    color: #1a237e;
    font-size: 12px;
}
.tasarim-yp-list .yp-row .yp-tanim { color: #475569; }
.tasarim-yp-list .yp-row .yp-adet { color: #94a3b8; font-size: 11px; }
.tasarim-yp-list .yp-row .yp-actions {
    display: flex; gap: 4px; justify-content: flex-end;
}
.tasarim-yp-list .yp-list-empty {
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* Tasarım sayfası boş-durum bilgilendirme kartları (Groq/Telegram tarzı) */
.tasarim-info-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--card-accent, #7c3aed);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    padding: 18px 20px;
    max-width: 560px;
    width: 100%;
}
.tasarim-info-card .ti-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px;
}
.tasarim-info-card .ti-header .ti-emoji {
    font-size: 24px;
    flex-shrink: 0;
}
.tasarim-info-card .ti-header .ti-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.tasarim-info-card .ti-tip {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12.5px;
    color: #78572b;
    line-height: 1.5;
    margin-bottom: 10px;
}
.tasarim-info-card .ti-tip b { color: #1a237e; }
.tasarim-info-card .ti-steps {
    list-style: none;
    padding: 0; margin: 0;
    counter-reset: ti-step;
}
.tasarim-info-card .ti-steps li {
    counter-increment: ti-step;
    padding: 6px 0 6px 32px;
    position: relative;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.5;
}
.tasarim-info-card .ti-steps li::before {
    content: counter(ti-step);
    position: absolute;
    left: 0; top: 6px;
    width: 22px; height: 22px;
    background: var(--card-accent, #7c3aed);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.tasarim-info-card .ti-steps li b { color: #0f172a; }
.tasarim-info-card .ti-steps li code {
    background: #f1f5f9;
    color: #1e40af;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 11.5px;
}

/* Renk varyantları */
.tasarim-info-card.accent-violet { --card-accent: #7c3aed; }
.tasarim-info-card.accent-blue   { --card-accent: #2563eb; }
.tasarim-info-card.accent-green  { --card-accent: #16a34a; }
.tasarim-info-card.accent-amber  { --card-accent: #d97706; }

/* Aside aç/kapat — kapalıyken aside tamamen gizlenir, canvas tek kolon olur */
.tasarim-body { transition: grid-template-columns 220ms ease; }
.tasarim-body.aside-collapsed { grid-template-columns: 1fr !important; }
.tasarim-body.aside-collapsed > aside { display: none !important; }

.tasarim-aside-toggle {
    position: relative;
    margin-bottom: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    background: #1a237e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 120ms ease;
}
.tasarim-aside-toggle:hover { filter: brightness(1.15); }
.tasarim-aside-toggle .material-icons { font-size: 14px; color: #fff; }

/* Tuvaldeki sticky aç butonu (aside kapalıyken) */
.tasarim-canvas-expand {
    position: sticky; top: 8px; left: 8px;
    z-index: 5;
    align-self: flex-start;
    margin-right: -36px;
    width: 36px; height: 36px;
    border-radius: 0 8px 8px 0;
    background: #1a237e;
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
    transition: filter 120ms ease;
}
.tasarim-canvas-expand:hover { filter: brightness(1.15); }
.tasarim-canvas-expand .material-icons { color: #fff; font-size: 20px; }

/* Tek aside birleşik (sayfalar + props) */
.tasarim-pages-merged {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    padding: 12px;
    display: flex; flex-direction: column; gap: 12px;
}
.tasarim-section-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}
.tasarim-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

/* Resim büyütme (lightbox) — tooltip + grid + detay sayfasındaki resimler için */
.img-zoom-trigger {
    position: relative;
    cursor: zoom-in;
    display: inline-block;
}
.img-zoom-trigger::after {
    content: "🔍";
    position: absolute;
    bottom: 4px; right: 4px;
    width: 22px; height: 22px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 120ms ease;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.img-zoom-trigger:hover::after { opacity: 1; }

.img-lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.88);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    cursor: zoom-out;
    animation: ilb-fade 160ms ease;
}
@keyframes ilb-fade { from { opacity: 0; } to { opacity: 1; } }
.img-lightbox-overlay img {
    max-width: 95vw; max-height: 95vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: #fff;
}
.img-lightbox-close {
    position: absolute; top: 14px; right: 18px;
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none; border-radius: 50%;
    font-size: 18px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ───── Resim kırpma + upload — birden fazla dialog'da paylaşılır (yp-/talep-) ───── */
.yp-upload-btn {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 8px;
    font-weight: 600; font-size: 14px;
    cursor: pointer; overflow: hidden;
    align-self: flex-start; border: none;
    text-decoration: none;
    transition: filter 120ms ease;
}
.yp-upload-btn:hover { filter: brightness(1.07); }
.yp-btn-primary {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    color: #fff; box-shadow: 0 2px 6px rgba(33,147,176,0.30);
}
.yp-btn-paste {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
    color: #fff; box-shadow: 0 2px 6px rgba(74,0,224,0.30);
}
.yp-btn-crop {
    background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0;
}

/* Crop overlay (cropper.js) */
.yp-crop-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9500;
    display: flex; align-items: center; justify-content: center;
    padding: 12px;
}
.yp-crop-dialog {
    background: #fff; border-radius: 16px;
    max-width: 1000px; width: 100%; max-height: 95vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,0.40);
}
.yp-crop-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}
.yp-close-btn {
    background: transparent; border: none; font-size: 18px; color: #64748b;
    cursor: pointer; padding: 4px 10px; border-radius: 6px;
}
.yp-close-btn:hover { background: #f1f5f9; }
.yp-crop-toolbar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px; background: #fafbfc;
    border-bottom: 1px solid #f1f5f9; flex-wrap: wrap;
}
.yp-crop-toolbar-label { font-size: 12px; font-weight: 700; color: #475569; margin-right: 4px; }
.yp-aspect-buttons {
    display: flex; gap: 2px;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 6px; overflow: hidden;
}
.yp-aspect-buttons button {
    background: transparent; border: none; padding: 6px 12px;
    font-size: 12px; cursor: pointer; color: #475569;
    transition: background 0.15s;
}
.yp-aspect-buttons button:hover { background: #f1f5f9; }
.yp-aspect-buttons button.active {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    color: #fff; font-weight: 600;
}
.yp-tool-btn {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
    padding: 6px 10px; font-size: 14px; cursor: pointer;
    transition: background 0.15s; min-width: 40px;
}
.yp-tool-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.yp-crop-body {
    flex: 1; background: #1e293b;
    min-height: 320px; max-height: 65vh;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.yp-crop-body img { display: block; max-width: 100%; max-height: 65vh; }
.yp-crop-footer {
    display: flex; justify-content: flex-end; align-items: center; gap: 8px;
    padding: 14px 20px; border-top: 1px solid #f1f5f9; background: #fafbfc;
}
