/* CSS untuk penataan halaman dasar */
html.dark {
    color-scheme: dark;
}

body {
    display: flex;
    justify-content: center;
    align-items: start; /* Mengubah dari center ke start agar konten dimulai dari atas */
    min-height: 100vh;
    padding: 2rem;
    background-color: #f3f4f6; /* Tailwind gray-100 */
    font-family: 'Inter', sans-serif;
}

html.dark body {
    background-color: #111827; /* Tailwind gray-900 */
}

/* CSS untuk komponen UI kustom */
.loader {
    border: 5px solid #e5e7eb; /* Tailwind gray-200 */
    border-top: 5px solid #6366f1; /* Indigo-500 */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

#generate-btn:disabled,
#tts-play-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
