/* Adsignal Pin Notes — gaya kustom di luar utility Tailwind */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Scrollbar tipis untuk area form modal */
#noteModal ::-webkit-scrollbar {
    width: 8px;
}

#noteModal ::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}

/* Preview catatan di papan: tinggi seragam dan isi terpotong */
.note-body {
    overflow: hidden;
    max-height: 140px;
}

/* Warna catatan: biru gelap efek shiny (kilau bergerak) */
.bg-navy-shiny {
    background: linear-gradient(110deg, #081633 0%, #0e2f6b 22%, #2177e0 50%, #0e2f6b 78%, #081633 100%);
    background-size: 220% 220%;
    animation: navyShine 3.2s ease-in-out infinite;
}

@keyframes navyShine {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Style premium: efek khusus */
.bg-gold-glow {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    box-shadow: 0 0 18px rgba(253, 160, 133, 0.55);
}

.bg-neon-purple {
    background: linear-gradient(135deg, #2b1055 0%, #7597de 100%);
    box-shadow: 0 0 18px rgba(117, 151, 222, 0.55);
}

.bg-aurora {
    background: linear-gradient(120deg, #00c9ff, #92fe9d, #00c9ff);
    background-size: 200% 200%;
    animation: auroraMove 5s ease infinite;
}

@keyframes auroraMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bg-fire {
    background: linear-gradient(135deg, #ff9966, #ff5e62, #ff9966);
    background-size: 200% 200%;
    animation: fireMove 4s ease infinite;
}

@keyframes fireMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Live preview: tinggi default kartu, isi panjang di-scroll di dalam kartu */
#previewCard .note-body {
    max-height: none;
    overflow-y: auto;
}

/* Samakan rendering editor dengan isi kartu pinnotes */
#inputContent {
    white-space: pre-line;
    overflow-wrap: break-word;
    word-break: break-word;
}

#inputTitle {
    overflow-wrap: break-word;
}

/* Animasi popup fly (melayang masuk dari atas) */
@keyframes flyIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fly-in {
    animation: flyIn .18s ease-out;
}

/* Pastikan kartu preview tidak ikut bertransformasi oleh hover kartu utama */
#previewCard {
    transform: none;
}

/* Ketebalan border per style */
.bw-1 { border-width: 1px; }
.bw-2 { border-width: 2px; }
.bw-3 { border-width: 3px; }
.bw-4 { border-width: 4px; }
.bw-5 { border-width: 5px; }
.bw-6 { border-width: 6px; }

/* Bentuk pin default dari model_type (dipakai bila tanpa gambar & tanpa head_class) */
.pin-shape {
    width: 26px;
    height: 26px;
    display: inline-block;
    background-color: #f59e0b;
    box-shadow: 0 0 0 1px rgba(120, 53, 15, .45), 0 0 0 3px rgba(255, 255, 255, .5);
}
.pin-shape-round { border-radius: 9999px; }
.pin-shape-square { width: 26px; height: 26px; border-radius: 2px; }
.pin-shape-diamond { width: 26px; height: 26px; border-radius: 2px; transform: rotate(45deg); }
.pin-shape-star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.pin-shape-heart {
    clip-path: polygon(50% 100%, 6% 48%, 0 26%, 16% 4%, 50% 20%, 84% 4%, 100% 26%, 94% 48%);
}
