/* =============================================
   Untukmu — Custom CSS
   Tailwind CSS mengurus utility classes.
   File ini untuk style yang tidak bisa
   ditangani Tailwind saja.
   ============================================= */

/* Sembunyikan elemen Alpine sebelum di-init */
[x-cloak] { display: none !important; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
.dark ::-webkit-scrollbar-thumb { background: #4b5563; }

/* Line clamp untuk text overflow */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-overflow: hidden;
    overflow: hidden;
}

/* Transisi halus */
*, *::before, *::after {
    transition-property: background-color, border-color, color, opacity, box-shadow;
    transition-duration: 150ms;
    transition-timing-function: ease-in-out;
}

/* Override transition untuk transform (hover effect) */
.group:hover .group-hover\:scale-105 { transition-duration: 300ms; }

/* Focus ring konsisten */
:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* File input styling */
input[type="file"] {
    cursor: pointer;
}

/* Color picker */
input[type="color"] {
    padding: 2px;
    cursor: pointer;
}

/* Audio player */
audio {
    width: 100%;
    height: 32px;
}

/* Admin sidebar 750 bg */
.dark\:bg-gray-750 { background-color: #2d3748; }

/* Hide scrollbar tapi tetap bisa scroll (mobile tab pills) */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* Gradient text helper */
.gradient-text {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover shadow */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Landing page host - full screen */
#page-content {
    min-height: 100vh;
}

/* Floating bar padding bottom */
body:has(#page-content) {
    padding-bottom: 80px;
}

/* Animasi fade in */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}
