
/*---- 加上 !important ----*/
.px-5 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

/*---- 加上 !important ----*/
.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* Flashcard 3D Effect */
.backface-hidden {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flipped {
    transform: rotateY(180deg);
}

/* Custom Scrollbar for aesthetics */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #c7c7c7; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8; 
}

/* Quiz Form Control Styles */
.quiz-item {
    transition: all 0.3s ease;
}

.quiz-item.correct {
    background-color: #f0fdf4 !important; /* green-50 */
    border-color: #86efac !important; /* green-300 */
}

.quiz-item.incorrect {
    background-color: #fef2f2 !important; /* red-50 */
    border-color: #fca5a5 !important; /* red-300 */
}

/* Make radio buttons and checkboxes larger for better UX */
input[type="radio"], input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #4f46e5; /* Indigo-600 */
}

input[type="text"], input[type="number"], textarea, select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

input[type="text"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
    outline: 2px solid #4f46e5;
    border-color: transparent;
}

/* Animation for appearing */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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