/* Custom Base Styles */
body {
    font-family: 'Noto Sans TC', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

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

/* Layout Utilities */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    /* p-4 equivalent */
}

@media (min-width: 1024px) {
    .page-container {
        padding: 2rem;
        /* lg:p-8 */
    }
}

/* Component Styles */
.card {
    background-color: white;
    border-radius: 0.75rem;
    /* rounded-xl */
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border: 1px solid #e2e8f0;
    /* slate-200 */
    padding: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    /* rounded-lg */
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
    cursor: pointer;
}

.btn-primary {
    background-color: #e11d48;
    /* rose-600 */
    color: white;
}

.btn-primary:hover {
    background-color: #be123c;
    /* rose-700 */
}

.btn-secondary {
    background-color: white;
    color: #475569;
    /* slate-600 */
    border: 1px solid #e2e8f0;
    /* slate-200 */
}

.btn-secondary:hover {
    background-color: #f8fafc;
    /* slate-50 */
}

/* Toast Notification */
#toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
    min-width: 300px;
}

.toast.success {
    border-left-color: #22c55e;
}

/* green-500 */
.toast.error {
    border-left-color: #ef4444;
}

/* red-500 */
.toast.info {
    border-left-color: #3b82f6;
}

/* blue-500 */

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}