/* Custom styles layered on top of Tailwind (loaded via CDN in the layout). */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, 0.4); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.6); }

.skeleton {
    background: linear-gradient(90deg, rgba(148,163,184,.15) 25%, rgba(148,163,184,.3) 37%, rgba(148,163,184,.15) 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 0.5rem;
}
@keyframes skeleton-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.sidebar-scroll::-webkit-scrollbar { width: 6px; }

[x-cloak] { display: none !important; }

.ai-generator-page {
    --ai-ink: #162033;
    --ai-accent: #3159d8;
}

.ai-generator-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, .06);
}

.ai-generator-page .ai-panel {
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ai-generator-page .ai-panel:hover {
    border-color: rgba(49, 89, 216, .28);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

@media (prefers-reduced-motion: no-preference) {
    .ai-generator-hero { animation: ai-hero-in .45s ease-out both; }
    .ai-generator-page .ai-panel { animation: ai-panel-in .5s ease-out both; }
}

@keyframes ai-hero-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ai-panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media print {
    .no-print { display: none !important; }
    body { background: #fff !important; }
}
