/* File: assets/style.css */
/*
  File ini digunakan untuk menambahkan gaya CSS kustom yang tidak
  tercakup oleh Tailwind CSS atau untuk menimpa gaya default.
*/

/* Contoh: Memberi sedikit transisi pada semua elemen untuk efek yang lebih halus */
* {
    transition: all 0.2s ease-in-out;
}

/* Contoh: Menambahkan gaya khusus untuk tombol utama jika diperlukan */
.btn-primary {
    background-color: #4f46e5; /* Warna indigo-600 dari Tailwind */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #4338ca; /* Warna indigo-700 dari Tailwind */
}

/* Custom styles on top of Tailwind */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom form styles */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); /* Red shadow */
    border-color: #ef4444; /* Red-500 */
    outline: none;
}

/* Radio button custom color */
input[type="radio"]:checked {
    background-color: #ef4444;
    border-color: #ef4444;
}

input[type="radio"]:focus {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Fixed header styles */
.fixed {
    position: fixed;
    width: 100%;
}

/* Mobile menu styles */
.mobile-menu {
    background-color: white;
    border-top: 1px solid #e5e7eb;
    max-height: calc(100vh - 4rem); /* 4rem adalah tinggi header */
    overflow-y: auto;
}

/* Smooth transition for mobile menu */
.mobile-menu {
    transition: all 0.3s ease-in-out;
}

.mobile-menu.hidden {
    display: none;
}

/* Main content padding adjustment */
.pt-16 {
    padding-top: 4rem;
}

/* Mobile menu animations */
.mobile-menu {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.mobile-menu:not(.hidden) {
    opacity: 1;
    transform: scale(1);
}
