body {
    font-family: 'Inter', sans-serif;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #475569; /* slate-600 */
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    background-color: #f1f5f9; /* slate-100 */
    color: #0f172a; /* slate-900 */
}

.nav-link.active {
    background-color: #0ea5e9; /* sky-500 */
    color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #0ea5e9;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Estilos para Notificaciones Toast --- */
.toast {
    @apply p-4 rounded-lg shadow-lg text-white flex items-center;
    min-width: 250px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in 0.3s ease-out forwards, fade-out 0.5s ease-in 2.5s forwards;
}

.toast.success {
    @apply bg-green-500;
}

.toast.error {
    @apply bg-red-500;
}

.toast.info {
    @apply bg-blue-500;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* Estilos para errores de validación en formularios */
.input-error {
    @apply border-red-500 ring-red-500;
}
.error-message {
    @apply text-red-600 text-sm mt-1;
}
