@keyframes fade-in-down {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-down {
    animation: fade-in-down 0.5s ease-out;
}

/* Estilização específica para o Select2 do assunto */
#subject + .select2-container {
    width: 100% !important;
}

#subject + .select2-container .select2-selection--single {
    height: 2.5rem !important; /* h-10 equivale a 40px */
    border-radius: 0.5rem !important;
    border: 1px solid #d1d5db !important;
    background-color: #f9fafb !important;
    font-size: 0.875rem !important;
    color: #111827 !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 2.5rem !important; /* Para compensar o ícone */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}

#subject + .select2-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%239ca3af'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 10;
}

#subject + .select2-container .select2-selection__rendered {
    color: #6b7280 !important; /* text-gray-500 para placeholder */
    font-size: 0.875rem !important;
    line-height: normal !important;
    padding: 0 !important;
}

#subject + .select2-container .select2-selection__arrow {
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Focus state */
#subject + .select2-container.select2-container--focus .select2-selection--single {
    outline: none !important;
    border-color: #9ca3af !important;
    box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.5) !important;
}

/* Dropdown */
#subject + .select2-container .select2-dropdown {
    border-radius: 0.5rem !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Opções do dropdown */
#subject + .select2-container .select2-results__option {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

#subject + .select2-container .select2-results__option--highlighted {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
}