/* * SuperAgriApp Global Styles - Radical Edition
 * Digunakan untuk animasi custom, override browser default, dan efek visual khusus.
 */

/* --- 1. BASE SETUP --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Mencegah scroll horizontal tidak sengaja di mobile */
}

/* Pastikan container React memenuhi layar */
#root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- 2. UTILITY: HIDE SCROLLBAR --- */
/* Menyembunyikan batang scroll tapi tetap bisa di-scroll (untuk carousel/list horizontal) */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* --- 3. ANIMATIONS --- */

/* Fade In Up (Efek masuk halaman yang halus) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Float Animation (Untuk Blob Background di Login) */
@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 40px); }
    100% { transform: translate(0, 0); }
}

.blob-anim {
    animation: float 10s infinite ease-in-out;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* Tilt Effect (Untuk Widget Bio-Asset Holografik) */
@keyframes tilt {
    0%, 50%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(0.5deg);
    }
    75% {
        transform: rotate(-0.5deg);
    }
}

.animate-tilt {
    animation: tilt 10s infinite linear;
}

/* Pulse Glow (Untuk indikator Live/Active) */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.animate-pulse-glow {
    animation: pulseGlow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --- 4. FORM ELEMENTS CUSTOMIZATION --- */

/* Custom Range Slider (Jika dipakai di kontrol IoT) */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

/* Thumb (Tombol geser) */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #10b981; /* Emerald 500 */
    cursor: pointer;
    margin-top: -7px; /* Menyesuaikan posisi tengah track */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    border: 2px solid #ffffff;
}

input[type=range]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Track (Jalur geser) */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e2e8f0; /* Slate 200 */
    border-radius: 2px;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 2px;
}

/* --- 5. IOS SPECIFIC FIXES --- */
/* Mencegah zoom saat input focus di iPhone */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px;
    }
}