/* Yönetilebilir İpuçları / Tooltip sistemi — tamamen izole .pdt-* sınıf
   sistemi. Global body/root/A4 ölçülerine, sayfa margin/padding'ine veya
   herhangi bir global CSS token'ına dokunmaz; yalnızca app.css'in zaten
   tanımladığı tema değişkenlerini (--card-bg/--text/--border vb.) okur. */

.pdt-tip {
    position: fixed;
    z-index: 99990;
    max-width: 300px;
    min-width: 200px;
    background: var(--card-bg, #fff);
    color: var(--text, #151A23);
    border: 1px solid var(--border, #E2E6ED);
    border-radius: 10px;
    box-shadow: 0 8px 24px -6px rgba(15, 27, 46, .18);
    padding: 14px 16px;
    font-family: inherit;
    font-size: .84rem;
    line-height: 1.5;
}

.pdt-tip-arrow {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #E2E6ED);
    transform: rotate(45deg);
}
.pdt-tip[data-pdt-side="bottom"] .pdt-tip-arrow { top: -6px; left: 50%; margin-left: -5px; border-right: none; border-bottom: none; }
.pdt-tip[data-pdt-side="top"]    .pdt-tip-arrow { bottom: -6px; left: 50%; margin-left: -5px; border-left: none; border-top: none; }
.pdt-tip[data-pdt-side="right"]  .pdt-tip-arrow { left: -6px; top: 50%; margin-top: -5px; border-top: none; border-right: none; }
.pdt-tip[data-pdt-side="left"]   .pdt-tip-arrow { right: -6px; top: 50%; margin-top: -5px; border-bottom: none; border-left: none; }

.pdt-tip-title {
    font-weight: 700;
    font-size: .88rem;
    margin-bottom: 4px;
    padding-right: 20px;
    color: var(--text, #151A23);
}
.pdt-tip-body {
    color: var(--text-muted, #6B7688);
    white-space: pre-line;
    margin-bottom: 10px;
}
.pdt-tip-actions {
    display: flex;
    justify-content: flex-end;
}
.pdt-tip-ok {
    border: none;
    background: var(--primary, #C2540E);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
}
.pdt-tip-ok:hover { filter: brightness(.94); }
.pdt-tip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: var(--text-muted, #6B7688);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 5px;
}
.pdt-tip-close:hover { background: var(--border, #E2E6ED); color: var(--text, #151A23); }

@media (max-width: 480px) {
    .pdt-tip { max-width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: no-preference) {
    .pdt-tip { animation: pdtFadeIn .15s ease; }
}
@keyframes pdtFadeIn {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Admin hedef seçim modu */
.pdt-picker-hover {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px !important;
    border-radius: 4px;
    cursor: crosshair !important;
}
#pdtPickerBanner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 14px;
    font-size: .82rem;
    font-family: inherit;
}
#pdtPickerBanner button {
    border: 1px solid rgba(255, 255, 255, .3);
    background: transparent;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: .78rem;
    cursor: pointer;
    font-family: inherit;
}
#pdtPickerBanner button:hover { background: rgba(255, 255, 255, .12); }
