/* ======================== */
/* CSS UTAMA (Asli)        */
/* ======================== */

/* Reset dan Font */
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-image: url('https://wallpapercave.com/wp/wp5155765.jpg'), linear-gradient(to bottom, #ffffff, #fef2f2);
    background-size: cover;
    background-position: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1f2937;
}

/* Utility Classes (Asli) */
.min-h-screen { min-height: 100vh; }
.p-6 { padding: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-4 { gap: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.object-contain { object-fit: contain; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.bg-white { background-color: white; }
.p-2 { padding: 0.5rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-extrabold { font-weight: 800; }
.text-red-700 { color: #b91c1c; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-gray-700 { color: #4b5563; }
.ml-auto { margin-left: auto; }
.gap-2 { gap: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.rounded-full { border-radius: 9999px; }
.bg-red-700 { background-color: #b91c1c; }
.text-white { color: white; }
.border { border-width: 1px; }
.rounded-2xl { border-radius: 1rem; }
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-semibold { font-weight: 600; }
.text-red-600 { color: #dc2626; }
.mb-4 { margin-bottom: 1rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.block { display: block; }
.font-medium { font-weight: 500; }
.w-full { width: 100%; }
.rounded-md { border-radius: 0.375rem; }
.border-gray-300 { border-color: #d1d5db; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.focus\:ring-red-500:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.4);
}
.mt-1 { margin-top: 0.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-gray-500 { color: #6b7280; }
.mt-3 { margin-top: 0.75rem; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.bg-gray-50 { background-color: #f9fafb; }
.h-28 { height: 7rem; }
.object-cover { object-fit: cover; }
.absolute { position: absolute; }
.top-1 { top: 0.25rem; }
.right-1 { right: 0.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.p-3 { padding: 0.75rem; }
.bg-red-50 { background-color: #fef2f2; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.rounded { border-radius: 0.25rem; }
.justify-center { justify-content: center; }
.mt-2 { margin-top: 0.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.text-center { text-align: center; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.p-4 { padding: 1rem; }
.text-gray-600 { color: #4b5563; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.bg-red-100 { background-color: #fee2e2; }
.h-40 { height: 10rem; }
.mt-10 { margin-top: 2.5rem; }

/* Responsive grid */
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-1 { grid-column: span 1 / span 1; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:gap-8 { gap: 2rem; }
}

/* Tab Button Styling */
.tab-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #ffffff;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}
.tab-btn:hover { color: #d4d4d4; }
.tab-btn.active {
    color: #f1f1f1;
    border-color: #dc2626;
}

/* Tab Content Container */
#content-container {
    overflow: hidden;
    position: relative;
    transition: height 0.3s ease;
}
.tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.4s ease, opacity 0.4s ease;
    visibility: hidden;
    opacity: 0;
}
.tab-content.active {
    visibility: visible;
    opacity: 1;
    position: static;
}

/* Empty Message */
#emptyMessage { display: none; }

/* Header Slideshow */
.header-responsive {
    position: relative;
    overflow: hidden;
    height: 250px;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.header-slideshow-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.slideshow-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideshow-fade 16s infinite ease-in-out;
    will-change: opacity;
    z-index: 0;
}
.slideshow-image:nth-child(1) { animation-delay: 0s; }
.slideshow-image:nth-child(2) { animation-delay: 4s; object-position: center 20%; }
.slideshow-image:nth-child(3) { animation-delay: 8s; }
.slideshow-image:nth-child(4) { animation-delay: 12s; }

@keyframes slideshow-fade {
    0%, 100% { opacity: 0; z-index: 0; }
    5%, 25% { opacity: 1; z-index: 1; }
    30%, 95% { opacity: 0; z-index: 0; }
}

@media (max-width: 767px) {
    body {
        background-image: url('https://img.okezone.com/content/2023/06/14/33/2830747/lirik-lagu-alololo-dari-difarina-indra-adella-yang-trending-di-youtube-ivaavz2zEQ.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

#splashIntro.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}



/* Header Content */
.header-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.2));
    height: 100%;
}
.header-content h1 { color: white; }

/* Mobile Styling */
@media (max-width: 767px) {
    .header-responsive {
        height: 200px;
        border-radius: 0.75rem;
    }
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 1rem;
        gap: 0.5rem;
        background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        justify-content: center;
    }
    .header-content img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: white;
        padding: 5px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        transition: transform 0.3s ease;
    }
    .header-content img:hover { transform: scale(1.05); }
    .header-content h1 {
        font-size: 1.5rem;
        color: white;
    }
    .header-content p {
        font-size: 0.75rem;
        color: #f3f4f6;
    }
}

/* ======================== */
/* PENAMBAHAN BARU          */
/* ======================== */

/* Form Container agar rapi dan tidak tumpang tindih */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
}

/* Styling Kolom Input yang Lebih Menarik */
.form-input {
    display: block;
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1f2937;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: #dc2626; /* border-color yang sama dengan text-red-600 */
    outline: 0;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25); /* Menggunakan warna merah dengan sedikit transparansi */
}

/* Khusus untuk textarea */
textarea.form-input {
    min-height: 8rem; /* Memberikan tinggi minimum untuk textarea */
    resize: vertical;
}

/* Wrapper tombol supaya sejajar dan rapi */
.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Styling Tombol Utama (Unggah) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: #dc2626; /* bg-red-600 */
    border: 1px solid #dc2626;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: #b91c1c; /* Warna sedikit lebih gelap saat di-hover */
    border-color: #b91c1c;
    transform: translateY(-2px); /* Efek "naik" saat di-hover */
}

.btn-primary:active {
    transform: translateY(0); /* Kembali ke posisi semula saat ditekan */
}

/* Styling Tombol Sekunder (Unduh) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #dc2626;
    background-color: transparent;
    border: 1px solid #dc2626;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: #fee2e2; /* bg-red-100 */
    color: #b91c1c;
    border-color: #b91c1c;
}
